diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-15 22:43:03 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-15 22:43:03 +0200 |
commit | 4cb0c1bfd386a3a9bf69bc94d8d394988565dffe (patch) | |
tree | 951babe37190a1893f94e768f8caafdc9ca19c17 /.xmonad/xmonad.hs | |
parent | 00bf13197996c7db9cc7bee07e423bef75ffdb93 (diff) | |
download | dotfiles-4cb0c1bfd386a3a9bf69bc94d8d394988565dffe.tar dotfiles-4cb0c1bfd386a3a9bf69bc94d8d394988565dffe.tar.gz dotfiles-4cb0c1bfd386a3a9bf69bc94d8d394988565dffe.tar.bz2 dotfiles-4cb0c1bfd386a3a9bf69bc94d8d394988565dffe.tar.xz dotfiles-4cb0c1bfd386a3a9bf69bc94d8d394988565dffe.zip |
Better workspace assignments & emacs on vali
Diffstat (limited to '.xmonad/xmonad.hs')
-rw-r--r-- | .xmonad/xmonad.hs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index c172147..c0a18c3 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs | |||
@@ -72,8 +72,9 @@ defaultHost = Host { hName = "unkown" | |||
72 | hostFromName :: HostName -> Host | 72 | hostFromName :: HostName -> Host |
73 | hostFromName h@("vali") = defaultHost { hName = h | 73 | hostFromName h@("vali") = defaultHost { hName = h |
74 | , hManageHook = composeOne $ catMaybes [ Just manageScratchTerm | 74 | , hManageHook = composeOne $ catMaybes [ Just manageScratchTerm |
75 | , (\wsp -> className =? ".dwb-wrapped" -?> doShift wsp) <$> hCoWsp "web" | 75 | , assign "web" $ className =? ".dwb-wrapped" |
76 | , (\wsp -> className =? "Chromium" -?> doShift wsp) <$> hCoWsp "web" | 76 | , assign "web" $ className =? "Chromium" |
77 | , assign "work" $ className =? "Emacs" | ||
77 | ] | 78 | ] |
78 | , hWsp = hWsp | 79 | , hWsp = hWsp |
79 | , hCoWsp = hCoWsp | 80 | , hCoWsp = hCoWsp |
@@ -83,9 +84,11 @@ hostFromName h@("vali") = defaultHost { hName = h | |||
83 | } | 84 | } |
84 | where | 85 | where |
85 | workspaceNames = Map.fromList [ (2, "web") | 86 | workspaceNames = Map.fromList [ (2, "web") |
87 | , (3, "work") | ||
86 | ] | 88 | ] |
87 | hWsp = wspFromMap workspaceNames | 89 | hWsp = wspFromMap workspaceNames |
88 | hCoWsp = coWspFromMap workspaceNames | 90 | hCoWsp = coWspFromMap workspaceNames |
91 | assign wsp test = (\wsp -> test -?> doShift wsp) <$> hCoWsp wsp | ||
89 | hostFromName _ = defaultHost | 92 | hostFromName _ = defaultHost |
90 | 93 | ||
91 | wspFromMap workspaceNames = \i -> case Map.lookup i workspaceNames of | 94 | wspFromMap workspaceNames = \i -> case Map.lookup i workspaceNames of |