[UPDATE][SCRIPT] Handle switch_user in i3exit
Also switched from tabulation to spaces as indentation.
This commit is contained in:
parent
7ebee08f4e
commit
8b6840e2ac
|
@ -18,6 +18,9 @@ case "$1" in
|
||||||
logout)
|
logout)
|
||||||
i3-msg exit
|
i3-msg exit
|
||||||
;;
|
;;
|
||||||
|
switch_user)
|
||||||
|
dm-tool switch-to-greeter
|
||||||
|
;;
|
||||||
suspend)
|
suspend)
|
||||||
lock && systemctl suspend
|
lock && systemctl suspend
|
||||||
;;
|
;;
|
||||||
|
@ -31,7 +34,7 @@ case "$1" in
|
||||||
systemctl poweroff
|
systemctl poweroff
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}"
|
echo "Usage: $0 {lock|logout|switch_user|suspend|hibernate|reboot|shutdown}"
|
||||||
exit 2
|
exit 2
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue