summaryrefslogtreecommitdiff
path: root/.local/bin/powermenu
blob: 994953e4333813cf704df1f42cae039fcd75058e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

choice=$(printf "Logout\\nShutdown\\nReboot\\nHibernate" | dmenu -i -p "Power Utility")

case $choice in
	*L*) $SCRIPTS/control/lockscreen ;;
	*H*) systemctl suspend ;;
	*R*) reboot ;;
	*S*) shutdown -h now ;;
	"") notify-send -i "$HOME/.fonts/svg/power-off.svg" -a Power "Operation suspended"
esac