From ruben.astud at gmail.com Thu Aug 12 14:52:16 2021 From: ruben.astud at gmail.com (Ruben Astudillo) Date: Thu, 12 Aug 2021 10:52:16 -0400 Subject: [xmonad] Best "go to previous window" solution Message-ID: <38da2bec-95f9-1abf-825b-bec7e6519440@gmail.com> Hello list. To move to the previous selected window, I use the module `XMonad.Actions.GroupNavigation` and its `historyHook` with a key set up to `nextMatch History (pure True)`. With this I can alternate to the previously selected window. But it is not a repeatable process, because once I jump to the previous window, the window from which I jumped becomes the "previous window". That means I can only alternate between two windows with this setup. What I would like is to have the equivalent of `C-o` on vim or `C-u C-` on emacs but without it being limited to two movements. What modules on contrib should I be using? -- -- Rubén. pgp: 4EE9 28F7 932E F4AD From tomi at nomi.cz Thu Aug 12 15:11:32 2021 From: tomi at nomi.cz (Tomas Janousek) Date: Thu, 12 Aug 2021 16:11:32 +0100 Subject: [xmonad] Best "go to previous window" solution In-Reply-To: <38da2bec-95f9-1abf-825b-bec7e6519440@gmail.com> References: <38da2bec-95f9-1abf-825b-bec7e6519440@gmail.com> Message-ID: Hi, On Thu, Aug 12, 2021 at 10:52:16AM -0400, Ruben Astudillo wrote: >To move to the previous selected window, I use the module >`XMonad.Actions.GroupNavigation` and its `historyHook` with a key set up to >`nextMatch History (pure True)`. With this I can alternate to the previously >selected window. But it is not a repeatable process, because once I jump to >the previous window, the window from which I jumped becomes the "previous >window". That means I can only alternate between two windows with this setup. >… Last time I looked for this, nothing in xmonad-contrib seemed good enough (although I surely missed something) and I found https://github.com/sagb/alttab, which works well enough with xmonad and even shows icons to make it visually easier to use. :-) -- Tomáš "liskin" ("Pivník") Janoušek, https://work.lisk.in/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From allbery.b at gmail.com Thu Aug 12 15:16:01 2021 From: allbery.b at gmail.com (Brandon Allbery) Date: Thu, 12 Aug 2021 11:16:01 -0400 Subject: [xmonad] Best "go to previous window" solution In-Reply-To: <38da2bec-95f9-1abf-825b-bec7e6519440@gmail.com> References: <38da2bec-95f9-1abf-825b-bec7e6519440@gmail.com> Message-ID: Possibly XMonad.Actions.CycleWindows. This said, there's a standard set of bindings to mod-j and mod-k (alternately mod-tab, mod-shift-tab) that might do what you want. On Thu, Aug 12, 2021 at 10:53 AM Ruben Astudillo wrote: > Hello list. > > To move to the previous selected window, I use the module > `XMonad.Actions.GroupNavigation` and its `historyHook` with a key set up to > `nextMatch History (pure True)`. With this I can alternate to the > previously > selected window. But it is not a repeatable process, because once I jump to > the previous window, the window from which I jumped becomes the "previous > window". That means I can only alternate between two windows with this > setup. > > What I would like is to have the equivalent of `C-o` on vim or `C-u > C-` on emacs but without it being limited to two movements. What > modules on contrib should I be using? > > -- > -- Rubén. pgp: 4EE9 28F7 932E F4AD > _______________________________________________ > xmonad mailing list > xmonad at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad > -- brandon s allbery kf8nh allbery.b at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: