swaylock: Use USR1 signal to trigger timeout

This commit is contained in:
histalek 2021-11-17 13:42:50 +01:00
parent 959c6f9c31
commit 2f300bda11
No known key found for this signature in database
GPG key ID: ED1D6449704FDE03

View file

@ -2,5 +2,5 @@
swayidle -w \ swayidle -w \
timeout 1 'swaylock -f -c 000000' \ timeout 1 'swaylock -f -c 000000' \
timeout 2 'swaymsg "output * dpms off"' \ timeout 2 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"; pkill -nx swayidle' resume 'swaymsg "output * dpms on"; pkill -USR1 swayidle'