1
0
Fork 0

yabai: update config

This commit is contained in:
Daniel Kempkens 2024-06-09 19:36:42 +02:00
parent 53a3fdac42
commit 6ba33c0f42
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -10,6 +10,7 @@ let
unmanaged-apps = [
"Dash"
"Dato"
"Finder"
"IINA"
"LaunchBar"
"Mona"
@ -47,9 +48,15 @@ in
window_placement = "second_child";
split_type = "auto";
focus_follows_mouse = "off";
};
extraConfig = (lib.strings.concatMapStrings (app: "yabai -m rule --add app='^${app}$' manage=off\n") unmanaged-apps) + ''
extraConfig = (lib.strings.concatMapStrings (app: "${yabai-bin} -m rule --add app='^${app}$' manage=off\n") unmanaged-apps) + ''
# App-specific rules
${yabai-bin} -m rule --add app='^Finder$' title='daniel' grid=2:2:1:1:1:1
${yabai-bin} -m rule --add app='^Mona$' title='Daniel' grid=1:4:0:0:1:1
# Auto-float certain windows
${yabai-bin} -m signal --add event=window_created action='
${yabai-bin} -m query --windows --window $YABAI_WINDOW_ID | ${jq-bin} -er ".\"can-resize\" or .\"is-floating\"" || \
@ -59,6 +66,9 @@ in
# Smart Gaps
${yabai-bin} -m signal --add event=window_created action='${script-smart-padding}'
${yabai-bin} -m signal --add event=window_destroyed action='${script-smart-padding}'
# Apply rules on startup/for existing windows
${yabai-bin} -m rule --apply
'';
};