mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-09-07 19:54:50 +00:00
Description
This patch is no longer being maintained by me wochap, since I'm now using a different patch specific to my use case: https://codeberg.org/wochap/dwl/src/branch/v0.6-c/betterfloat/betterfloat-diff.patch.
This patch provides a keybinding to center the focused floating window.
Press MODKEY + x to center the focused floating window.
It does NOT center windows that are not floating.
The variable respect_monitor_reserved_area
allows the user to choose whether to center relative to the monitor or relative to the window area.
Explanation of respect_monitor_reserved_area:
The "Monitor area" refers to the space enclosed by the green rectangle, while the "Window area" refers to the space enclosed by the red rectangle.![]()