dotfiles/polybar/scripts/powermenu

11 lines
454 B
Plaintext
Raw Normal View History

2020-12-14 02:45:11 +00:00
#!/bin/bash
MENU="$(rofi -sep "|" -dmenu -i -p 'System' -location 3 -yoffset 32 -xoffset -10 -width 12 -hide-scrollbar -line-padding 4 -padding 20 -lines 4 -font "Misc Termsyn 12" <<< " Lock| Logout| Reboot| Shutdown")"
case "$MENU" in
*Lock) i3lock-fancy ;;
*Logout) openbox --exit;;
*Reboot) systemctl reboot ;;
*Shutdown) systemctl -i poweroff
esac