diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-04 14:36:43 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-04 14:36:43 +0200 |
commit | b444dd254cc983228afa61795d25a4ea11e0bc31 (patch) | |
tree | 4ac2aa38811a0b7c1ad5c34d364231f313809b74 /.xmonad/xmonad.hs | |
parent | 8f008a3c52e156e07dd35edd1e69651a6f17c648 (diff) | |
download | dotfiles-b444dd254cc983228afa61795d25a4ea11e0bc31.tar dotfiles-b444dd254cc983228afa61795d25a4ea11e0bc31.tar.gz dotfiles-b444dd254cc983228afa61795d25a4ea11e0bc31.tar.bz2 dotfiles-b444dd254cc983228afa61795d25a4ea11e0bc31.tar.xz dotfiles-b444dd254cc983228afa61795d25a4ea11e0bc31.zip |
per-host selection of available workspaces
Diffstat (limited to '.xmonad/xmonad.hs')
-rw-r--r-- | .xmonad/xmonad.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index e6a581d..c0f1049 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs | |||
@@ -64,6 +64,7 @@ defaultHost = Host { hName = "unkown" | |||
64 | , hWsp = show | 64 | , hWsp = show |
65 | , hCoWsp = const Nothing | 65 | , hCoWsp = const Nothing |
66 | , hKeysMod = const id | 66 | , hKeysMod = const id |
67 | , hWspList = [1..] | ||
67 | } | 68 | } |
68 | 69 | ||
69 | --hostFromName :: (LayoutClass l1 a, LayoutClass l2 a) => HostName -> Host (l1 a) (l2 a) | 70 | --hostFromName :: (LayoutClass l1 a, LayoutClass l2 a) => HostName -> Host (l1 a) (l2 a) |
@@ -76,9 +77,10 @@ hostFromName h@("vali") = defaultHost { hName = h | |||
76 | , hCoWsp = hCoWsp | 77 | , hCoWsp = hCoWsp |
77 | , hKeysMod = \conf -> Map.union $ Map.fromList $ join $ map (spawnBindings conf) [ (xK_d, ["dwb", "dwb $(xclip -o)"]) | 78 | , hKeysMod = \conf -> Map.union $ Map.fromList $ join $ map (spawnBindings conf) [ (xK_d, ["dwb", "dwb $(xclip -o)"]) |
78 | ] | 79 | ] |
80 | , hWspList = [2..] | ||
79 | } | 81 | } |
80 | where | 82 | where |
81 | workspaceNames = Map.fromList [ (1, "web") | 83 | workspaceNames = Map.fromList [ (2, "web") |
82 | ] | 84 | ] |
83 | hWsp = wspFromMap workspaceNames | 85 | hWsp = wspFromMap workspaceNames |
84 | hCoWsp = coWspFromMap workspaceNames | 86 | hCoWsp = coWspFromMap workspaceNames |
@@ -123,7 +125,7 @@ main = do | |||
123 | , logHook = dynamicLogWithPP xmobarPP' | 125 | , logHook = dynamicLogWithPP xmobarPP' |
124 | , modMask = mod4Mask | 126 | , modMask = mod4Mask |
125 | , keys = \conf -> hKeysMod host conf $ myKeys' conf | 127 | , keys = \conf -> hKeysMod host conf $ myKeys' conf |
126 | , workspaces = take (length numKeys) $ map wsp [1..] | 128 | , workspaces = take (length numKeys) $ map wsp (hWspList host) |
127 | , startupHook = assimilateKeychain >> (sequence autostart) >> (setDefaultCursor xC_left_ptr) >> banishScreen LowerRight >> return () | 129 | , startupHook = assimilateKeychain >> (sequence autostart) >> (setDefaultCursor xC_left_ptr) >> banishScreen LowerRight >> return () |
128 | , normalBorderColor = "#202020" | 130 | , normalBorderColor = "#202020" |
129 | , focusedBorderColor = "white" | 131 | , focusedBorderColor = "white" |