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

Update README.md #2340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,27 @@ Thanks to [@fools-mate][gh-fools-mate] for creating a logo and banner for this p

Thanks to [@dominiklohmann][gh-dominiklohmann] for contributing great documentation, support, and more, for free.

## Cheatsheet

Here's a quick guide to make yabai behave more like i3... :)

| Action | i3wm (bindsym $mod+...) | Yabai | Yabai's caveat |
|--------------------------------------|------------------------------------|--------------------------------|-------------------------------------------------------------|
| Switch to workspace <ID> | workspace 3 | yabai -m space --focus 3 | need to manually add spaces (desktops) at first. I added 10 spaces, as standard i3. |
| Switch to last workspace | workspace back_and_forth | yabai -m space --focus recent | |
| Move container to workspace <ID> | move container to workspace 3 | yabai -m window --space 3 | |
| Move container to last workspace | move container to workspace back_and_forth | yabai -m window --space recent | |
| Stack | layout stacking | | not supported |
| Tab | layout tabbed | | not supported |
| Toggle split | layout toggle split | yabai -m window --toggle split | |
| Prepare to split vertical | split v | yabai -m window --insert east | |
| Prepare to split horizontal | split h | yabai -m window --insert south | |
| Fullscreen | fullscreen | yabai -m window --toggle zoom-fullscreen | |
| Float and center | floating toggle | yabai -m window --toggle float; yabai -m window --grid 4:4:1:1:2:2 | |
| Close | kill | yabai -m window --close | |

You can map these to whatever key bindings you like using skhd

## Disclaimer

Use at your own discretion.
Expand Down