
Hello! Thank you for all your help! I tried that but now I get the following errors instead:
Error detected while loading xmonad configuration file: /home/l/.xmonad/xmonad.hs
xmonad.hs:51:31: Not in scope: `tag'
xmonad.hs:51:37: Not in scope: `workspace'
xmonad.hs:51:49: Not in scope: `visible'
xmonad.hs:52:48: Not in scope: `view'
Please check the file for errors.
Lines 51 and 52 are the ones I just added.
Many thanks if you can tell me how to fix this! : )
~l
--- On Fri, 9/17/10, wagnerdm@seas.upenn.edu
From: wagnerdm@seas.upenn.edu
Subject: Re: [xmonad] normal (rather than greedy) view: disable screen-focus switching? To: xmonad@haskell.org Date: Friday, September 17, 2010, 3:29 PM It should look like this instead: isVisible w ws = any ((w ==) . tag . workspace) (visible ws) lazyView w ws = if isVisible w ws then ws else view w ws
main = xmonad $ ewmh gnomeConfig { manageHook = manageHook gnomeConfig <+> composeAll myManageHook, workspaces = myWorkspaces, modMask = mod4Mask, -- makes all xmonad shortcuts be "Windows key + X" (thus not interfering with any app's) borderWidth = 3, normalBorderColor = "#cccccc", focusedBorderColor = "#cd8b00", layoutHook = showWName myLayout } `additionalKeysP` myKeys
Good luck, ~d
Quoting Lara Michaels
: Hello! Many thanks for your help.
There may be a contrib module for this. I don't know. In any case, some untested code follows:
isVisible w ws = any ((w ==) . tag . workspace) (visible ws) lazyView w ws = if isVisible w ws then ws else view w ws
You can then use lazyView exactly as you would use view or greedyView (it should have the same type).
I must be placing this code in the wrong part of my xmonad.hs file. I edited the 'main' segment so that it reads:
main = xmonad $ ewmh gnomeConfig { manageHook = manageHook gnomeConfig <+> composeAll myManageHook, workspaces = myWorkspaces, modMask = mod4Mask, -- makes all xmonad shortcuts be "Windows key + X" (thus not interfering with any app's)
borderWidth = 3,
normalBorderColor = "#cccccc",
focusedBorderColor = "#cd8b00",
layoutHook = showWName myLayout, isVisible w ws = any ((w ==) . tag . workspace) (visible ws), lazyView w ws = if isVisible w ws then ws else view w ws } `additionalKeysP` myKeys
but I get an error message saying
xmonad.hs:59:11: parse error on input `w'
where line 59 is the one defining (?) isVisible. If someone knows what I am doing wrong, that would be great.
Many thanks! ~l
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad