feat(power): logout via loginctl, not Niri-locked

Default `loginctl terminate-session $XDG_SESSION_ID`; `logout_command`
TOML override for other compositors.
This commit is contained in:
2026-06-17 12:40:24 +02:00
parent 115cfe6bb1
commit 7dae48f6cc
10 changed files with 225 additions and 46 deletions
+6
View File
@@ -4,3 +4,9 @@
# Path to background image (optional)
# Fallback order: config → /usr/share/moonarch/wallpaper.jpg → bundled package wallpaper
# background_path = "/usr/share/moonarch/wallpaper.jpg"
# Logout command override (optional, space-separated program + args)
# Default: terminate the logind session via `loginctl terminate-session $XDG_SESSION_ID`
# (compositor-agnostic). Set this only for non-logind setups or to delegate
# logout to the compositor.
# logout_command = "niri msg action quit"