Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions srcpkgs/gslapper/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Template file for 'gslapper'
pkgname=gslapper
version=1.5.4
revision=1
build_style=meson
hostmakedepends="pkg-config wayland-devel"
makedepends="wayland-protocols wayland-devel libglvnd-devel
gstreamer1-devel gst-plugins-base1-devel"
depends="gst-plugins-good1 gst-plugins-bad1 gst-libav procps-ng"
checkdepends="procps-ng"
short_desc="Video and image wallpaper player for Wayland compositors"
maintainer="Nomadcxx <noovie@gmail.com>"
license="GPL-3.0-only"
homepage="https://github.com/Nomadcxx/gSlapper"
changelog="https://github.com/Nomadcxx/gSlapper/releases"
distfiles="https://github.com/Nomadcxx/gSlapper/archive/refs/tags/v${version}.tar.gz"
checksum=36dd22839ccb1e5e3442094cc329a6041c0f12fc58c689cb9f158f0a4f4aa6fa
40 changes: 40 additions & 0 deletions srcpkgs/sysc-greet/files/README.voidlinux
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
sysc-greet uses greetd's _greeter account. Install a supported compositor,
such as cagebreak, and back up /etc/greetd/config.toml before configuring it.
Install the graphics drivers for your hardware (mesa-dri for Mesa systems).
Install a desktop session too, such as niri or sway; cagebreak does not ship
a session desktop file.

For cagebreak, use:

[terminal]
vt = 1

[default_session]
command = "cagebreak -e -c /etc/greetd/sysc-greet/cagebreak-greeter-config"
user = "_greeter"

The package also installs configurations for other compositors under
/etc/greetd/sysc-greet/. Install the compositor you select separately.

Keep an SSH connection or another TTY available while changing login services.
Disable any other display manager and the agetty service on greetd's selected
TTY. Enable the dbus and greetd runit services using the Void handbook:

https://docs.voidlinux.org/config/services/index.html

D-Bus activates elogind. Do not also enable elogind's runit service.
Reboot after first installing elogind so its udev seat rules take effect.
Use "sv down greetd" over SSH to stop the greeter during recovery, then
"sv up greetd" to restart it after correcting the configuration.

For niri, seat management and turnstile coexistence, see:

https://nomadcxx.github.io/sysc-greet/docs/getting-started/void-linux/

Use the native paths /usr/bin/sysc-greet, /var/lib/_greeter and
/etc/greetd/sysc-greet/ when adapting instructions from the installer guide.
Run sysc-greet --test inside a terminal to preview without authenticating.

This package retains the bundled artwork, including models with noncommercial
licenses, and belongs to the nonfree repository. See
/usr/share/licenses/sysc-greet/THIRD_PARTY_NOTICES.md for attribution and terms.
53 changes: 53 additions & 0 deletions srcpkgs/sysc-greet/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Template file for 'sysc-greet'
pkgname=sysc-greet
version=1.3.2
revision=1
build_style=go
go_import_path=github.com/Nomadcxx/sysc-greet
go_package=./cmd/sysc-greet
go_ldflags="-X main.Version=${version}"
conf_files="/etc/greetd/sysc-greet/*
/etc/polkit-1/rules.d/85-sysc-greet.rules"
depends="greetd kitty gslapper socat elogind dbus polkit
dejavu-fonts-ttf procps-ng"
short_desc="Graphical console greeter for greetd"
maintainer="Nomadcxx <noovie@gmail.com>"
license="GPL-3.0-only, MIT, CC0-1.0, CC-BY-4.0, CC-BY-NC-4.0,
CC-BY-SA-4.0, CC-BY-NC-SA-4.0"
homepage="https://github.com/Nomadcxx/sysc-greet"
changelog="https://github.com/Nomadcxx/sysc-greet/releases"
distfiles="https://github.com/Nomadcxx/sysc-greet/archive/refs/tags/v${version}.tar.gz"
checksum=97ec3cd24cc7cd6ea56a1dc6e7deded9b2cfac20f71154207e0fb3e3e0e83b06
repository=nonfree
make_dirs="/var/cache/sysc-greet 0755 _greeter _greeter
/var/lib/_greeter/Pictures/wallpapers 0755 _greeter _greeter"

post_patch() {
sed -i -e 's,/usr/local/bin/sysc-greet,/usr/bin/sysc-greet,g' \
-e 's,/var/lib/greeter,/var/lib/_greeter,g' \
-e 's,/etc/greetd/,/etc/greetd/sysc-greet/,g' config/*
vsed -i 's,subject.user == "greeter",subject.user == "_greeter",' \
config/85-greeter.rules
}

post_install() {
vmkdir usr/share/sysc-greet
for dir in ascii_configs wallpapers themes fonts; do
vcopy "$dir" usr/share/sysc-greet
done
vcopy cmd/sysc-greet/assets/borders usr/share/sysc-greet
for config in config/*; do
case "${config##*/}" in
85-greeter.rules)
vinstall "$config" 644 etc/polkit-1/rules.d 85-sysc-greet.rules ;;
kitty-greeter.conf)
vinstall "$config" 644 etc/greetd/sysc-greet kitty.conf ;;
*.sh) vinstall "$config" 755 etc/greetd/sysc-greet ;;
*) vinstall "$config" 644 etc/greetd/sysc-greet ;;
esac
done
vinstall THIRD_PARTY_NOTICES.md 644 usr/share/sysc-greet
vlicense LICENSE
vlicense THIRD_PARTY_NOTICES.md
vdoc "${FILESDIR}/README.voidlinux"
}