my personal dwl config managed with pijul.

Handle monitor unplug

Floating widndows with "x < removed monitor's width" aren't resized (they used to disappear in negative coordinates).

Actually delete monitors when they are unplugged, recalculate sgeom and give a new monitor to clients that were on the removed one with setmon()

arrangefloat() funcion has been exploded to save iterations in cleanupmon().

Also if a monitor that supports auto suspension is turned off, dwl will count it as unplugged (it will become unreachable and all clients will be moved to the leftmost monitor). However, if at least one monitor isn't plugged in, dwl will still crash the same as before.

Unlike sway, when the output configuration is changed and restored, (unplug + plug the same monitor for example) previous application positions aren't kept. This is due to the fact that on sway every workspace is unique among all monitors.

Created by  Stivvo  on September 14, 2020
XXOC2AY53ZWML6TVPKX6BHGKZJNRET4IWRSTCVMJQJZMK3MFD3TQC
Change contents