[xmonad] Alt+Tab on a per workspace basis.
Brandon Allbery
allbery.b at gmail.com
Fri Dec 4 04:09:00 UTC 2015
On Thu, Dec 3, 2015 at 8:37 AM, "Peter Krauß" <cocii at gmx.de> wrote:
> 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
> also switches workspaces. I would need something like:
>
> 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
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20151203/01e15864/attachment.html>
More information about the xmonad
mailing list