From 1912c28999d7fbd34d66ab9449d502f4f59e7bad Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 17 Jun 2010 17:20:38 +0200 Subject: [PATCH] xmonad.hs: Use default workspaces. --- xmonad.hs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xmonad.hs b/xmonad.hs index e73e1c5..4ac62bd 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -71,9 +71,6 @@ myManageHook = composeOne , return True -?> doF W.focusDown ] --- My workspaces, same as default ones. Used below in myKeys. -myWorkspaces = ["1", "2", "3", "4", "5", "6", "7", "8", "9"] - myKeys = [ -- Switch to additional layout (vertical tiled) defined by -- toggleLayouts above. @@ -88,8 +85,10 @@ myKeys = [ -- -- Thanks to the Xmonad FAQ, read on 2010-06-16 13:42 -- (http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions). + -- Thanks to MrElendig in #xmonad on Freenode (2010-06-17 17:16) to use + -- the default XMonad workspaces. [((m .|. mod4Mask, k), windows $ f i) - | (i, k) <- zip myWorkspaces [xK_1 .. xK_9] + | (i, k) <- zip (XMonad.workspaces defaultConfig) [xK_1 .. xK_9] , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]] main = xmonad $ defaultConfig -- 2.44.1