Skip to content

Instantly share code, notes, and snippets.

@tom-lpsd
Created March 29, 2010 07:08
Show Gist options
  • Save tom-lpsd/347542 to your computer and use it in GitHub Desktop.
Save tom-lpsd/347542 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
main = xmonad $ gnomeConfig
{ manageHook = manageHook gnomeConfig
, logHook = logHook gnomeConfig
, modMask = mod3Mask
} `additionalKeysP` screenKeys
screenKeys = [
(mask ++ "M-" ++ [key], screenWorkspace scr >>= flip whenJust (windows . action))
| (key, scr) <- zip "wer" [1,0,2]
, (action, mask) <- [(W.view, "") , (W.shift, "S-")]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment