yabai: update config
This commit is contained in:
parent
53a3fdac42
commit
6ba33c0f42
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue