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

focus next/focus first doesn't work when in Fullscreen mode #665

Closed
stylerw opened this issue Sep 20, 2020 · 4 comments
Closed

focus next/focus first doesn't work when in Fullscreen mode #665

stylerw opened this issue Sep 20, 2020 · 4 comments
Labels
question Request for information or help, not an issue

Comments

@stylerw
Copy link

stylerw commented Sep 20, 2020

So, I appreciate very much the addition of stacked mode for smaller screens and to allow temporary fullscreening of apps. One minor frustration though is that stacked mode appears to not respect the existing 'Next/Previous/First window' commands. That is... /usr/local/bin/yabai window --focus next doesn't move me to the next stacked window, and /usr/local/bin/yabai -m window --focus first doesn't move to the first on the tree. I see that there is a list of focus stack.XXX commands in #337, but it confused me that the generic commands don't work in Fullscreen mode.

This is a little detail, but having a unified command would make it easier to bind a single key which would mean 'Next window' no matter your mode (e.g. I have Hyper+Space bound to /usr/local/bin/yabai window --focus next || /usr/local/bin/yabai -m window --focus first).

@koekeishiya
Copy link
Owner

This is done deliberately as the stack layout uses the bsp-stacking mechanism as its backing implementation. No plans to try and unify these yet at least.

@koekeishiya koekeishiya added the question Request for information or help, not an issue label Nov 14, 2020
@stylerw
Copy link
Author

stylerw commented Jan 20, 2021

I understand that, but perhaps there could be a command that checks the method of window arrangement, and gives you 'Focus on next' regardless? This is useful for folks who use both small and large screens.

@koekeishiya
Copy link
Owner

koekeishiya commented Jan 20, 2021

If I understand you correctly, the following should work fine:
hyper - space : (yabai -m window --focus stack.next || yabai -m window --focus next) || (yabai -m window --focus stack.first || yabai -m window --focus first)

@stylerw
Copy link
Author

stylerw commented Jan 21, 2021

Hm, although that works as expected for stacked windows and can cycle continuously through windows in stacked mode, that doesn't seem to continuously cycle through in non-stacked layouts, it cycles through most of the windows and then stops, never returning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Request for information or help, not an issue
Projects
None yet
Development

No branches or pull requests

2 participants