Focus between windows on current output then switch to the next
Let's say I have 2 monitors each containing 2 vertical splits. I start on the left most window.
I'd like to set Alt+Tab
to focus on the next window to the right, then since we reach the end of the left monitor, switch to the right monitor, left most window, then the next, then since we reach the end of the right monitor, circle back to the left-most window on the left monitor.
I thought about doing it in a script using the return code of focus right
, but since it circles, it always returns true.
Something like:
if (!focus right) then
focus output right
fi