bspwm icon indicating copy to clipboard operation
bspwm copied to clipboard

Status bar indicates "monocle" when it's just single_monocle

Open mdutra opened this issue 7 years ago • 3 comments

I like that single_monocle behaves as monocle layout but they're not exactly the same thing, there's one fundamental difference:

If I'm in single_monocle (only one node), I can still toggle the actual monocle layout.

  • single_monocle with monocle layout enabled: next window will open in monocle.
  • single_monocle with monocle layout disabled: next window will open in tiled.

The problem is that the status bar treat them as the same thing and I can't tell if monocle layout is enabled in single_monocle.

Possible solution: don't report monocle to the status bar when it's just single_monocle.

mdutra avatar Sep 20 '19 17:09 mdutra

In the output of bspc query -T -d, you'll notice two relevant keys: layout and userLayout.

baskerville avatar Sep 20 '19 18:09 baskerville

The issue is with the status bar, sorry about that.

mdutra avatar Sep 20 '19 19:09 mdutra

I'm reopening this issue because, after the discussion in polybar/polybar#1880, I think this is a problem with the window manager.

First of all, it's necessary to redefine the concept of single_monocle to an aesthetic feature.

Right now, in the man page:

single_monocle
  Set the desktop layout to monocle if there’s only one tiled window in the tree.

But actually, from the user's perspective, single_monocle just inherits the visual attributes of monocle but bahaves exactly like tiled. So it's confusing when the status bar indicates monocle, because the layout is actually tiled.

For this reason, it would be better if bspc subscribe report returns the 'userLayout' by default, ignoring single_monocle.

mdutra avatar Feb 13 '20 16:02 mdutra