
Hi all, I've just been trying to use Combo to setup a two-pane split workspace, but the examples in the contrib file don't work for me. When I use this line, combo (TwoPane 0.03 0.5) [(Full,1),(tabbed shrinkText defaultTConf,1)] in my Config.hs as follows, layouts = [ combo (TwoPane 0.03 0.5) [(Full,1),(tabbed shrinkText defaultTConf,1)] , Layout $ tabbed shrinkText defaultTConf , Layout tiled , Layout $ Mirror tiled , Layout Full ] I get the following build error, Preprocessing executables for xmonad-0.4... Building xmonad-0.4... [ 6 of 15] Compiling Config[boot] ( Config.hs-boot, nothing ) [14 of 15] Compiling Config ( Config.hs, dist/build/xmonad/xmonad-tmp/Config.o ) Config.hs:139:39: Couldn't match expected type `Layout a' against inferred type `Full a1' In the expression: Full In the expression: (Full, 1) In the second argument of `combo', namely `[(Full, 1), (tabbed shrinkText defaultTConf, 1)]' What am I doing wrong here ?? Cheers, Dave

On Thu, Oct 18, 2007 at 05:51:27PM +1000, Dave Harrison wrote:
Hi all,
I've just been trying to use Combo to setup a two-pane split workspace, but the examples in the contrib file don't work for me.
When I use this line,
combo (TwoPane 0.03 0.5) [(Full,1),(tabbed shrinkText defaultTConf,1)]
This needs to be: combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout tabbed shrinkText defaultTConf,1)] Sorry. -- David Roundy Department of Physics Oregon State University

droundy:
On Thu, Oct 18, 2007 at 05:51:27PM +1000, Dave Harrison wrote:
Hi all,
I've just been trying to use Combo to setup a two-pane split workspace, but the examples in the contrib file don't work for me.
When I use this line,
combo (TwoPane 0.03 0.5) [(Full,1),(tabbed shrinkText defaultTConf,1)]
This needs to be:
combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout tabbed shrinkText defaultTConf,1)]
is that a doc patch we're missing?

On Thu, Oct 18, 2007 at 01:27:51PM -0700, Don Stewart wrote:
droundy:
On Thu, Oct 18, 2007 at 05:51:27PM +1000, Dave Harrison wrote:
Hi all,
I've just been trying to use Combo to setup a two-pane split workspace, but the examples in the contrib file don't work for me.
When I use this line,
combo (TwoPane 0.03 0.5) [(Full,1),(tabbed shrinkText defaultTConf,1)]
This needs to be:
combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout tabbed shrinkText defaultTConf,1)]
is that a doc patch we're missing?
Yeah. -- David Roundy Department of Physics Oregon State University

On Thu, Oct 18, 2007 at 09:18:38AM -0400, David Roundy wrote:
combo (TwoPane 0.03 0.5) [(Full,1),(tabbed shrinkText defaultTConf,1)] combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout tabbed shrinkText defaultTConf,1)] You mean: combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout $ tabbed shrinkText defaultTConf,1)] ?

Devin Mullins wrote:
On Thu, Oct 18, 2007 at 09:18:38AM -0400, David Roundy wrote:
combo (TwoPane 0.03 0.5) [(Full,1),(tabbed shrinkText defaultTConf,1)] combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout tabbed shrinkText defaultTConf,1)] You mean: combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout $ tabbed shrinkText defaultTConf,1)] ?
Hey guys, I've tried both of your suggestions and neither seem to work for me. If I use, layouts = [ combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout tabbed shrinkText defaultTConf,1)] , Layout $ tabbed shrinkText defaultTConf , Layout tiled , Layout $ Mirror tiled , Layout Full -- Add extra layouts you want to use here: -- % Extension-provided layouts ] I get the error, Building xmonad-0.4... [ 6 of 15] Compiling Config[boot] ( Config.hs-boot, nothing ) [14 of 15] Compiling Config ( Config.hs, dist/build/xmonad/xmonad-tmp/Config.o ) Config.hs:139:55: Couldn't match expected type `(String -> [String]) -> TConf -> Layout a' against inferred type `Layout (TConf -> XMonadContrib.Tabbed.Tabbed a1)' In the expression: Layout tabbed shrinkText defaultTConf In the expression: (Layout tabbed shrinkText defaultTConf, 1) In the second argument of `combo', namely `[(Layout Full, 1), (Layout tabbed shrinkText defaultTConf, 1)]' If I use, layouts = [ combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout $ tabbed shrinkText defaultTConf,1)] , Layout $ tabbed shrinkText defaultTConf , Layout tiled , Layout $ Mirror tiled , Layout Full -- Add extra layouts you want to use here: -- % Extension-provided layouts ] I get, Building xmonad-0.4... [ 6 of 15] Compiling Config[boot] ( Config.hs-boot, nothing ) [14 of 15] Compiling Config ( Config.hs, dist/build/xmonad/xmonad-tmp/Config.o ) Config.hs:139:12: Couldn't match expected type `Layout Window' against inferred type `XMonadContrib.Combo.Combo TwoPane a' In the expression: combo (TwoPane 3.0e-2 0.5) [(Layout Full, 1), (Layout $ (tabbed shrinkText defaultTConf), 1)] In the expression: [combo (TwoPane 3.0e-2 0.5) [(Layout Full, 1), (Layout $ (tabbed shrinkText defaultTConf), 1)], Layout $ (tabbed shrinkText defaultTConf), Layout tiled, Layout $ (Mirror tiled), Layout Full] In the definition of `layouts': layouts = [combo (TwoPane 3.0e-2 0.5) [(Layout Full, 1), (Layout $ (tabbed shrinkText defaultTConf), 1)], Layout $ (tabbed shrinkText defaultTConf), Layout tiled, Layout $ (Mirror tiled), Layout Full] where tiled = Tall nmaster delta ratio nmaster = 1 ratio = 1 % 2 delta = 3 % 100

On Oct 19, 2007, at 4:19 , Dave Harrison wrote:
Devin Mullins wrote:
On Thu, Oct 18, 2007 at 09:18:38AM -0400, David Roundy wrote:
combo (TwoPane 0.03 0.5) [(Full,1),(tabbed shrinkText defaultTConf,1)] combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout tabbed shrinkText defaultTConf,1)] You mean: combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout $ tabbed shrinkText defaultTConf,1)] ?
I've tried both of your suggestions and neither seem to work for me.
I think Combo itself needs to be stuffed into a Layout:
Layout $ combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout $ tabbed shrinkText defaultTConf,1)]
-- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

On Fri, Oct 19, 2007 at 06:19:45PM +1000, Dave Harrison wrote:
Devin Mullins wrote: I've tried both of your suggestions and neither seem to work for me.
If I use,
layouts = [ combo (TwoPane 0.03 0.5) [(Layout Full,1),(Layout tabbed shrinkText defaultTConf,1)] , Layout $ tabbed shrinkText defaultTConf , Layout tiled , Layout $ Mirror tiled , Layout Full -- Add extra layouts you want to use here: -- % Extension-provided layouts ]
Sorry. I think we want: layouts = [ Layout $ combo (TwoPane 0.03 0.5) [(Layout Full,1), (Layout tabbed shrinkText defaultTConf,1)] , Layout $ tabbed shrinkText defaultTConf , Layout tiled , Layout $ Mirror tiled , Layout Full -- Add extra layouts you want to use here: -- % Extension-provided layouts ] -- David Roundy Department of Physics Oregon State University

On Oct 19, 2007, at 10:19 , David Roundy wrote:
Sorry. I think we want:
layouts = [ Layout $ combo (TwoPane 0.03 0.5) [(Layout Full,1), (Layout tabbed shrinkText defaultTConf,1)]
missing $ (or possibly parens) after Layout
, Layout $ tabbed shrinkText defaultTConf , Layout tiled , Layout $ Mirror tiled , Layout Full -- Add extra layouts you want to use here: -- % Extension-provided layouts ]
-- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH
participants (5)
-
Brandon S. Allbery KF8NH
-
Dave Harrison
-
David Roundy
-
Devin Mullins
-
Don Stewart