# Reload yabai
ctrl + alt + cmd - r : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"

# Application Shortcuts
ctrl + fn - f : open ~
ctrl + fn - t : open -na /Applications/Alacritty.app
ctrl + fn - s : open "x-apple.systempreferences:"
ctrl + fn - a : open -a "About This Mac"
ctrl + fn - c : open -na /Applications/Google\ Chrome.app
ctrl + fn - v : open -na /Applications/Visual\ Studio\ Code.app
ctrl + fn - l : open -na /Applications/Slack.app
ctrl + fn - m : open -na /Applications/Spotify.app
ctrl + fn - g : open -na /Applications/Signal.app

# Switch binding
ctrl + shift - space : yabai -m space --layout "$(yabai -m query --spaces --space | jq -r 'if .type == "bsp" then "stack" else "bsp" end')"

# Switch applications
# focus window in bsp mode
alt - h: yabai -m window --focus west
alt - j: yabai -m window --focus north
alt - k: yabai -m window --focus south
alt - l: yabai -m window --focus east

# focus in stack mode
alt - p: yabai -m window --focus stack.prev
alt - n: yabai -m window --focus stack.next
alt - f: yabai -m window --focus stack.first
alt - g: yabai -m window --focus stack.last

# fast focus desktop
ctrl - left : yabai -m space --focus prev
ctrl - right : yabai -m space --focus next
ctrl - z : yabai -m space --focus recent
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 - 7 : yabai -m space --focus 7
ctrl - 8 : yabai -m space --focus 8
ctrl - 9 : yabai -m space --focus 9
ctrl - 0 : yabai -m space --focus 10

#moving windows to spaces
ctrl + shift - 1 : yabai -m window --space  1; yabai -m space --focus 1
ctrl + shift - 2 : yabai -m window --space  2; yabai -m space --focus 2
ctrl + shift - 3 : yabai -m window --space  3; yabai -m space --focus 3
ctrl + shift - 4 : yabai -m window --space  4; yabai -m space --focus 4
ctrl + shift - 5 : yabai -m window --space  5; yabai -m space --focus 5
ctrl + shift - 6 : yabai -m window --space  6; yabai -m space --focus 6
ctrl + shift - 7 : yabai -m window --space  7; yabai -m space --focus 7
ctrl + shift - 8 : yabai -m window --space  8; yabai -m space --focus 8
ctrl + shift - 9 : yabai -m window --space  9; yabai -m space --focus 9
ctrl + shift - 0 : yabai -m window --space 10; yabai -m space --focus 10
