I'm not sure if this might be better off in programming, but it specifically relates to xmonad.
I based my configuration on
John Goerzen's configuration, so my manageHooks line looks like this:
Code:
main = do
xmproc <- spawnPipe "xmobar"
xmonad $ defaultConfig {
-- *snip*
workspaces = ["1:work", "2:im", "3:media", "4:web"] ++ map show [5 .. 9 :: Int],
manageHook = myManageHook <+> manageDocks <+> manageHook defaultConfig,
layoutHook = avoidStruts $ layoutHook defaultConfig,
-- *snip*
} --*snip*
myManageHook = composeAll
[
className =? "firefox-bin" --> doShift "4:web"
]
This is to allow me to put a statusbar and tray at the top of the screen. However, I would also like to use manageHooks as described in
this section of the Xmonad wiki, sending e.g. firefox to my 'web' workspace.
I've been unable to find any reference to the <+> operator on the internet, so I don't know if my attempt at customisation even makes any sense; it certainly doesn't work as I would expect (firefox always opens on the current workspace).
So my question is twofold:
* How can I edit my xmonad.hs file to allow me to get it to work?
* Does anyone have a good introduction to Haskell? The simplest one I've found is
http://www.haskell.org/tutorial/index.html but I found that a bit heavy going (it seems to be aimed at people who are at least passingly conversant with functional programming)
Thanks,