change shutdown shortcut
[~bandali/configs] / i3 / .local / bin / i3exit
CommitLineData
db49043c
AB
1#!/bin/sh
2lock() {
3 i3lock-wrapper && sleep 1
4}
5
6case "$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
22esac
23
24exit 0