atrium-power
An independent Rust GTK4 power window and CLI for Void Linux with runit, seatd and doas. It works without Atrium Shell.
atrium-power
atrium-power check
atrium-power poweroff
atrium-power reboot
atrium-power sleep
atrium-power lock
Shutdown and reboot use the distribution’s orderly shutdown command. Sleep starts swaylock, waits for secure-lock readiness, holds it against unlocking during suspend, and invokes zzz -z. On resume the screen remains locked. A failed locker prevents sleep.
When a Secret Service provider is present, Lock and Sleep lock its collections and verify their locked state first. Failure prevents the request. No provider is activated when none is present. Screen unlock does not automatically unlock a keyring.
Installation and authorization
Build dependencies include Rust/Cargo, pkg-config and GTK4 development libraries. Runtime needs GTK4, doas, swaylock, runit and Void’s shutdown/zzz utilities.
make build
doas make install
PREFIX defaults to /usr; DESTDIR stages the prebuilt payload. Installation supplies a desktop entry and doas policy example, but grants no permissions and changes no personal configuration. Review the installed /usr/share/atrium-power/doas.conf.example, substitute the intended account and add its exact rules to the existing doas configuration. The executable and parent directories must be root-owned and not user-writable.
To open the confirmation window from Atrium, add bindings inside the existing binds block:
Mod+Shift+E { spawn "/usr/bin/atrium-power"; }
XF86PowerOff { spawn "/usr/bin/atrium-power"; }
A system acpid handler must not also shut down on the same key event. Power does not install physical-event handlers or lid policy.
Authorization requires an active desktop on the Linux VT; SSH/TTY and inactive-desktop callers are rejected. Known other logins require explicit confirmation for shutdown/reboot and prevent sleep. Greeter power actions, hibernation, login1 inhibitors and multi-seat policy are unavailable. Prefix changes alone do not port the Void-specific authorization/execution path.
Disposable installed-system verification does not establish physical GPU, lid or suspend/resume acceptance. See the Power repository for policy, installation and verification details.