Open hannenz opened 11 months ago
This pull request adds the ability to have individual region_padding values for each side (top, right, bottom, left). My motivation was that when using a 3rd party bar and want to make space for it, the only way to do so was to manually specify the region property in spectrwm.conf, which in turn meant that the screens will not be managed by xrandr but are hardcoded in the config file. Since I often change displays (mobile on laptop, homeoffice with 2 screens, office with 3 screens) I wished there was a way to keep autorandr handle the screens and have a possibility to make space for the bar and came up with this sollution. Would be glad to hear what you think of it. And thanks a lot for this great window manager!
Changed region_padding from int to array
added config parsing like in css: Padding can be defined like in CSS, e.g.: val1 [val2 [val2 [val4]]] This also ensures backwards compatibility when only one value is given.
stack()
method when adjusting stack area for region bar and padding.