improve poweroff dialog

This commit is contained in:
qvalentin 2021-10-05 13:18:32 +02:00
parent 3f7ea5a737
commit 4457d4e7dd
4 changed files with 15 additions and 4 deletions

10
.scripts/powerbutton Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
. "${HOME}/.cache/wal/colors.sh"
result=$(echo -e "Shutdown\nRestart\nSleep\nLock" | dmenu -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" -p "")
case "$result" in
("Shutdown") shutdownnow ;;
("Restart") reboot ;;
("Sleep") systemctl suspend ;;
("Lock") betterlockscreen -l ;;
esac