baskerville / bspwm

A tiling window manager based on binary space partitioning
BSD 2-Clause "Simplified" License
7.69k stars 417 forks source link

reduce minimum height #874

Open aeosynth opened 5 years ago

aeosynth commented 5 years ago

instead of lemonbar, i use a 1 line high terminal as a status bar. the minimum height of 32px is a bit too much; i'd like it reduced to 24px, or configurable.

msteen commented 5 years ago

You normally would not want bspwm to manage your status bar, by adding a rule saying it should not be managed, e.g. bspc rule --add my-status-bar-class manage=off. Then bspwm will leave it alone, and if it still has a too high of a minimum height, then it is not a bspwm issue, but an issue of your terminal program.

aeosynth commented 5 years ago

true i can get an arbitrary sized status bar, but my normal windows will still have a minimum 32px offset. i only want the status bar over one column of windows, so i can't use bspc config top_padding

workflow

msteen commented 5 years ago

I have to be honest, I am not quite clear what you want to achieve. You asked:

the minimum height of 32px is a bit too much; i'd like it reduced to 24px

And you seem to understand how this can be achieved:

true i can get an arbitrary sized status bar

So that should have answered your question as you initially stated it.

but my normal windows will still have a minimum 32px offset

What do you mean by offset, the offset created by the status bar? I ask this, because right now I have a status bar with a height less than 32px, without any problem, so I am unclear what kind of offset you exactly mean.

i only want the status bar over one column of windows, so i can't use bspc config top_padding

What do you mean by this? Do you mean you conceptually want like two desktops on the same monitor (or two virtual monitors on one physical monitor), one with the status bar and one without? If so, I do not believe this is possible in bspwm.

Or do you mean the minimum window size of normal windows is 32px, and you want to decrease so that you can use a normal managed window as a status bar with a height less than 32px? If so, then it might be possible, because it should probably not be too difficult to make that into some config option.

aeosynth commented 5 years ago

I have to be honest, I am not quite clear what you want to achieve

my screenshot shows what i'm after

What do you mean by this? Do you mean you conceptually want like two desktops on the same monitor (or two virtual monitors on one physical monitor), one with the status bar and one without? If so, I do not believe this is possible in bspwm.

not two desktops, two columns of windows, one with, and one without the status bar. my screenshot shows this

https://github.com/baskerville/bspwm/blob/master/src/tree.h#L29

i just changed #define MIN_HEIGHT 32 -> 24

jallbrit commented 4 years ago

@baskerville any input on the configurability of MIN_HEIGHT? This issue is an example of a problem introduced by the hard-coded size.