2 releases
new 0.1.1 | Feb 10, 2025 |
---|---|
0.1.0 | Feb 10, 2025 |
#461 in GUI
36 downloads per month
66KB
459 lines
What
Wayland power menu
Why another one?
Existing implementations are either written in C/Zig/Nim or using GTK in Rust. I'm a NixOS user, and gtk styling has always been a sore spot for me, so I wanted to have something more reliable as a GUI backend (Iced in this case) and, of course, written in my favorite language, which is Rust.
Where Config?
I use directorties to get initial config dir, so it's either
$XDG_CONFIG_HOME/waypwr/config.toml
or $HOME/.config/waypwr/config.toml
.
Don't worry, the initial startup will create a default one for you!
How Config?
theme
- it can be set to any one of these, except forCustom
one, inkebab-case
.- actions (
lock
,log_out
,hibernate
,reboot
,shutdown
)
[actions]
log_out = {type = "dbus"} # default
lock = {type = "cmd", value = ["hyprlock"]}
Can I choose config path through CLI?
Absolutely! With --config
flag.
What about a theme?
Same, with --theme
flag.
How Cancel/Exit?
Esc || 'Q'
How work?
- GUI: iced and iced_layershell
- Actions: through DBus, leveraging zbus and logind_zbus
Plans?
Idk, my needs are simple, I just wanted something that just works and does not mess up it's styling out of nowhere (primarily happens with gtk-based applications on NixOS for me), so I don't plan to add anything fancy, but I'm always open to suggestions and PRs!
Dependencies
~46–65MB
~1M SLoC