【macOS使用·第三期】yabai,启动!

yabai安装及使用
仓库:https://github.com/Hydraallen/yabai_Usage
安装
关闭系统完整性保护:
https://github.com/koekeishiya/yabai/wiki/Disabling-System-Integrity-Protection
安装Homebrew
官网:https://brew.sh/
如果官网上不去,可以使用清华大学开源软件镜像站:https://mirrors.tuna.tsinghua.edu.cn/
安装yabai:https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)
brew install koekeishiya/formulae/yabai
启动 yabai
yabai --start-service
配置 yabairc
touch ~/.yabairc
chmod +x ~/.yabairc
官方示例:https://github.com/koekeishiya/yabai/tree/master/examples
我的配置:https://github.com/Hydraallen/yabai_Usage/blob/main/.yabairc
安装 skhd:https://github.com/koekeishiya/skhd
brew install koekeishiya/formulae/skhd
启动skhd
skhd --start-service
官方示例:https://github.com/koekeishiya/skhd/tree/master/examples
我的配置:https://github.com/Hydraallen/yabai_Usage/blob/main/.skhdrc
使用
`ctrl + alt + backspace` Close active application (快速关闭窗口)
`ctrl + alt + 0` Equalize size of windows (平铺当前界面所有窗口)
`ctrl + alt + 0x24` full screen / un-full screen(切换窗口全屏) 0x24 表示回车
`cmd + shift + h/j/k/l` window resize调整窗口大小
`shift + alt + h/j/k/l`swap window & move window in floating mode (移动窗口)
`ctrl + 1/2/3/4/5/6/7/8/9` 在 9 个桌面之间切换
`cmd + shift + 1/2/3/4/5/6/7/8/9` 将窗口发送到某个其他桌面
`cmd + shift + e/r` Rotate windows clockwise and anticlockwise (旋转窗口)
`ctrl + alt + space` float / Unfloat window (切换窗口浮动)
`cmd - return` 启动终端(kitty)
`ctrl + e` 切换为平铺模式
`ctrl + s` 切换为堆叠模式
`shift + cmd + n` 创建一个新桌面,并把当前活动的窗口发送到新桌面,并且自动跳转到新桌面. 需要 jq 支持 (`brew install jq`)
`ctrl + up/down`在 stack 模式下通过方向键切换窗口
`cmd + left/right` 在 bsp 模式下通过方向键切换窗口