Discussion:
[xmonad] Alt+Tab on a per workspace basis.
Peter Krauß
2015-12-03 13:37:21 UTC
Permalink
_______________________________________________
xmonad mailing list
***@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
Peter Jones
2015-12-03 20:31:42 UTC
Permalink
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
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?
I would bind Alt+Tab to:

windows W.focusDown
--
Peter Jones, Founder, Devalot.com
Defending the honor of good code
Brandon Allbery
2015-12-04 04:09:00 UTC
Permalink
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
Loading...