waypwr

Crates.iowaypwr
lib.rswaypwr
version0.1.1
created_at2025-02-10 18:09:54.423513+00
updated_at2025-02-10 19:57:56.257773+00
descriptionA power menu for Wayland
homepagehttps://github.com/tukanoidd/waypwr/
repositoryhttps://github.com/tukanoidd/waypwr/
max_upload_size
id1550464
size190,861
Vitalii Lukyanov (tukanoidd)

documentation

README

Crates.io Version

What

Wayland power menu

Screenshot

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 for Custom one, in kebab-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?

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!

Commit count: 17

cargo fmt