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

31 lines
505 B
Bash
Raw Normal View History

2020-03-04 13:28:42 +01:00
#!/bin/sh
case "$1" in
lock)
#betterlockscreen -l
2021-06-01 13:30:26 +02:00
~/.config/i3/scripts/disable-dunst.sh
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