dotfiles-guix/home-config/sway/config.d/idle

5 lines
221 B
Text

# Turn off display after tiemout
exec swayidle -w \
timeout 300 '~/.config/sway/lock.sh' \
timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep '~/.config/sway/lock.sh'