initial commit
This commit is contained in:
32
files/configs/misc-scripts/i3exit
Executable file
32
files/configs/misc-scripts/i3exit
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
# /usr/bin/i3exit
|
||||
|
||||
case "$1" in
|
||||
lock)
|
||||
blurlock
|
||||
;;
|
||||
logout)
|
||||
i3-msg exit
|
||||
;;
|
||||
switch_user)
|
||||
dm-tool switch-to-greeter
|
||||
;;
|
||||
suspend)
|
||||
blurlock && systemctl suspend
|
||||
;;
|
||||
hibernate)
|
||||
blurlock && systemctl hibernate
|
||||
;;
|
||||
reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
shutdown)
|
||||
systemctl poweroff
|
||||
;;
|
||||
*)
|
||||
echo "== ! i3exit: missing or invalid argument ! =="
|
||||
echo "Try again with: lock | logout | switch_user | suspend | hibernate | reboot | shutdown"
|
||||
exit 2
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user