
tassilo:
Kai Grossjohann
writes: Hi Kai,
Does anyone have ready-made code to show the current layout in the status bar?
Nope, I don't think so. As Spencer told me on IRC, layouts don't have a name.
It would be useful for me.
Yes, I would like to have that information for use in my logHook, too. There are some layouts that cannot be distinguished quickly, e.g. the normal tiling, full and twopane look identically for one window. Normal tiling and twopane look similar with two windows, too.
So the only way to know what layout is used currently is to create some new windows and see how it behaves, or to memorize the list of layouts.
I've noticed people running 5 or more layouts in their layout list. This makes me think that we do need to move layouts into a type class, with a shared interface, including its name, and how to serialies layouts to disk. This is on Spencer's todo list, iirc. -- Don