mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 20:54:34 +00:00
Add userspace reboot option to menuquit
This commit is contained in:
parent
6e31a94da3
commit
9a79a5453b
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
action="$(printf 'Quit WM\nLock session\nLogout\nLock TTYs\nPoweroff\nReboot\nNothing' | menuprompt -c --app wofi -p "Select Action" -- -O default)"
|
||||
action="$(printf 'Quit WM\nLock session\nLogout\nLock TTYs\nPoweroff\nReboot\nUserspace Reboot\nNothing' | menuprompt -c --app wofi -p "Select Action" -- -O default)"
|
||||
|
||||
case "$action" in
|
||||
"Quit WM")
|
||||
|
@ -21,6 +21,9 @@ case "$action" in
|
|||
"Reboot")
|
||||
systemctl reboot
|
||||
;;
|
||||
"Userspace Reboot")
|
||||
systemctl soft-reboot
|
||||
;;
|
||||
"Nothing") ;&
|
||||
*)
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue