.dotfiles/botfiles/.scripts/powermenu.sh
Wiktor Zykubek ab76262568 Migrate from GitLab to GitHub
- switch i3wm to bspwm
- lot of changes
2020-03-08 10:19:00 +01:00

12 lines
279 B
Bash
Executable File

#!/usr/bin/env sh
WHAT="$(printf "Shutdown\nSuspend\nLock\nReboot" | dmenu -i -p 'What do you want?')"
if [ -z "$WHAT" ]; then exit; fi
case "$WHAT" in
Shutdown) systemctl poweroff;;
Suspend) systemctl suspend;;
Lock) sh ~/.scripts/lockscreen.sh;;
*) systemctl reboot
esac