Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- CMD=$(echo -e "Logout/Exit\nSuspend\nPower Off/Shutdown\nReboot/Restart" | dmenu -p "PowerMenu:")
- if [ "$CMD" = "Power Off/Shutdown" ]; then
- systemctl poweroff
- elif [ "$CMD" = "Reboot/Restart" ]; then
- systemctl reboot
- elif [ "$CMD" = "Logout/Exit" ]; then
- i3-msg exit
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement