Skip to content
PC
Dwl

Dwl

Turn screen off

Install swayidle and wlopm. This command can then be used, with the timeout value in seconds:

swayidle -w timeout 300 'wlopm --off "*"' resume 'wlopm --on "*"' &

Inhibit swayidle while playing audio

Swayidle listens to systemd for inhibit messages, but some programs send only dbus messages. sway-audio-idle-inhibitor-git inhibits swayidle while audio is being played to overcome this limitation.