From 38a92562d05fdb3cc002eccbb0e0afd9aa5b1df3 Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Sat, 17 Jan 2009 05:10:26 +0100 Subject: Use spawnOn in my config Ignore-this: 3f92e4bbe4f2874b86a6c7ad66a31bbb darcs-hash:20090117041026-25a6b-4f3770a8d85cedcc57c54014418072ba49f7e587.gz --- XMonad/Config/Sjanssen.hs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'XMonad/Config') 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) -- cgit v1.2.3