macOS skhd+ yabai

yabai 配置

shell 复制代码
#!/usr/bin/env sh

sudo yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"

yabai -m config external_bar               all:40:0       \
                mouse_follows_focus        off            \
                focus_follows_mouse        off            \
                window_zoom_persist        off            \
                window_placement           second_child   \
                window_shadow              float          \
                window_opacity             on             \
                window_opacity_duration    0.2            \
                active_window_opacity      1.0            \
                normal_window_opacity      0.8            \
                window_animation_duration  0.5            \
                window_animation_easing    ease_out_quint \
                insert_feedback_color      0xff9dd274     \
                split_ratio                0.50           \
                auto_balance               off            \
                mouse_modifier             fn             \
                mouse_action1              move           \
                mouse_action2              resize         \
                mouse_drop_action          swap           \
                                                          \
                top_padding                8              \
                bottom_padding             8              \
                left_padding               8              \
                right_padding              8              \
                window_gap                 8

# Exclude problematic apps from being managed:
yabai -m rule --add app="^(微信|系统设置|Windows App|百度网盘)$" manage=off
yabai -m rule --add label="Finder" app="^Finder$" title="(Co(py|nnect)|Move|Info|Pref)" manage=off
yabai -m rule --add label="Safari" app="^Safari$" title="^(General|(Tab|Password|Website|Extension)s|AutoFill|Se(arch|curity)|Privacy|Advance)$" manage=off
yabai -m config layout bsp

echo "yabai configuration loaded.."

skhd 配置

shell 复制代码
shift + lalt - x : yabai -m space --mirror x-axis
shift + lalt - y : yabai -m space --mirror y-axis

shift + lalt - s : yabai -m window --insert east;  skhd -k "cmd - n"
shift + lalt - v : yabai -m window --insert south; skhd -k "cmd - n"

alt - h : yabai -m window --focus west
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
alt - l : yabai -m window --focus east

shift + alt - h : yabai -m window --swap west
shift + alt - j : yabai -m window --swap south
shift + alt - k : yabai -m window --swap north
shift + alt - l : yabai -m window --swap east


shift + alt - f : yabai -m window --toggle zoom-fullscreen
ctrl + alt - t : kitty /Users/hongdayu
相关推荐
Misnice1 天前
Mac查看本机ip地址
网络协议·tcp/ip·macos
岁忧2 天前
macOS配置 GO语言环境
开发语言·macos·golang
岁忧2 天前
macOS 安装 Homebrew
macos·homebrew
棒棒AIT2 天前
mac 苹果电脑 Intel 芯片(Mac X86) 安卓虚拟机 Android模拟器 的救命稻草(下载安装指南)
android·游戏·macos·安卓·mac
*愿风载尘*2 天前
SecureCRT连接密钥交换失败
linux·macos
mCell3 天前
从删库到跑路?这50个Linux命令能保你职业生涯
linux·windows·macos
fhf3 天前
2025年了你会卸载Macbook上的应用吗?
macos·shell
归辞...3 天前
「iOS」——内存五大分区
macos·ios·cocoa
穆雄雄3 天前
备份一下我的 mac mini 的环境变量配置情况
macos
秃然想通4 天前
mac电脑搭载c、c++环境(基于vs code)
macos