Created
August 26, 2013 09:21
-
-
Save rblaze/6339569 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XMonad | |
import XMonad.Config.Gnome | |
import XMonad.Util.EZConfig | |
import XMonad.Hooks.ManageHelpers (isFullscreen,doFullFloat) | |
import qualified XMonad.StackSet as W | |
myWorkspaces = ["1","2","3","4","5","6","7","8","9"] | |
main = xmonad $ gnomeConfig | |
{ workspaces = myWorkspaces | |
, modMask = mod4Mask -- set the mod key to the windows key | |
, manageHook = composeAll | |
[ manageHook gnomeConfig | |
-- , title =? "foo" --> doShift "2" | |
-- , isFullscreen --> doFullFloat | |
] | |
} `additionalKeysP` myKeys | |
myKeys = [ | |
-- other additional keys | |
] ++ | |
[ (otherModMasks ++ "M-" ++ [key], action tag) | |
| (tag, key) <- zip myWorkspaces "123456789" | |
, (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