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
相关推荐
fukai77221 小时前
PowerPhotos:拯救你的Mac照片库,告别苹果原生应用的局限
macos
哈哈哈哈哈哈哈哈哈...........3 小时前
在 macOS 上安装和配置 Aria2 的详细步骤
macos
ghostwritten9 小时前
如何在 Mac 上彻底卸载 DMG 软件
macos
Tee xm17 小时前
清晰易懂的 Flutter 卸载和清理教程
linux·windows·flutter·macos
wxl78122719 小时前
基于neo4j存储知识树-mac
macos·neo4j
Alger_Hamlet21 小时前
Typora Markdown编辑器 for Mac
macos·编辑器
吨吨不打野1 天前
macOS设置定时播放眼保健操
macos
博观而约取3 天前
Linux 和 macOS 终端中常见的快捷键操作
linux·运维·macos
Alger_Hamlet3 天前
Photoshop 2025 Mac中文 Ps图像编辑软件
macos·ui·photoshop
资源大全免费分享3 天前
MacOS 的 AI Agent 新星,本地沙盒驱动,解锁 macOS 操作新体验!
人工智能·macos·策略模式