improve poweroff dialog
This commit is contained in:
parent
3f7ea5a737
commit
4457d4e7dd
4 changed files with 15 additions and 4 deletions
10
.scripts/powerbutton
Executable file
10
.scripts/powerbutton
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue