]> git.mdlowis.com Git - proto/labwc.git/commitdiff
labwc-config(5): add example for autoEnableOutputs
authorJohan Malm <jgm323@gmail.com>
Tue, 9 Sep 2025 20:21:04 +0000 (21:21 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 9 Sep 2025 20:34:22 +0000 (21:34 +0100)
...with inspiration from example in #3059 by @jlindgren90

docs/labwc-config.5.scd

index 95600d3b0b72e96fa8298e9c4a87cb90d7b1aba4..a854d886f0bb8363e1ab0ddd97821754cf6b2a1b 100644 (file)
@@ -228,6 +228,23 @@ this is for compatibility with Openbox.
        unless an external tool such as `wlr-randr` or `kanshi` is used to
        manage outputs.
 
+       The reason for the existance of this option is that after losing signal
+       from the PC (e.g. by `wlopm -off`), some monitors do an input detection
+       that makes it appear (from the PC side) to disconnect and reconnect a
+       few seconds later, causing the monitor to turn back on again (as labwc
+       auto-enables newly connected outputs by default).
+
+       An example usage pattern to avoid the above behavior looks as follows:
+       - Set *<core><autoEnableOutputs>* to *no*
+       - Run kanshi (e.g. from autostart) and rely on it to enable new outputs
+       - Have swayidle kill and restart kanshi when entering powersave as
+         follows:
+
+       ```
+       swayidle -w timeout 600 \\
+           'pkill kanshi ; wlopm --off \*' resume 'kanshi & wlopm --on \*'
+       ```
+
 *<core><reuseOutputMode>* [yes|no]
        Try to re-use the existing output mode (resolution / refresh rate).
        This may prevent unnecessary screenblank delays when starting labwc