You are not logged in.

#1 2012-09-25 16:47:25

Johnyjohn
Member
Registered: 2011-08-13
Posts: 5

[SOLVED] Xmonad - Use subLayout without tabs

Hi there,

I have a defined layout using subLayouts :

codeLayout = spacing 6 $ windowNavigation $ subTabbed $ boringWindows $ ResizableTall 1 (2/100) (1/2) [] ||| noBorders Full

According to the documentation, subTabbed is a use of subLayout with addTabs to show decorations.
I'm trying to have same behavior but without the tabs but i just fail every time i use subLayout directly (wrong syntax ?).

Is it possible to use subLayout directly ? Or maybe avoid the addTabs decorator ?

Thank you !

Last edited by Johnyjohn (2012-09-25 17:22:29)

Offline

#2 2012-09-25 17:21:57

Johnyjohn
Member
Registered: 2011-08-13
Posts: 5

Re: [SOLVED] Xmonad - Use subLayout without tabs

I spent too many hours on this before finding how to use subLayout.
The documentation constructor and example lost me as i don't know/understand haskell :

subLayout :: [Int] -> subl a -> l a -> ModifiedLayout (Sublayout subl) l a
myLayout = addTabs shrinkText defaultTheme $ subLayout [0,1,2] (Simplest ||| Tall 1 0.2 0.5 ||| Circle) $ Tall 1 0.2 0.5 ||| Full

What i want is done by removing modified and sub layouts items :

codeLayout = spacing 6 $ windowNavigation $ boringWindows $ subLayout [0, 1] (Full) $ ResizableTall 1 (2/100) (1/2) []

It's know a resizable tiled spaced layout with the possibility to group windows in a sub full layout (like a stack ?).

Hope it can be usefull.

Thank you for everything i found in this forum.

Last edited by Johnyjohn (2012-09-26 06:29:35)

Offline

Board footer

Powered by FluxBB