Skip to content

Instantly share code, notes, and snippets.

@zoranzaric
Created June 26, 2010 13:30
Show Gist options
  • Save zoranzaric/454047 to your computer and use it in GitHub Desktop.
Save zoranzaric/454047 to your computer and use it in GitHub Desktop.
import XMonad
import XMonad.Config.Gnome
import qualified XMonad.StackSet as W
import XMonad.Util.EZConfig
myManageHook =
composeAll [
resource =? "Do" --> doIgnore,
resource =? "key-mon" --> doIgnore
]
myWorkspaces = ["firefox","thunderbird","pidgin","four","five","six","seven","eight","nine"]
main = xmonad $ gnomeConfig
{ manageHook = manageHook gnomeConfig <+> myManageHook
, workspaces = myWorkspaces
, modMask = mod4Mask
, borderWidth = 2
, terminal = "urxvt"
}
`additionalKeysP`
(
[
("M-<Space>", spawn "gnome-do" )
, ("M-n", sendMessage NextLayout )
]
++ -- important since ff. is a list itself, can't just put inside above list
[(otherModMasks ++ "M-" ++ [key], action tag)
| (tag, key) <- zip myWorkspaces "zuiop6789"
, (otherModMasks, action) <- [("", windows . W.view) -- was W.greedyView
, ("S-", windows . W.shift)]
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment