Hello!
I would like to mimic Window's Alt+Tab behaviour in XMonad on a
per-workspace basis: Pressing Alt+Tab should focus the window on the
current workspace, that most recently had the focus on that workspace.
I can use GroupNavigation's "nextMatch History (return True)" but then it
nextMatch History (window's workspace == current workspace)
Sadly I am not a Haskell guy, so I can not figure out how to create such a
query for. Could someone help me? Or maybe tell me if there is a more easy
solution?
sameWorkspace = do
nw <- ask -- window being matched against
liftX $ do
ws <- gets windowset
return $ maybe False (== currentTag ws) (findTag nw ws)
--
brandon s allbery kf8nh sine nomine associates
***@gmail.com ***@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net