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

30 lines
482 B
Bash
Raw Normal View History

2020-03-04 13:28:42 +01:00
#!/bin/sh
case "$1" in
lock)
2021-06-01 13:36:48 +02:00
killall -SIGUSR1 dunst; 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