1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-09 10:23:11 +00:00
Dotfiles/.config/polybar/themes/monolit-dracula/scripts/powermenu

12 lines
451 B
Plaintext
Raw Normal View History

2020-09-04 22:10:45 +00:00
#!/bin/bash
## Created By Aditya Shakya
MENU="$(rofi -sep "|" -dmenu -i -p 'System' -location 5 -xoffset -10 -yoffset -40 -width 10 -hide-scrollbar -line-padding 4 -padding 20 -lines 4 <<< "> Lock|> Logout|> Reboot|> Shutdown")"
case "$MENU" in
*Lock) i3lock-fancy ;;
*Logout) openbox --exit;;
*Reboot) systemctl reboot ;;
*Shutdown) systemctl -i poweroff
esac