Single-script builder (nosignal.sh) that turns a stock Arch Linux ISO into a fully-offline installer for a themed Hyprland + caelestia (Quickshell) desktop: matching SDDM greeter, Btrfs/Limine bootable snapshots, chwd-style GPU detection, and a curated "os updates" layer (keybind cheatsheet, settings panels, system polish, on-box management skill). See README.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
20 lines
813 B
Bash
Executable file
20 lines
813 B
Bash
Executable file
#!/bin/bash
|
|
# sddm-autologin-gate — ExecStartPre for sddm.service (one-shot autologin).
|
|
#
|
|
# A DeckShift session switch arms autologin right before restarting SDDM:
|
|
# gaming-session-switch writes the autologin drop-in AND touches the marker.
|
|
# This gate runs every time SDDM starts:
|
|
# - marker present -> a switch is in flight: consume the marker, keep the
|
|
# drop-in, SDDM autologins into the target session once;
|
|
# - marker absent -> cold boot / crash / manual restart: delete any stale
|
|
# drop-in so the normal password greeter shows.
|
|
# /run is tmpfs, so the marker can never survive a reboot.
|
|
CONF="/etc/sddm.conf.d/zz-gaming-session.conf"
|
|
MARKER="/run/deckshift-session-switch"
|
|
|
|
if [[ -f "$MARKER" ]]; then
|
|
rm -f "$MARKER"
|
|
else
|
|
rm -f "$CONF"
|
|
fi
|
|
exit 0
|