sway-alttab
sway-alttab copied to clipboard
Multiple windows awareness?
I use default sway-alttab
as I have this in sway/config:
exec sway-alttab
The default behavior of sway-alttab
seems to switch workspace
if there's only one focused window in a workspace.
But sway-alttab
can't aware if there's more than one window in a workspace.
For example:
I have two workspace, one have a terminal and other has a terminal and a firefox window
I navigate to workspace that has one window (sway will automatically focus on that one window)
I press alt-tab to navigate to workspace that has two windows, assume that the current focused window is the terminal.
If I press alt-tab again, `sway-alttab` will switch workspace instead of switch between two windows.
I can make `sway-alttab` to switch windows by navigate the 2nd window (firefox window) in that two windows workspace to make `sway-alttab` to switch between two windows.
The reason for this I think sway-alttab
keep track of last focused window in current and previous workspace. This seems to handy but what if I want sway-alttab
to switch between windows immediately if there're more than one windows in a workspace?
So if we can choose between two behaviors would be ideal.
I will probably use the default one but might change to other later.
Hey @tmpm697, thanks a lot for the feature request. I agree with you that it would make sense for it to switch between windows in the same workspace as well. Unfortunately, I do not use Sway as my daily driver anymore and do not have the bandwidth to work on this right now. Another user mentioned swayr which provides more features, and might suffice for this use case.
If you are keen on extending this daemon itself, patches are more than welcome!
Haven't tried swayr
yet but from what I can tell, it seems echo a list then use menu to select window/workspace.
If that, it's not what I want, I want a dedicate window switcher only and should only for current focused workspace.
Because if we have to bring down a menu, I think the role of window switcher is disappeared as I want to just immediately loop through windows to get window I want, I barely use more than couple of windows. A menu wouldn't fit my use-case. Check more here
Tried swayr and it's pretty good, switch windows seems immediately. But pc stuck at first start (no idea if it's swayr or not) and I had to reboot the pc.
But swayr seems to have weird behavior as next-window
but also include placeholder container of nested windows, so cycle seem not that smooth.