conformal / spectrwm

A small dynamic tiling window manager for X11.
ISC License
1.33k stars 96 forks source link

Allow region_padding to have individual values for each side (css-like) #530

Open hannenz opened 11 months ago

hannenz commented 11 months ago
    region_padding = 16         # top, left, bottom and right padding: 16
    region_padding = 16 20      # top and bottom: 16, left and right: 20
    region_padding = 16 20 10   # top: 16, bottom: 10, left and right: 20
    region_padding = 16 20 10 0 # top: 16, right: 20, bottom 10: left: 0
hannenz commented 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!