This commit is contained in:
Maximilian Wagner
2024-02-23 15:50:39 +01:00
commit a1c2ff601e
4 changed files with 325 additions and 0 deletions

16
power-menu Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
entries="Logout Suspend Reboot Shutdown"
selected=$(printf '%s\n' $entries | wofi --conf=$HOME/.config/wofi/config.power --style=$HOME/.config/wofi/style.widgets.css | awk '{print tolower($1)}')
case $selected in
logout)
hyprctl dispatch exit;;
suspend)
exec systemctl suspend;;
reboot)
exec systemctl reboot;;
shutdown)
exec systemctl poweroff -i;;
esac