Files
pascalyazid a1cea0e3be feat(greeter): add themed greetd login screen
- Add an AstalGreet login UI with PAM messages, reboot and shutdown.

- Run it under cage via start-greeter.sh and start a uwsm-managed Hyprland session.

- Include install script, polkit rule, fallback theme and README.
2026-11-27 18:55:33 +01:00

22 lines
592 B
Bash
Executable File

#!/bin/sh
# Launched by greetd as the `greeter` user.
#
# greetd runs `exec <command>`, so the command must be a single executable
# (not a `mkdir ... && cage ...` compound list).
set -eu
LOG=/tmp/greeter.log
exec >>"$LOG" 2>&1
echo "=== $(date -Is) starting greeter ==="
mkdir -p /var/lib/greetd/run /var/lib/greetd/.cache
chmod 700 /var/lib/greetd/run
export HOME=/var/lib/greetd
export XDG_RUNTIME_DIR=/var/lib/greetd/run
export XDG_CACHE_HOME=/var/lib/greetd/.cache
exec /usr/bin/cage -m last -s -d -- \
/usr/bin/dbus-run-session -- \
/usr/bin/ags run /etc/greetd/ags/greeter.tsx