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
+15
View File
@@ -15,6 +15,13 @@ A fullscreen overlay triggered by keybind with 5 actions:
- DE/EN localization
- Configurable wallpaper (TOML)
## Requirements
- A Wayland compositor with `wlr-layer-shell` (Moonarch targets **Niri**)
- A systemd-logind session for the default logout (`loginctl terminate-session`); other setups can override via `logout_command`
- Runtime: `gtk4`, `gtk4-layer-shell`
- Build: `cargo`, `git`
## Installation
```bash
@@ -47,6 +54,10 @@ Config file: `~/.config/moonset/moonset.toml` or `/etc/moonset/moonset.toml`
```toml
# Path to background image (optional)
background_path = "/usr/share/moonarch/wallpaper.jpg"
# Logout command override (optional)
# Default: loginctl terminate-session $XDG_SESSION_ID
logout_command = "niri msg action quit"
```
Wallpaper fallback: config → `/usr/share/moonarch/wallpaper.jpg` → bundled package wallpaper
@@ -67,3 +78,7 @@ cargo build --release
- **moongreet** — greetd greeter for Wayland
- **moonlock** — Wayland lockscreen
- **moonset** — Session power menu
## License
MIT