Status bar indicates "monocle" when it's just single_monocle
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.
In the output of bspc query -T -d, you'll notice two relevant keys: layout and userLayout.
The issue is with the status bar, sorry about that.
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.