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: tabbed layout support #583

Closed
zypangpang opened this issue Jun 18, 2020 · 4 comments
Closed

Feature request: tabbed layout support #583

zypangpang opened this issue Jun 18, 2020 · 4 comments

Comments

@zypangpang
Copy link

I am a heavy i3 user on Linux and i3 has the tabbed layout, i.e. all windows are maximized and you can cycle through these maximized windows with a shortcut. To my best knowledge, I did not find similar layout or function in yabai.
So any plan to support it if it has no such function, otherwise can anyone tell me how to use it?
Thanks in advance.

@dominiklohmann
Copy link
Collaborator

Duplicate of #203
Duplicate of #304

@ghost
Copy link

ghost commented Jun 21, 2020

This is not quite all the way there, but a way to get something similar to your desired layout going is to fullscreen all the windows you want in one desktop
alt - f : yabai -m window --toggle zoom-fullscreen

and then cycle through them using this bit

# cycle through windows
shift + ctrl + alt + cmd - 0x29 : yabai -m query --spaces \
  | jq -re ".[] | select(.visible == 1).index" \
  | xargs -I{} yabai -m query --windows --space {} \
  | jq -sre "add | sort_by(.display, .frame.x, .frame.y, .id) | reverse | nth(index(map(select(.focused == 1))) - 1).id" \
  | xargs -I{} yabai -m window --focus {}

I have it attached to my ; for ease-of-use and I should say that extraordinarily-useful bit of code was writtien by @dominiklohmann to whom I am eternally grateful.

@zypangpang
Copy link
Author

Thanks @yangnom. The workaround I use now is that first float all windows and then use HyperSwitch to cycle through. Floating is a little better than zoom-fullscreen because the window layout with zoom-fullscreen is reset whenever you open a new window.

@koekeishiya
Copy link
Owner

Closing as duplicate of #203

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

3 participants