chore: cleanup
This commit is contained in:
16
configs/wofi/scripts/power-menu
Executable file
16
configs/wofi/scripts/power-menu
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
entries="⏻ Shutdown\n↺ Reboot\n⇠ Logout\n⏾ Suspend"
|
||||
|
||||
selected=$(echo -e $entries|wofi --width 250 --height 150 --dmenu --cache-file /dev/null | awk '{print tolower($2)}')
|
||||
|
||||
case $selected in
|
||||
logout)
|
||||
swaymsg exit;;
|
||||
suspend)
|
||||
exec systemctl suspend;;
|
||||
reboot)
|
||||
exec systemctl reboot;;
|
||||
shutdown)
|
||||
exec shutdown now;;
|
||||
esac
|
Reference in New Issue
Block a user