Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple windows awareness? #10

Open
tmpm697 opened this issue Apr 9, 2022 · 5 comments
Open

Multiple windows awareness? #10

tmpm697 opened this issue Apr 9, 2022 · 5 comments

Comments

@tmpm697
Copy link

tmpm697 commented Apr 9, 2022

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.

@tmpm697
Copy link
Author

tmpm697 commented Apr 9, 2022

I will probably use the default one but might change to other later.

@autolyticus
Copy link
Owner

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!

@tmpm697
Copy link
Author

tmpm697 commented Apr 9, 2022

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

@tmpm697
Copy link
Author

tmpm697 commented Apr 9, 2022

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.

@tmpm697 tmpm697 closed this as completed Apr 9, 2022
@tmpm697
Copy link
Author

tmpm697 commented Apr 9, 2022

But swayr seems to have weird behavior as next-window but also include placeholder container of nested windows, so cycle seem not that smooth.

@tmpm697 tmpm697 reopened this Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants