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

Feature Request: Infinite scroll through stack. #94

Open
abaj8494 opened this issue Dec 9, 2021 · 3 comments
Open

Feature Request: Infinite scroll through stack. #94

abaj8494 opened this issue Dec 9, 2021 · 3 comments

Comments

@abaj8494
Copy link

abaj8494 commented Dec 9, 2021

I think having the option to enable infinite scroll in the conf.lua file would be great. The behaviour of this option would mean that running yabai -m window --focus stack.next on the bottom-most window in the stack would cause stackline to loop through to the first window in the stack. Similarly, running stack.prev on the first window should bring focus to the last window.

Thank you for your work thus far @AdamWagner 😃 .

@sendhil
Copy link

sendhil commented Dec 29, 2021

@br1ttle - if it's helpful, I wrote a small Python script for myself that might help - https://github.com/sendhil/yabai-stack-navigator.

@gronk-droid
Copy link

gronk-droid commented Feb 15, 2022

@br1ttle @sendhil

I would recommend looking at skhd. All of the functionality of the stacks is provided by yabai, not stackline. If you want infinite scroll then using skhd will let you do this using the error codes that yabai will throw. Here is some skhd code demonstrating how I achieved this so that it works with the same shortcut.

# go to previous stacked set or last one if at the top
lctrl + lalt - up: yabai -m window --focus stack.prev || yabai -m window --focus stack.last

# go to next stacked window or first one if at the bottom
lctrl + lalt - down: yabai -m window --focus stack.next || yabai -m window --focus stack.first

Hope this helped (◉‿◉)

@diocletiann
Copy link

diocletiann commented Apr 16, 2022

I use:

ctrl - down : yabai -m window --focus south || yabai -m window --focus stack.next || yabai -m window --focus stack.first
ctrl - up   : yabai -m window --focus north || yabai -m window --focus stack.prev || yabai -m window --focus stack.last

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

4 participants