Create exit script for sway

This commit is contained in:
exu 2023-11-24 17:04:03 +01:00
parent 14a74a18d2
commit 0e675619a2

View File

@ -1,20 +1,17 @@
#!/bin/sh #!/usr/bin/env sh
case "$1" in case "$1" in
lock) lock)
#betterlockscreen -l; dunstctl set-paused true swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"
betterlockscreen -l
;; ;;
logout) logout)
i3-msg exit swaymsg exit
;; ;;
suspend) suspend)
#betterlockscreen -s
systemctl suspend systemctl suspend
;; ;;
hibernate) hibernate)
systemctl hibernate exit 1
;; ;;
reboot) reboot)
systemctl reboot systemctl reboot