swayidle: Configurable display-off and display-on commands

This commit is contained in:
Adam Gausmann 2024-08-28 10:21:02 -05:00
parent b27c24a1b8
commit 0d0d0e7059

View file

@ -1 +1,2 @@
timeout 10 'pgrep swaylock && swaymsg "output * dpms off"' resume 'pgrep swaylock && swaymsg "output * dpms on"' timeout 10 'pgrep swaylock && ${host.get('display-off-cmd', 'swaymsg "output * dpms off"')}' \
resume 'pgrep swaylock && ${host.get('display-on-cmd', 'swaymsg "output * dpms on"')}'