-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
- Loading branch information
1 parent
329631d
commit 36569b6
Showing
1 changed file
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,51 @@ | ||
yabai -m config layout bsp | ||
#!/usr/bin/env bash | ||
|
||
# Override default layout for space 2 only | ||
function set_opt(){ | ||
yabai -m config "$@" | ||
} | ||
|
||
yabai -m config top_padding 20 | ||
yabai -m config bottom_padding 20 | ||
yabai -m config left_padding 20 | ||
yabai -m config right_padding 20 | ||
yabai -m config window_gap 20 | ||
sudo yabai --load-sa .*/ | ||
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" .*/ | ||
|
||
yabai -m config window_border on | ||
yabai -m config window_border_width 6 | ||
yabai -m config active_window_border_color 0xffff0000 | ||
# GLOBAL SETTINGS | ||
set_opt active_window_border_color 0xffff0000 | ||
set_opt active_window_opacity 1.0 | ||
|
||
set_opt auto_balance off | ||
|
||
set_opt focus_follows_mouse off | ||
|
||
set_opt insert_feedback_color 0xffd75f5f | ||
|
||
set_opt mouse_action1 move | ||
set_opt mouse_action2 resize | ||
set_opt mouse_drop_action swap | ||
set_opt mouse_follows_focus off | ||
set_opt mouse_modifier fn | ||
|
||
set_opt normal_window_border_color 0xff555555 | ||
set_opt normal_window_opacity 0.90 | ||
|
||
set_opt split_ratio 0.50 | ||
|
||
set_opt window_border on | ||
set_opt window_border_width 6 | ||
set_opt window_border_width 6 | ||
set_opt window_opacity off | ||
set_opt window_opacity_duration 0.0 | ||
set_opt window_origin_display default | ||
set_opt window_placement second_child | ||
set_opt window_shadow on | ||
set_opt window_topmost off | ||
|
||
set_opt layout bsp | ||
|
||
# general space settings | ||
set_opt layout bsp | ||
set_opt top_padding 12 | ||
set_opt bottom_padding 12 | ||
set_opt left_padding 12 | ||
set_opt right_padding 12 | ||
set_opt window_gap 06 | ||
|
||
echo "--- yabai configuration loaded.." |