diff options
author | Spencer Janssen <spencerjanssen@gmail.com> | 2009-01-17 05:10:26 +0100 |
---|---|---|
committer | Spencer Janssen <spencerjanssen@gmail.com> | 2009-01-17 05:10:26 +0100 |
commit | 38a92562d05fdb3cc002eccbb0e0afd9aa5b1df3 (patch) | |
tree | 634435466d0ed73329eb69b888407f80f3a412a0 | |
parent | 90949577aeb040012a49c7687bcfec8fcfb80e34 (diff) | |
download | XMonadContrib-38a92562d05fdb3cc002eccbb0e0afd9aa5b1df3.tar.gz XMonadContrib-38a92562d05fdb3cc002eccbb0e0afd9aa5b1df3.tar.xz XMonadContrib-38a92562d05fdb3cc002eccbb0e0afd9aa5b1df3.zip |
Use spawnOn in my config
Ignore-this: 3f92e4bbe4f2874b86a6c7ad66a31bbb
darcs-hash:20090117041026-25a6b-4f3770a8d85cedcc57c54014418072ba49f7e587.gz
-rw-r--r-- | XMonad/Config/Sjanssen.hs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/XMonad/Config/Sjanssen.hs b/XMonad/Config/Sjanssen.hs index 4977e7a..4c10c49 100644 --- a/XMonad/Config/Sjanssen.hs +++ b/XMonad/Config/Sjanssen.hs @@ -12,41 +12,42 @@ import XMonad.Hooks.DynamicLog hiding (xmobar) import XMonad.Hooks.ManageDocks import XMonad.Hooks.EwmhDesktops import XMonad.Prompt -import XMonad.Prompt.Shell +import XMonad.Actions.SpawnOn import XMonad.Layout.LayoutScreens import XMonad.Layout.TwoPane import qualified Data.Map as M -sjanssenConfigXmobar = statusBar "xmobar" sjanssenPP strutkey sjanssenConfig +sjanssenConfigXmobar = statusBar "xmobar" sjanssenPP strutkey =<< sjanssenConfig where strutkey (XConfig {modMask = modm}) = (modm, xK_b) -sjanssenConfig = - defaultConfig +sjanssenConfig = do + sp <- mkSpawner + return $ defaultConfig { terminal = "urxvtc" , workspaces = ["irc", "web"] ++ map show [3 .. 9 :: Int] , mouseBindings = \(XConfig {modMask = modm}) -> M.fromList $ [ ((modm, button1), (\w -> focus w >> mouseMoveWindow w)) , ((modm, button2), (\w -> focus w >> windows W.swapMaster)) , ((modm.|. shiftMask, button1), (\w -> focus w >> mouseResizeWindow w)) ] - , keys = \c -> mykeys c `M.union` keys defaultConfig c + , keys = \c -> mykeys sp c `M.union` keys defaultConfig c , layoutHook = modifiers layouts , logHook = ewmhDesktopsLogHook , manageHook = composeAll [className =? x --> doF (W.shift w) | (x, w) <- [ ("Firefox", "web") , ("Ktorrent", "7") , ("Amarokapp", "7")]] - <+> manageHook defaultConfig <+> manageDocks + <+> manageHook defaultConfig <+> manageDocks <+> manageSpawn sp } where tiled = HintedTile 1 0.03 0.5 TopLeft layouts = (tiled Tall ||| (tiled Wide ||| Full)) ||| tabbed shrinkText myTheme modifiers = smartBorders - mykeys (XConfig {modMask = modm, workspaces = ws}) = M.fromList $ - [((modm, xK_p ), shellPrompt myPromptConfig) + mykeys sp (XConfig {modMask = modm, workspaces = ws}) = M.fromList $ + [((modm, xK_p ), shellPromptHere sp myPromptConfig) ,((modm .|. shiftMask, xK_c ), kill1) ,((modm .|. shiftMask .|. controlMask, xK_c ), kill) ,((modm .|. shiftMask, xK_0 ), windows $ \w -> foldr copy w ws) |