bspwm icon indicating copy to clipboard operation
bspwm copied to clipboard

[Feature Request and help] Master-stack layout in bspwm.

Open yogeshdofficial opened this issue 4 years ago • 5 comments

I am new to linux and I tried bspwm and can It have (dynamic)master-stack layout like DWM? dwm_master_stack_layout

yogeshdofficial avatar May 24 '21 16:05 yogeshdofficial

That looks like the spiral automatic scheme with initial_polarity=first_child.

bspc config automatic_scheme spiral
bspc config initial_polarity first_child
bspc config removal_adjustment true

# how much of the screen the "master" takes by default
bspc config split_ratio 0.7

emanuele6 avatar May 26 '21 04:05 emanuele6

Also, the node --circulate command is pretty useful with spiral:

super + {comma,period}
	bspc node '@/' -C {backward,forward}

This is the version I use personally (in case you prefer it):

super + {comma,period}
	bspc node 'focused.!floating.!fullscreen.window#@/' -C {backward,forward}

The other version will always run circulate on the root node of the focused desktop. My version will run circulate on it only if the focused node is a tiled (or pseudo_tiled) window; if it is floating or fullscreen or if a parent node is focused, it will do nothing.

emanuele6 avatar May 26 '21 05:05 emanuele6

@emanuele6 dwm's master and stack layout does not continue to spiral like bspwm's spiral layout.

In particular, after adding another node while the cursor is focused on the master (in the bottom diagram), the layout will look like this:

    ┌───────────┐┌─────┐
    │           ││  C  │
    │           │└─────┘
    │           │┌─────┐
    │     D     ││  B  │
    │           │└─────┘
    │           │┌─────┐
    │           ││  A  │
    └───────────┘└─────┘

So spiral is only equivalent to master and stack with 3 or fewer nodes. Do you do anything to limit the number of visible nodes on a desktop?

j-hui avatar Jan 23 '22 07:01 j-hui

RE: @j-hui

dwm's master and stack layout does not continue to spiral like bspwm's spiral layout.

I am aware it is not equivalent.

Do you do anything to limit the number of visible nodes on a desktop?

No, but you can read https://github.com/baskerville/bspwm/issues/1302 if you want to learn how to do that. Also, I don't use spiral; "This is the version I use personally" was refferring to the node -C bindings for the root node.

emanuele6 avatar Jan 23 '22 07:01 emanuele6

I see, thanks!

Also, I don't use spiral

What scheme do you use?

I find that while spiral creates arrangements that look nice and easy to understand, the trees it creates are kind of annoying to traverse. For instance, --circulate does not travel in the direction of the spiral.

j-hui avatar Jan 23 '22 07:01 j-hui