Add rofi shutdown script
This commit is contained in:
parent
8678b2ce17
commit
6d0746f89a
1 changed files with 17 additions and 0 deletions
17
.local/bin/rofi-shutdown
Executable file
17
.local/bin/rofi-shutdown
Executable 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
|
Loading…
Reference in a new issue