Shutdown script updated to allow nonroot access
This commit is contained in:
parent
18ff5c566b
commit
e5579fbe55
|
@ -5,8 +5,8 @@ USER_OPT1=$(printf "Shutdown\nReboot\nExit\nLock\nKill X" | spmenu -b -l 5 -g 1
|
||||||
|
|
||||||
|
|
||||||
case "$USER_OPT1" in
|
case "$USER_OPT1" in
|
||||||
"Shutdown") sudo shutdown now || doas shutdown now ;;
|
"Shutdown") sudo shutdown now || doas shutdown now || systemctl shutdown ;;
|
||||||
"Reboot") reboot ;;
|
"Reboot") reboot || systemctl restart ;;
|
||||||
"Exit") loginctl kill-session self;;
|
"Exit") loginctl kill-session self;;
|
||||||
"Lock") slock ;;
|
"Lock") slock ;;
|
||||||
"Kill X") pkill Xorg || pkill X ;;
|
"Kill X") pkill Xorg || pkill X ;;
|
||||||
|
|
Loading…
Reference in a new issue