From: Simon Ruderich Date: Sat, 18 Dec 2010 13:50:08 +0000 (+0100) Subject: xmonad.hs: meta-f switches to last active workspace. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=de6ac09ffa6988d0b59d6d10c52eccfbe40bb0e1 xmonad.hs: meta-f switches to last active workspace. --- 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