2020-03-04 13:28:42 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
lock)
|
2021-06-01 13:25:53 +02:00
|
|
|
#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)
|
2021-03-09 08:57:41 +01:00
|
|
|
#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
|