diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-04 14:22:15 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-07-04 14:22:15 +0200 |
commit | 31e504757ac68ea2b3ad1303665453f7e0342806 (patch) | |
tree | d3dc9f6e546dcfa0a77d00efd2a2c54ebdc2034c | |
parent | 2eac61501ed8f1a5fe5d94edfafd35ba5043b898 (diff) | |
download | dotfiles-31e504757ac68ea2b3ad1303665453f7e0342806.tar dotfiles-31e504757ac68ea2b3ad1303665453f7e0342806.tar.gz dotfiles-31e504757ac68ea2b3ad1303665453f7e0342806.tar.bz2 dotfiles-31e504757ac68ea2b3ad1303665453f7e0342806.tar.xz dotfiles-31e504757ac68ea2b3ad1303665453f7e0342806.zip |
Switched to applicative
-rw-r--r-- | .xmonad/xmonad.hs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index c5d4532..8321f25 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs | |||
@@ -47,6 +47,8 @@ import XMonad.Prompt.MySsh | |||
47 | 47 | ||
48 | import Network.HostName | 48 | import Network.HostName |
49 | 49 | ||
50 | import Control.Applicative (<$>) | ||
51 | |||
50 | type KeyMap = Map (ButtonMask, KeySym) (X ()) | 52 | type KeyMap = Map (ButtonMask, KeySym) (X ()) |
51 | 53 | ||
52 | data Host l1 l2 = Host | 54 | data Host l1 l2 = Host |
@@ -69,12 +71,12 @@ defaultHost = Host { hName = "unkown" | |||
69 | --hostFromName :: (LayoutClass l1 a, LayoutClass l2 a) => HostName -> Host (l1 a) (l2 a) | 71 | --hostFromName :: (LayoutClass l1 a, LayoutClass l2 a) => HostName -> Host (l1 a) (l2 a) |
70 | hostFromName h@("vali") = defaultHost { hName = h | 72 | hostFromName h@("vali") = defaultHost { hName = h |
71 | , hManageHook = composeOne $ catMaybes [ Just manageScratchTerm | 73 | , hManageHook = composeOne $ catMaybes [ Just manageScratchTerm |
72 | , hCoWsp "web" >>= \wsp -> (className =? ".dwb-wrapped" -?> doShift wsp) | 74 | , (\wsp -> className =? ".dwb-wrapped" -?> doShift wsp) <$> hCoWsp "web" |
73 | , hCoWsp "web" >>= \wsp -> (className =? "Chromium" -?> doShift wsp) | 75 | , (\wsp -> className =? "Chromium" -?> doShift wsp) <$> hCoWsp "web" |
74 | ] | 76 | ] |
75 | , hWsp = hWsp | 77 | , hWsp = hWsp |
76 | , hCoWsp = hCoWsp | 78 | , hCoWsp = hCoWsp |
77 | , hLayoutMod = mkMod [ hCoWsp "web" >>= \wsp -> onWorkspace wsp (noBorders Full ||| tabbedLayout tabbedBottomAlways) | 79 | , hLayoutMod = mkMod [ (\wsp -> onWorkspace wsp $ noBorders Full ||| tabbedLayout tabbedBottomAlways) <$> hCoWsp "web" |
78 | ] | 80 | ] |
79 | , hKeysMod = \conf -> Map.union $ Map.fromList $ join $ map (spawnBindings conf) [ (xK_d, ["dwb", "dwb $(xclip -o)"]) | 81 | , hKeysMod = \conf -> Map.union $ Map.fromList $ join $ map (spawnBindings conf) [ (xK_d, ["dwb", "dwb $(xclip -o)"]) |
80 | ] | 82 | ] |