Initial commit
This commit is contained in:
commit
d808531d6d
16 changed files with 239 additions and 0 deletions
65
.gitlab-ci.yml
Normal file
65
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,65 @@
|
|||
# Is performed before the scripts in the stages step
|
||||
before_script:
|
||||
- source /etc/profile
|
||||
|
||||
# Defines stages which are to be executed
|
||||
stages:
|
||||
- build
|
||||
- upload
|
||||
- release
|
||||
|
||||
.setup_script: &setup_scripts
|
||||
- apt-get update
|
||||
- apt-get -y build-dep .
|
||||
- apt-get -y install dpkg-dev
|
||||
|
||||
.compile: &compile
|
||||
stage: compile
|
||||
only:
|
||||
- tags
|
||||
script:
|
||||
- *setup_scripts
|
||||
- dpkg-buildpackage -b
|
||||
- mkdir -p ./build/{release,debug}
|
||||
- find ../ -name "*.deb" -not -name "*dbgsym*" -exec mv {} ./build/release/ \;
|
||||
- find ../ -name "*dbgsym*.deb" -exec mv {} ./build/debug/ \;
|
||||
artifacts:
|
||||
paths:
|
||||
- build/release/*
|
||||
- build/debug/*
|
||||
untracked: true
|
||||
|
||||
build:
|
||||
<<: *compile
|
||||
stage: build
|
||||
|
||||
upload:
|
||||
stage: upload
|
||||
dependencies:
|
||||
- build
|
||||
only:
|
||||
- tags
|
||||
script:
|
||||
- find ./build/release -name "*.deb"
|
||||
- debs=( $( find ./build/release -name "*.deb" ) )
|
||||
- assets=""
|
||||
- for d in ${debs[@]};do
|
||||
- file=$( basename ${d} )
|
||||
- url="${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${CI_COMMIT_TAG}/${file}"
|
||||
- assets="${assets} --assets-link {\"name\":\"${file}\",\"url\":\"${url}\",\"link_type\":\"other\"} "
|
||||
- "curl --header \"JOB-TOKEN: $CI_JOB_TOKEN\" --upload-file \"${d}\" \"${url}\""
|
||||
- done
|
||||
- echo "ASSETS_ARG=${assets}" >> assets.env
|
||||
artifacts:
|
||||
reports:
|
||||
dotenv: assets.env
|
||||
|
||||
release:
|
||||
stage: release
|
||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
only:
|
||||
- tags
|
||||
script:
|
||||
- echo "making release!"
|
||||
- echo ${ASSETS_ARG}
|
||||
- release-cli create --name "Release ${CI_COMMIT_TAG}" --tag-name "${CI_COMMIT_TAG}" ${ASSETS_ARG}
|
6
debian/README.Debian
vendored
Normal file
6
debian/README.Debian
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
pogmom-sway-base for Debian
|
||||
------------------------
|
||||
|
||||
Configuration files for sway's supporting programs
|
||||
|
||||
-- Penelope Gwen <support@pogmom.me>, Thu, 30 May 2024 17:07:09 -0600
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
pogmom-sway-base (0.1) unstable; urgency=medium
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Penelope Gwen <support@pogmom.me> Thu, 3 Jun 2024 14:22:19 -0600
|
17
debian/control
vendored
Normal file
17
debian/control
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
Source: pogmom-sway-base
|
||||
Section: X11
|
||||
Priority: optional
|
||||
Maintainer: Penelope Gwen <support@pogmom.me>
|
||||
Rules-Requires-Root: no
|
||||
Build-Depends:
|
||||
debhelper-compat (= 13),
|
||||
Standards-Version: 4.7.0
|
||||
Homepage: https://git.pogmom.me/pogmommy/pogmom-sway-base
|
||||
|
||||
Package: pogmom-apps
|
||||
Architecture: all
|
||||
Depends:
|
||||
greetd,
|
||||
gtkgreet
|
||||
Description: Configuration for pogmom-desktop
|
||||
This package installs some basic configurations for pogmom-desktop
|
60
debian/copyright
vendored
Normal file
60
debian/copyright
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Source: https://git.pogmom.me/pogmommy/pogmom-sway-base
|
||||
Upstream-Name: pogmom-sway-base
|
||||
Upstream-Contact: Penelope Gwen <support@pogmom.me>
|
||||
|
||||
Files:
|
||||
*
|
||||
Copyright:
|
||||
2024 Penelope Gwendolyn <support@pogmom.me>
|
||||
License: Opinionated Queer License
|
||||
PERMISSIONS
|
||||
.
|
||||
The creators of this Work (“The Licensor”) grant permission
|
||||
to any person, group or legal entity that doesn't violate the prohibitions below (“The User”),
|
||||
to do everything with this Work that would otherwise infringe their copyright or any patent claims,
|
||||
subject to the following conditions:
|
||||
.
|
||||
OBLIGATIONS
|
||||
.
|
||||
The User must give appropriate credit to the Licensor,
|
||||
provide a copy of this license or a (clickable, if the medium allows) link to
|
||||
oql.avris.it/license/v1.1,
|
||||
and indicate whether and what kind of changes were made.
|
||||
The User may do so in any reasonable manner,
|
||||
but not in any way that suggests the Licensor endorses the User or their use.
|
||||
.
|
||||
PROHIBITIONS
|
||||
.
|
||||
No one may use this Work for prejudiced or bigoted purposes, including but not limited to:
|
||||
racism, xenophobia, queerphobia, queer exclusionism, homophobia, transphobia, enbyphobia, misogyny.
|
||||
.
|
||||
No one may use this Work to inflict or facilitate violence or abuse of human rights as defined in the
|
||||
Universal Declaration of Human Rights.
|
||||
.
|
||||
No law enforcement, carceral institutions, immigration enforcement entities, military entities or military contractors
|
||||
may use the Work for any reason. This also applies to any individuals employed by those entities.
|
||||
.
|
||||
No business entity where the ratio of pay (salaried, freelance, stocks, or other benefits)
|
||||
between the highest and lowest individual in the entity is greater than 50 : 1
|
||||
may use the Work for any reason.
|
||||
.
|
||||
No private business run for profit with more than a thousand employees
|
||||
may use the Work for any reason.
|
||||
.
|
||||
Unless the User has made substantial changes to the Work,
|
||||
or uses it only as a part of a new work (eg. as a library, as a part of an anthology, etc.),
|
||||
they are prohibited from selling the Work.
|
||||
That prohibition includes processing the Work with machine learning models.
|
||||
.
|
||||
SANCTIONS
|
||||
.
|
||||
If the Licensor notifies the User that they have not complied with the rules of the license,
|
||||
they can keep their license by complying within 30 days after the notice.
|
||||
If they do not do so, their license ends immediately.
|
||||
.
|
||||
WARRANTY
|
||||
.
|
||||
This Work is provided “as is”, without warranty of any kind, express or implied.
|
||||
The Licensor will not be liable to anyone for any damages related to the Work or this license,
|
||||
under any kind of legal claim as far as the law allows.
|
2
debian/install
vendored
Normal file
2
debian/install
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
greetd/* usr/share/greetd/pogmom/
|
||||
sway-run /usr/bin/sway-run
|
1
debian/pogmom-sway-base-docs.docs
vendored
Normal file
1
debian/pogmom-sway-base-docs.docs
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
README.Debian
|
3
debian/postinst
vendored
Normal file
3
debian/postinst
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
update-alternatives --install /etc/greetd/config.toml greetd /usr/share/greetd/pogmom/config.toml 30
|
3
debian/postrm
vendored
Normal file
3
debian/postrm
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
update-alternatives --remove greetd /usr/share/greetd/pogmom/config.toml
|
4
debian/rules
vendored
Executable file
4
debian/rules
vendored
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
3.0 (native)
|
6
greetd/config.toml
Normal file
6
greetd/config.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[terminal]
|
||||
vt = 7
|
||||
|
||||
[default_session]
|
||||
command = "dbus-run-session -- sway --config /usr/share/greetd/pogmom/sway-config"
|
||||
user = "_greetd"
|
2
greetd/environments
Normal file
2
greetd/environments
Normal file
|
@ -0,0 +1,2 @@
|
|||
sway-run
|
||||
bash
|
24
greetd/gtkgreet.css
Normal file
24
greetd/gtkgreet.css
Normal file
|
@ -0,0 +1,24 @@
|
|||
window {
|
||||
background-image: url("file:///usr/share/greetd/pogmom/background.jpg");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
label {
|
||||
color: rgba(250, 250, 250, 1);
|
||||
}
|
||||
|
||||
box#body {
|
||||
background-color: rgba(50, 50, 50, 0.5);
|
||||
border-radius: 10px;
|
||||
padding: 50px;
|
||||
}
|
||||
|
||||
entry,combobox * {
|
||||
background: rgba(50, 50, 50, 1);
|
||||
color: rgba(250, 250, 250, 1);
|
||||
}
|
||||
|
||||
entry.text {
|
||||
color: rgba(250, 250, 250, 1);
|
||||
}
|
11
greetd/sway-config
Normal file
11
greetd/sway-config
Normal file
|
@ -0,0 +1,11 @@
|
|||
exec "gtkgreet -s /usr/share/greetd/pogmom/gtkgreet.css; swaymsg exit"
|
||||
|
||||
default_border pixel 0
|
||||
|
||||
bindsym Mod4+shift+e exec swaynag \
|
||||
-t warning \
|
||||
-m 'What do you want to do?' \
|
||||
-b 'Poweroff' 'systemctl poweroff' \
|
||||
-b 'Reboot' 'systemctl reboot'
|
||||
|
||||
include /etc/sway/config.d/*
|
29
sway-run
Executable file
29
sway-run
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Session
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
export XDG_SESSION_DESKTOP=sway
|
||||
export XDG_CURRENT_DESKTOP=sway
|
||||
|
||||
# D-Bus
|
||||
# If the session bus is not available it is spawned and wrapper round our program
|
||||
# Otherwise we spawn our program directly
|
||||
drs=
|
||||
if [ -z "${DBUS_SESSION_BUS_ADDRESS}" ]
|
||||
then
|
||||
drs=dbus-run-session
|
||||
fi
|
||||
|
||||
# Environment
|
||||
# Source environmental variable from all files in PATH_ENVIRONMENT
|
||||
# file should be named *.conf and have KEY=value format use # for comment
|
||||
PATH_ENVIRONMENT=$HOME/.config/environment.d
|
||||
if [ -d "$PATH_ENVIRONMENT" ]; then
|
||||
for i in "$PATH_ENVIRONMENT"/*.conf ; do
|
||||
if [ -f "$i" ]; then
|
||||
set -a; . "$i"; set +a
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
exec ${drs} sway "$@"
|
Reference in a new issue