Skip to content

Instantly share code, notes, and snippets.

@Krever
Last active May 25, 2025 17:00
Show Gist options
  • Save Krever/74d43fa38c57c42c355df55faa0a00ee to your computer and use it in GitHub Desktop.
Save Krever/74d43fa38c57c42c355df55faa0a00ee to your computer and use it in GitHub Desktop.

Revisions

  1. Krever revised this gist Sep 9, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions _README.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    This is a simplistic setup trying to emulate at least part of i3 behaviour on MacOs using yabai.
    Key-bindings are partially replicated due to the presence of MacOs built-in bindings
    This is a simplistic setup trying to emulate at least part of i3 behaviour on MacOS using yabai.
    Key-bindings are partially replicated due to the presence of MacOS built-in bindings

    Start with installing (and understanding) following tools
    * yabai - https://github.com/koekeishiya/yabai
  2. Krever revised this gist Sep 9, 2020. 3 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
    File renamed without changes.
  3. Krever renamed this gist Sep 9, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. Krever created this gist Sep 9, 2020.
    23 changes: 23 additions & 0 deletions .skhdrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    ctrl - e : yabai -m space --layout bsp
    ctrl - s : yabai -m space --layout stack

    ctrl - down : yabai -m window --focus stack.next || yabai -m window --focus south
    ctrl - up : yabai -m window --focus stack.prev || yabai -m window --focus north
    ctrl + alt - left : yabai -m window --focus west
    ctrl + alt - right : yabai -m window --focus east

    ctrl - 1 : yabai -m space --focus 1
    ctrl - 2 : yabai -m space --focus 2
    ctrl - 3 : yabai -m space --focus 3
    ctrl - 4 : yabai -m space --focus 4
    ctrl - 5 : yabai -m space --focus 5
    ctrl - 6 : yabai -m space --focus 6

    ctrl + shift - 1 : yabai -m window --space 1
    ctrl + shift - 2 : yabai -m window --space 2
    ctrl + shift - 3 : yabai -m window --space 3
    ctrl + shift - 4 : yabai -m window --space 4
    ctrl + shift - 5 : yabai -m window --space 5
    ctrl + shift - 6 : yabai -m window --space 6

    ctrl - f : yabai -m window --toggle float
    11 changes: 11 additions & 0 deletions .yabairc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    yabai -m config debug_output on

    yabai -m config top_padding 10
    yabai -m config bottom_padding 10
    yabai -m config left_padding 10
    yabai -m config right_padding 10
    yabai -m config window_gap 10

    yabai -m config mouse_modifier ctrl
    yabai -m config mouse_action1 move
    yabai -m config mouse_action2 resize
    7 changes: 7 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    This is a simplistic setup trying to emulate at least part of i3 behaviour on MacOs using yabai.
    Key-bindings are partially replicated due to the presence of MacOs built-in bindings

    Start with installing (and understanding) following tools
    * yabai - https://github.com/koekeishiya/yabai
    * skhd - https://github.com/koekeishiya/skhd
    * stackline - https://github.com/AdamWagner/stackline