Is there any module that supports this functionality? If not - does anyone know how to implement this?


Found a solution posted here: https://www.reddit.com/r/xmonad/comments/1oi2xs/how_to_jump_back_from_master_window/

import XMonad.Actions.GroupNavigation
main = xmonad $ defaultConfig { logHook = historyHook }


, ((modm, xK_b), nextMatch History (return True))

A small limitation is, it focuses the previous window (that may not be in the current workspace).

| improve this answer | |

An excellent module, XMonad.Hooks.RefocusLast, has since been added to xmonad-contrib, which does a great job of tracking the most recently focused window on a per workspace basis.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.