i3exit
[~bandali/configs] / i3 / .local / bin / i3exit
1 #!/bin/sh
2 lock() {
3 i3lock-wrapper && sleep 1
4 }
5
6 case "$1" in
7 lock)
8 lock
9 ;;
10 logout)
11 i3-msg exit
12 ;;
13 reboot)
14 systemctl reboot
15 ;;
16 shutdown)
17 systemctl poweroff
18 ;;
19 *)
20 echo "Usage: $0 {lock|logout|reboot|shutdown}"
21 exit 2
22 esac
23
24 exit 0