sway: update suspend script
This commit is contained in:
parent
7102da428e
commit
bfcd21e3b4
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
swaylock
|
||||
|
||||
loginctl suspend
|
||||
systemctl suspend
|
||||
sudo -A zzz
|
|
@ -3,8 +3,8 @@
|
|||
pkill -9 swayidle
|
||||
|
||||
exec swayidle -w \
|
||||
before-sleep 'pkill caffeinated; swaylock -f' \
|
||||
timeout 360 'pkill caffeinated; swaylock -f' \
|
||||
before-sleep 'swaylock -f' \
|
||||
timeout 360 'swaylock -f' \
|
||||
timeout 1800 'mpc status | grep "^\[playing\]" > /dev/null ||
|
||||
swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
|
|
|
@ -38,7 +38,7 @@ $mod+p exec wpass
|
|||
$mod+Shift+c reload
|
||||
|
||||
# Lock Sway and suspend
|
||||
--locked $mod+Control+z exec loginctl suspend || systemctl suspend
|
||||
--locked $mod+Control+z exec _suspend
|
||||
|
||||
# Exit sway
|
||||
Control+Alt+delete exec pkill -u "$USER" -HUP runsvdir ; exit
|
||||
|
|
Reference in New Issue