Add rofi shutdown script

This commit is contained in:
Tobias Reisinger 2020-09-23 11:25:17 +02:00
parent 8678b2ce17
commit 6d0746f89a

17
.local/bin/rofi-shutdown Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash
action=$(echo -e "Shutdown\nReboot\nLogout" | rofi -dmenu)
case "$action" in
"Shutdown")
systemctl poweroff -i
;;
"Reboot")
systemctl reboot
;;
"Logout")
bspc quit
;;
*)
;;
esac