configs/arch-config/.config/i3/scripts/i3exit.sh

30 lines
458 B
Bash
Raw Normal View History

2020-03-04 13:28:42 +01:00
#!/bin/sh
case "$1" in
lock)
betterlockscreen -l
2020-03-04 13:28:42 +01:00
;;
logout)
i3-msg exit
;;
suspend)
#betterlockscreen -s
systemctl suspend
2020-03-04 13:28:42 +01:00
;;
hibernate)
systemctl hibernate
;;
reboot)
systemctl reboot
;;
shutdown)
systemctl poweroff
;;
*)
echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}"
exit 2
esac
exit 0