swaywm / swayidle

Idle management daemon for Wayland
MIT License
550 stars 50 forks source link

[RFE] option to let a set of keys through to compositor without waking up #109

Open alex3kov opened 2 years ago

alex3kov commented 2 years ago

What I'd like to do is this:

swayidle --ignore XF86AudioLowerVolume,XF86AudioPlay -w timeout 1800 'swaymsg "output * dpms off"'

When XF86AudioPlay is pressed it gets through to sway (and in turn to mpc) without waking up the monitor. The use case for this is controlling the PC as a music box only, without waking up the monitor (light pollution). Using hardware button to completely turn off the monitor is no good - like many monitors, mine has a glowing button (bright white when turned on, bright orange when suspended), so I isolated it. Controlling DPMS with software only.