diff options
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 |