From de6ac09ffa6988d0b59d6d10c52eccfbe40bb0e1 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 18 Dec 2010 14:50:08 +0100 Subject: [PATCH] xmonad.hs: meta-f switches to last active workspace. --- xmonad.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xmonad.hs b/xmonad.hs index df30435..c59bc53 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -18,6 +18,8 @@ import XMonad.Hooks.ManageHelpers import XMonad.Util.EZConfig -- Necessary for setWMName. import XMonad.Hooks.SetWMName +-- Necessary for toggleWS. +import XMonad.Actions.CycleWS -- Prevent new windows from spawning in the master pane. Taken from @@ -84,6 +86,9 @@ myKeys = [ -- Switch to additional layout (vertical tiled) defined by -- toggleLayouts above. ((mod4Mask, xK_v), sendMessage ToggleLayout) + -- Switch to last active workspace, thanks to moljac024 in #xmonad on + -- Freenode (2010-12-18 14:45). + , ((mod4Mask, xK_f), toggleWS) ] ++ -- When using multiple screens, switching to another workspace causes -- 2.45.2