With i3 I bind keys to specific things (including workspaces) so I can switch instantly.
With i3 I bind keys to specific things (including workspaces) so I can switch instantly.
What I found lacking in the default i3 possibilities, was going to the previously used window on the same workspace.
My daily driver is a 32" 4k monitor, so many times I end up with one IDE or terminal on the left, and some documentation on the right, both halves visible at the same time.
However, I hate using tabs in the browser, so thanks to a hacky extension, firefox opens a new window per tab, which means that i3 manages firefox' tabs as regular windows.
So, if you have a bunch of windows open, want to see the one in the middle of the bunch, but need to switch between that and the "work" window, there's no easy way to do that from the keyboard.
From the IDE, going right works as expected. But from the browser, going left "changes tabs". You only reach the IDE after you've been through all the other tabs.
1. do an extra action
2. remember whether you actually have a parent or not, since it's context dependent. Doing this while the single-window IDE is selected, it'll do nothing (the parent is "everybody", so there's nothing to the right).
and then trigger it with eg.:
``` bindsym $mod+x exec --no-startup-id "xargs -n1 kill -USR2 < /tmp/focus_last.pid" ```
By the way, there are a few subtleties which your script doesn't handle which bit me ;) Off the top of my head, some full-screen windows (mpv IIRC) behave a bit differently and would be missed.
Can you provide a bit more information about your setup?
I'm using sway and I removed the tabs from Firefox to handle them as individual windows.
I combine this with some custom chrome to completely hide the tab bar area at all times.
Afterwards, I manage my firefox windows with i3 as I would any other window. They usually end up in tiled mode.
https://addons.mozilla.org/de/firefox/addon/adsum-notabs/
For the custom chrome, I'm using in userChrome.css:
#TabsToolbar { visibility: collapse !important; }At some point since Windows 7 I played with it and found it to be no longer consistent. I could somewhat correct for this by using alt+esc to move a window to the back of the stack and then reverse to it with ctrl+shift+tab.
My work habits generally involve switching back and forth between two applications. Sometimes three.
Cmd+Tab switching works well for that. More convenient than, e.g., Cmd+3 then Cmd+7 etc.
I also appreciate Firefox's Ctrl+Tab for tab switching, which works the same way.