Editing the layout hook

I've just started using Xmonad so apologies if this is a very basic question. I tried to use a different layout but I keep getting errors. Even when I simply copied the example from Monad-Doc-Extending.html it didn't work. My xmonad.hs file was as follows: -------------------------------------- import XMonad import XMonad.Layout.Tabbed import XMonad.Layout.Accordion import XMonad.Layout.NoBorders mylayoutHook = Full ||| noBorders (tabbed shrinkText defaultTConf) ||| Accordion main = xmonad $ defaultConfig { layoutHook = mylayoutHook } ----------------------------------------------- The error message is: xmonad.hs:7:58: Not in scope: `defaultTConf' Can anyone kindly tell me what is wrong here? Anthony -- Anthony Campbell - ac@acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk - sample my ebooks at http://www.smashwords.com/profile/view/acampbell

On Wed, Sep 14, 2011 at 04:30, Anthony Campbell
mylayoutHook = Full ||| noBorders (tabbed shrinkText defaultTConf) ||| Accordion xmonad.hs:7:58: Not in scope: `defaultTConf'
There isn't a defaultTConf defined by XMonad.Layout.Tabbed. You probably want defaultTheme. -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

On 14 Sep 2011, Brandon Allbery wrote:
On Wed, Sep 14, 2011 at 04:30, Anthony Campbell
wrote: A A mylayoutHook = Full ||| noBorders (tabbed shrinkText defaultTConf) ||| Accordion xmonad.hs:7:58: Not in scope: `defaultTConf'
There isn't a defaultTConf defined by XMonad.Layout.Tabbed. A You probably want defaultTheme. -- brandon s allbery A A A A A A A A A A A A A A A A A A A allbery.b@gmail.com wandering unix systems administrator (available) A A (412) 475-9364 vm/sms
I tried that, but no luck. But I think I may have a more fundamental problem: whichever module I select to import, I get an error message that it can't be found. But I do have the relevant package installed: libghc-xmonad-contrib-dev - Extensions to xmonad and they are present in /usr/lib/haskell-packages/ghc/lib/xmonad-contrib-0.9.2/ghc-7.0.4/XMonad/Layout/ Is something misconfigured? The ghc executables are in my path in /usr/bin. Anthony -- Anthony Campbell - ac@acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk - sample my ebooks at http://www.smashwords.com/profile/view/acampbell

Try the command "ghc-pkg check". If that doesn't report any errors, then your configuration is probably OK.

On 14 Sep 2011, Amy de Buitléir wrote:
Try the command "ghc-pkg check". If that doesn't report any errors, then your configuration is probably OK.
Thanks - no errors shown. Anthony -- Anthony Campbell - ac@acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk - sample my ebooks at http://www.smashwords.com/profile/view/acampbell

Thanks - no errors shown.
Once you've installed xmonad and xmonad-contrib, you probably have everything you need for XMonad, unless you're doing something really fancy. I suspect the problem is that the example you're following is out of date. I believe some things in the contrib packages moved, got renamed, or got replaced with something similar. I've been using Xmonad for years, but I only know about the configuration stuff that I myself use. But there's an Xmonad mailing list that is very friendly and should be able to answer your question quickly. http://xmonad.org/community.html BTW, Xmonad rocks!

On 15 Sep 2011, Amy de Buitléir wrote:
Thanks - no errors shown.
Once you've installed xmonad and xmonad-contrib, you probably have everything you need for XMonad, unless you're doing something really fancy. I suspect the problem is that the example you're following is out of date. I believe some things in the contrib packages moved, got renamed, or got replaced with something similar.
I've been using Xmonad for years, but I only know about the configuration stuff that I myself use. But there's an Xmonad mailing list that is very friendly and should be able to answer your question quickly.
http://xmonad.org/community.html
BTW, Xmonad rocks!
Many thanks for this link. I had thought that this _was_ the xmonad mailing list - I didn't know about the place you mention. I will follow it up. I have been much impressed with xmonad so far. I have managed to do some basic configuring, mainly to change the default mod key. Actually, most of the defaults are fine for me - I mainly use fullscreen - but it would be nice to experiment with some of the contrib stuff. -- Anthony Campbell - ac@acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk - sample my ebooks at http://www.smashwords.com/profile/view/acampbell
participants (3)
-
Amy de Buitléir
-
Anthony Campbell
-
Brandon Allbery