Feature-parity with Python v0.2.0. Same CSS, same UI, same actions. Single 3.1 MB binary with embedded resources (CSS, wallpaper, avatar). Modules: power.rs, i18n.rs, config.rs, users.rs, panel.rs, main.rs 45 unit tests passing. Python sources retained as reference.
70 lines
1.4 KiB
Markdown
70 lines
1.4 KiB
Markdown
# Moonset
|
|
|
|
Wayland Session Power Menu für das Moonarch-Ökosystem.
|
|
|
|
Per Keybind aufrufbares Fullscreen-Overlay mit 5 Aktionen:
|
|
**Lock** · **Logout** · **Hibernate** · **Reboot** · **Shutdown**
|
|
|
|
## Features
|
|
|
|
- Rust + gtk4-rs + gtk4-layer-shell (OVERLAY Layer — über Waybar)
|
|
- Catppuccin Mocha Theme
|
|
- Multi-Monitor-Support (Wallpaper auf Sekundärmonitoren)
|
|
- Inline-Confirmation für destruktive Aktionen
|
|
- Escape oder Hintergrund-Klick zum Schließen
|
|
- DE/EN Lokalisierung
|
|
- Konfigurierbare Wallpaper (TOML)
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
cargo build --release
|
|
install -Dm755 target/release/moonset /usr/bin/moonset
|
|
```
|
|
|
|
Oder via PKGBUILD:
|
|
|
|
```bash
|
|
cd pkg && makepkg -si
|
|
```
|
|
|
|
## Verwendung
|
|
|
|
```bash
|
|
# Direkt starten
|
|
moonset
|
|
|
|
# Per Niri-Keybind (in ~/.config/niri/config.kdl)
|
|
# binds {
|
|
# Mod+Escape { spawn "moonset"; }
|
|
# }
|
|
```
|
|
|
|
## Konfiguration
|
|
|
|
Konfigurationsdatei: `~/.config/moonset/moonset.toml` oder `/etc/moonset/moonset.toml`
|
|
|
|
```toml
|
|
# Pfad zum Hintergrundbild (optional)
|
|
background_path = "/usr/share/moonarch/wallpaper.jpg"
|
|
```
|
|
|
|
Wallpaper-Fallback: Konfiguration → `/usr/share/moonarch/wallpaper.jpg` → eingebettetes Package-Wallpaper
|
|
|
|
## Entwicklung
|
|
|
|
```bash
|
|
# Tests
|
|
cargo test
|
|
|
|
# Release-Build
|
|
cargo build --release
|
|
```
|
|
|
|
## Teil des Moonarch-Ökosystems
|
|
|
|
- **moonarch** — Reproduzierbares Arch-Linux-Setup
|
|
- **moongreet** — greetd Greeter für Wayland
|
|
- **moonlock** — Wayland Lockscreen
|
|
- **moonset** — Session Power Menu
|