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
lock)
#betterlockscreen -l; dunstctl set-paused true
betterlockscreen -l
swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"
;;
logout)
i3-msg exit
swaymsg exit
;;
suspend)
#betterlockscreen -s
systemctl suspend
;;
hibernate)
systemctl hibernate
exit 1
;;
reboot)
systemctl reboot