dotfiles/scripts/power-menu

18 lines
302 B
Plaintext
Raw Normal View History

2022-02-06 19:45:28 +01:00
#!/bin/bash
options="Shutdown\nReboot\nLogout"
selected=$(echo -e $options | rofi -p Power -dmenu -theme appsmenu)
case $selected in
"Shutdown")
confirm-menu "Shutdown?" "poweroff"
;;
"Reboot")
confirm-menu "Reboot?" "reboot"
;;
"Logout")
confirm-menu "Logout?" "i3-msg exit"
;;
esac