A power menu built with GTK4. Works with wayland, supports theming and custom screen locker command.
Rust v1.76
Cargo v1.76
gtk4 gio cairo pango gdk-pixbuf
Clone the project
git clone [email protected]:kamilernerd/pwrmenu.git
Simply run following in the project root
./install.sh
If the script asks for password, provide it. The binary expects to have CAP_SYS_BOOT capabilities.
Read more here: https://man7.org/linux/man-pages/man7/capabilities.7.html
The binary will be installed in $HOME/.cargo/bin/pwrmenu
Now run pwrmenu
When executed for the first time a theme.css
and a config.json
file will be created at $HOME/.config/pwrmenu
.
These files contain the theme which can be modified or turned off in the config file.
You can also provide custom screen-lock command in the config file if you're using a different screen-locker.
You can override the styles as you wish using gtk css https://docs.gtk.org/gtk4/css-properties.html . Including each button separately. Simply reference their ID in the css.
Button ids:
- lock
- logout
- suspend
- reboot
- shutdown
Example:
#lock {
background-color: red;
}
#lock:hover {
background-color: pink;
}