scripts/sway_screensaver.sh

7 lines
194 B
Bash
Raw Normal View History

2022-04-03 22:54:40 +03:00
#!/usr/bin/env bash
swayidle -w \
timeout 30 'swaylock -f -c 000000' \
timeout 60 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000'