summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-07-15 22:43:03 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-07-15 22:43:03 +0200
commit4cb0c1bfd386a3a9bf69bc94d8d394988565dffe (patch)
tree951babe37190a1893f94e768f8caafdc9ca19c17
parent00bf13197996c7db9cc7bee07e423bef75ffdb93 (diff)
downloaddotfiles-4cb0c1bfd386a3a9bf69bc94d8d394988565dffe.tar
dotfiles-4cb0c1bfd386a3a9bf69bc94d8d394988565dffe.tar.gz
dotfiles-4cb0c1bfd386a3a9bf69bc94d8d394988565dffe.tar.bz2
dotfiles-4cb0c1bfd386a3a9bf69bc94d8d394988565dffe.tar.xz
dotfiles-4cb0c1bfd386a3a9bf69bc94d8d394988565dffe.zip
Better workspace assignments & emacs on vali
-rw-r--r--.xmonad/xmonad.hs7
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"
72hostFromName :: HostName -> Host 72hostFromName :: HostName -> Host
73hostFromName h@("vali") = defaultHost { hName = h 73hostFromName 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
89hostFromName _ = defaultHost 92hostFromName _ = defaultHost
90 93
91wspFromMap workspaceNames = \i -> case Map.lookup i workspaceNames of 94wspFromMap workspaceNames = \i -> case Map.lookup i workspaceNames of