swaywm/swayidle

configuration change

mdeff opened this issue · 2 comments

mdeff commented

Is it possible (or can it be made possible) to change swayidle config after launching it?

My use case would be to run

swayidle -w \
    timeout 600 'swaymsg "output * dpms off"' \
         resume 'swaymsg "output * dpms on"' \

in most situations, but disable DPMS on idle when I'm watching TV or presenting on a beamer (I have a key combination to configure my outputs in this mode). For now I'm running pkill swayidle, but that doesn't seem right.

disable DPMS on idle when I'm watching TV or presenting on a beamer

Apps you use should use the idle-inhibit protocol.

Related to swaywm/sway#2595

mdeff commented

Good to know! That would solve my problem indeed. I guess Firefox doesn't handle it yet... (My presentation app is pdfpc, I don't know if they implemented it). Inhibiting with a criteria (swaywm/sway#3070) would also be useful.

Either way, I still think it would be great to be able to reconfigure swayidle on the fly. Feel free to close if you don't think so.