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

Wrapping around for a single stack? (As opposed to wrapping around for an entire space) #734

Closed
jsphnecclia opened this issue Nov 22, 2020 · 2 comments

Comments

@jsphnecclia
Copy link

I saw @dominiklohmann 's commands here for cycling through every window in a space, including stacks, with wraparound. I'm wondering if it's possible to simply add wraparound to the default behavior of stacks. That is, cycling through a stack as you can do by default except that when you reach the end (or the beginning) it cycles to the first (or last)? (I'm not familiar with queries/jq/xargs)

@dominiklohmann
Copy link
Collaborator

Just use yabai -m window --focus stack.next || yabai -m window --focus stack.first instead for cycling stacks to do the wraparound manually.

The || is a logical or, i.e., if the first command fails the latter is executed.

@jsphnecclia
Copy link
Author

That works perfectly! Thank you

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