summaryrefslogtreecommitdiffstats
path: root/xmonad
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-11-10 15:56:02 +0100
committerStefan Ritter <xeno@thehappy.de>2009-11-10 15:56:02 +0100
commit60e458c51be6efa355404084bad8a71bbcdcdf5c (patch)
treed0b95c65cde6168abc46d5135e2f407e2ba6e126 /xmonad
parent95c74a0047fc62415209226143bb36a340a46b5f (diff)
Fixed indentions
Diffstat (limited to 'xmonad')
-rw-r--r--xmonad/xmonad-0.8.hs83
1 files changed, 42 insertions, 41 deletions
diff --git a/xmonad/xmonad-0.8.hs b/xmonad/xmonad-0.8.hs
index 01dab74..a040261 100644
--- a/xmonad/xmonad-0.8.hs
+++ b/xmonad/xmonad-0.8.hs
@@ -10,41 +10,42 @@ import qualified XMonad.StackSet as W
import qualified Data.Map as M
myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
- [ ((modMask, xK_Return), spawn $ XMonad.terminal conf)
- , ((modMask, xK_q ), spawn "exe=`dmenu_path | dmenu` && eval \"exec $exe\"")
- , ((modMask, xK_l ), spawn "slock")
- , ((modMask .|. shiftMask, xK_c ), kill)
- , ((modMask, xK_space ), sendMessage NextLayout)
- , ((modMask .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf)
- , ((modMask, xK_r ), windows W.focusDown)
- , ((modMask, xK_g ), windows W.focusUp )
- , ((modMask, xK_m ), windows W.focusMaster )
- , ((modMask .|. shiftMask, xK_r ), windows W.swapDown )
- , ((modMask .|. shiftMask, xK_g ), windows W.swapUp )
- , ((modMask, xK_h ), prevWS)
- , ((modMask, xK_f ), nextWS)
- , ((modMask .|. shiftMask, xK_q ), io (exitWith ExitSuccess))
- , ((modMask , xK_n ), sendMessage (IncMasterN 1))
- , ((modMask , xK_t ), sendMessage (IncMasterN (-1)))
- ]
- ++
+ [ ((modMask, xK_Return), spawn $ XMonad.terminal conf)
+ , ((modMask, xK_q ), spawn "exe=`dmenu_path | dmenu` && eval \"exec $exe\"")
+ , ((modMask, xK_l ), spawn "slock")
+ , ((modMask .|. shiftMask, xK_c ), kill)
+ , ((modMask, xK_space ), sendMessage NextLayout)
+ , ((modMask .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf)
+ , ((modMask, xK_r ), windows W.focusDown)
+ , ((modMask, xK_g ), windows W.focusUp )
+ , ((modMask, xK_m ), windows W.focusMaster )
+ , ((modMask .|. shiftMask, xK_r ), windows W.swapDown )
+ , ((modMask .|. shiftMask, xK_g ), windows W.swapUp )
+ , ((modMask, xK_h ), prevWS)
+ , ((modMask, xK_f ), nextWS)
+ , ((modMask .|. shiftMask, xK_q ), io (exitWith ExitSuccess))
+ , ((modMask , xK_n ), sendMessage (IncMasterN 1))
+ , ((modMask , xK_t ), sendMessage (IncMasterN (-1)))
+ ]
+ ++
[((m .|. modMask, k), windows $ f i)
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
myMouseBindings (XConfig {XMonad.modMask = modMask}) = M.fromList $
- [ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w))
- , ((modMask, button2), (\w -> focus w >> windows W.swapMaster))
- , ((modMask, button3), (\w -> focus w >> mouseResizeWindow w))
- ]
+ [ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w))
+ , ((modMask, button2), (\w -> focus w >> windows W.swapMaster))
+ , ((modMask, button3), (\w -> focus w >> mouseResizeWindow w))
+ ]
myManageHook = composeAll
- [ className =? "MPlayer" --> doFloat
- , className =? "xine" --> doFloat
- , className =? "vlc" --> doFloat
- , className =? "psi" --> doFloat
- , className =? "Gimp" --> doFloat ]
+ [ className =? "MPlayer" --> doFloat
+ , className =? "xine" --> doFloat
+ , className =? "vlc" --> doFloat
+ , className =? "psi" --> doFloat
+ , className =? "Gimp" --> doFloat
+ ]
myFocusFollowsMouse :: Bool
myFocusFollowsMouse = True
@@ -54,18 +55,18 @@ myConfig = defaultConfig
main = do
xmonad $ defaultConfig {
manageHook = manageDocks <+> manageHook defaultConfig,
- terminal = "x-terminal-emulator",
- focusFollowsMouse = myFocusFollowsMouse,
- borderWidth = 1,
- modMask = mod1Mask,
- numlockMask = mod2Mask,
- workspaces = ["1","2","3","4","5","6","7","8","9"],
- normalBorderColor = "#dddddd",
- focusedBorderColor = "#ff0000",
- keys = myKeys,
- mouseBindings = myMouseBindings,
- logHook = ewmhDesktopsLogHook,
- --logHook = dynamicLog,
+ terminal = "x-terminal-emulator",
+ focusFollowsMouse = myFocusFollowsMouse,
+ borderWidth = 1,
+ modMask = mod1Mask,
+ numlockMask = mod2Mask,
+ workspaces = ["0","1","2","3","4","5","6","7","8","9"],
+ normalBorderColor = "#dddddd",
+ focusedBorderColor = "#ff0000",
+ keys = myKeys,
+ mouseBindings = myMouseBindings,
+ logHook = ewmhDesktopsLogHook,
+ --logHook = dynamicLog,
layoutHook = avoidStruts $ layoutHook defaultConfig,
- startupHook = return()
- }
+ startupHook = return()
+ }