1timeout 30 'pgrep swaylock && swaymsg "output * dpms off"' \
2 resume 'pgrep swaylock && swaymsg "output * dpms on"'
3timeout 120 'swaylock -f' \
4 resume ''
5timeout 300 'swaymsg "output * dpms off"' \
6 resume 'swaymsg "output * dpms on"'
7before-sleep 'swaylock -f'
8after-resume 'swaymsg "output * dpms on"'