Skip to content

Commit 972db6b

Browse files
committed
New package: sysc-greet-1.3.1
1 parent f7fd05f commit 972db6b

2 files changed

Lines changed: 93 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
sysc-greet uses greetd's _greeter account. Install a supported compositor,
2+
such as cagebreak, and back up /etc/greetd/config.toml before configuring it.
3+
Install the graphics drivers for your hardware (mesa-dri for Mesa systems).
4+
Install a desktop session too, such as niri or sway; cagebreak does not ship
5+
a session desktop file.
6+
7+
For cagebreak, use:
8+
9+
[terminal]
10+
vt = 1
11+
12+
[default_session]
13+
command = "cagebreak -e -c /etc/greetd/sysc-greet/cagebreak-greeter-config"
14+
user = "_greeter"
15+
16+
The package also installs configurations for other compositors under
17+
/etc/greetd/sysc-greet/. Install the compositor you select separately.
18+
19+
Keep an SSH connection or another TTY available while changing login services.
20+
Disable any other display manager and the agetty service on greetd's selected
21+
TTY. Enable the dbus and greetd runit services using the Void handbook:
22+
23+
https://docs.voidlinux.org/config/services/index.html
24+
25+
D-Bus activates elogind. Do not also enable elogind's runit service.
26+
Reboot after first installing elogind so its udev seat rules take effect.
27+
Use "sv down greetd" over SSH to stop the greeter during recovery, then
28+
"sv up greetd" to restart it after correcting the configuration.
29+
30+
For niri, seat management and turnstile coexistence, see:
31+
32+
https://nomadcxx.github.io/sysc-greet/docs/getting-started/void-linux/
33+
34+
Use the native paths /usr/bin/sysc-greet, /var/lib/_greeter and
35+
/etc/greetd/sysc-greet/ when adapting instructions from the installer guide.
36+
Run sysc-greet --test inside a terminal to preview without authenticating.
37+
38+
This package retains the bundled artwork, including models with noncommercial
39+
licenses, and belongs to the nonfree repository. See
40+
/usr/share/licenses/sysc-greet/THIRD_PARTY_NOTICES.md for attribution and terms.

‎srcpkgs/sysc-greet/template‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Template file for 'sysc-greet'
2+
pkgname=sysc-greet
3+
version=1.3.1
4+
revision=1
5+
build_style=go
6+
go_import_path=github.com/Nomadcxx/sysc-greet
7+
go_package=./cmd/sysc-greet
8+
go_ldflags="-X main.Version=${version}"
9+
conf_files="/etc/greetd/sysc-greet/*
10+
/etc/polkit-1/rules.d/85-sysc-greet.rules"
11+
depends="greetd kitty gslapper socat elogind dbus polkit
12+
dejavu-fonts-ttf procps-ng"
13+
short_desc="Graphical console greeter for greetd"
14+
maintainer="Nomadcxx <noovie@gmail.com>"
15+
license="GPL-3.0-only, MIT, CC0-1.0, CC-BY-4.0, CC-BY-NC-4.0,
16+
CC-BY-SA-4.0, CC-BY-NC-SA-4.0"
17+
homepage="https://github.com/Nomadcxx/sysc-greet"
18+
changelog="https://github.com/Nomadcxx/sysc-greet/releases"
19+
distfiles="https://github.com/Nomadcxx/sysc-greet/archive/refs/tags/v${version}.tar.gz"
20+
checksum=8d60a8d0c40243f5b905a57cb31f2f3e7c014889760c1bb8548785aa320f1cac
21+
repository=nonfree
22+
make_dirs="/var/cache/sysc-greet 0755 _greeter _greeter
23+
/var/lib/_greeter/Pictures/wallpapers 0755 _greeter _greeter"
24+
25+
post_patch() {
26+
sed -i -e 's,/usr/local/bin/sysc-greet,/usr/bin/sysc-greet,g' \
27+
-e 's,/var/lib/greeter,/var/lib/_greeter,g' \
28+
-e 's,/etc/greetd/,/etc/greetd/sysc-greet/,g' config/*
29+
vsed -i 's,subject.user == "greeter",subject.user == "_greeter",' \
30+
config/85-greeter.rules
31+
}
32+
33+
post_install() {
34+
vmkdir usr/share/sysc-greet
35+
for dir in ascii_configs wallpapers themes fonts; do
36+
vcopy "$dir" usr/share/sysc-greet
37+
done
38+
vcopy cmd/sysc-greet/assets/borders usr/share/sysc-greet
39+
for config in config/*; do
40+
case "${config##*/}" in
41+
85-greeter.rules)
42+
vinstall "$config" 644 etc/polkit-1/rules.d 85-sysc-greet.rules ;;
43+
kitty-greeter.conf)
44+
vinstall "$config" 644 etc/greetd/sysc-greet kitty.conf ;;
45+
*.sh) vinstall "$config" 755 etc/greetd/sysc-greet ;;
46+
*) vinstall "$config" 644 etc/greetd/sysc-greet ;;
47+
esac
48+
done
49+
vinstall THIRD_PARTY_NOTICES.md 644 usr/share/sysc-greet
50+
vlicense LICENSE
51+
vlicense THIRD_PARTY_NOTICES.md
52+
vdoc "${FILESDIR}/README.voidlinux"
53+
}

0 commit comments

Comments
 (0)