Created
June 15, 2023 01:50
-
-
Save auxesis/ada3e1d14704c335a9a050fc1543d1cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# default layout (can be bsp, stack or float) | |
yabai -m config layout bsp | |
# wild west on space 1 | |
yabai -m config --space 5 layout float | |
# New window spawns to the right if vertical split, or bottom if horizontal split | |
yabai -m config window_placement second_child | |
# padding set to 1px | |
yabai -m config top_padding 1 | |
yabai -m config bottom_padding 1 | |
yabai -m config left_padding 1 | |
yabai -m config right_padding 1 | |
yabai -m config window_gap 1 | |
# center mouse on window with focus | |
yabai -m config mouse_follows_focus on | |
# modifier for clicking and dragging with mouse | |
yabai -m config mouse_modifier alt | |
# set modifier + left-click drag to move window | |
yabai -m config mouse_action1 move | |
# set modifier + right-click drag to resize window | |
yabai -m config mouse_action2 resize | |
# when window is dropped in center of another window, swap them (on edges it will split it) | |
yabai -m mouse_drop_action swap | |
# disable some apps | |
yabai -m rule --add app="^System Settings$" manage=off | |
yabai -m rule --add app="^Calculator$" manage=off | |
yabai -m rule --add app="^Karabiner-Elements$" manage=off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change window focus within space | |
alt - j : yabai -m window --focus south | |
alt - k : yabai -m window --focus north | |
alt - h : yabai -m window --focus west | |
alt - l : yabai -m window --focus east | |
# rotate layout clockwise | |
shift + alt - r : yabai -m space --rotate 270 | |
# flip along y-axis | |
shift + alt - y : yabai -m space --mirror y-axis | |
# flip along x-axis | |
shift + alt - x : yabai -m space --mirror x-axis | |
# toggle window float | |
shift + alt - t : yabai -m window --toggle float --grid 4:4:1:1:2:2 | |
# maximize a window | |
shift + alt - m : yabai -m window --toggle zoom-fullscreen | |
# balance out tree of windows (resize to occupy same area) | |
shift + alt - e : yabai -m space --balance | |
# swap windows | |
shift + alt - j : yabai -m window --swap south | |
shift + alt - k : yabai -m window --swap north | |
shift + alt - h : yabai -m window --swap west | |
shift + alt - l : yabai -m window --swap east | |
# move window to prev and next space | |
shift + alt - p : yabai -m window --space prev; | |
shift + alt - n : yabai -m window --space next; | |
# move window to space # | |
shift + alt - 1 : yabai -m window --space 1; | |
shift + alt - 2 : yabai -m window --space 2; | |
shift + alt - 3 : yabai -m window --space 3; | |
shift + alt - 4 : yabai -m window --space 4; | |
shift + alt - 5 : yabai -m window --space 5; | |
shift + alt - 6 : yabai -m window --space 6; | |
shift + alt - 7 : yabai -m window --space 7; | |
# switch spaces | |
# ctrl + 1 | |
# ctrl + 2 | |
# ctrl + 3 | |
# ctrl + 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment