summaryrefslogtreecommitdiff
path: root/.xmonad/xmonad.hs
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-07-04 14:22:15 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2015-07-04 14:22:15 +0200
commit31e504757ac68ea2b3ad1303665453f7e0342806 (patch)
treed3dc9f6e546dcfa0a77d00efd2a2c54ebdc2034c /.xmonad/xmonad.hs
parent2eac61501ed8f1a5fe5d94edfafd35ba5043b898 (diff)
downloaddotfiles-31e504757ac68ea2b3ad1303665453f7e0342806.tar
dotfiles-31e504757ac68ea2b3ad1303665453f7e0342806.tar.gz
dotfiles-31e504757ac68ea2b3ad1303665453f7e0342806.tar.bz2
dotfiles-31e504757ac68ea2b3ad1303665453f7e0342806.tar.xz
dotfiles-31e504757ac68ea2b3ad1303665453f7e0342806.zip
Switched to applicative
Diffstat (limited to '.xmonad/xmonad.hs')
-rw-r--r--.xmonad/xmonad.hs8
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
48import Network.HostName 48import Network.HostName
49 49
50import Control.Applicative (<$>)
51
50type KeyMap = Map (ButtonMask, KeySym) (X ()) 52type KeyMap = Map (ButtonMask, KeySym) (X ())
51 53
52data Host l1 l2 = Host 54data 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)
70hostFromName h@("vali") = defaultHost { hName = h 72hostFromName 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 ]