-
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.
- Loading branch information
1 parent
ee8670c
commit ff9ef21
Showing
6 changed files
with
172 additions
and
71 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
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,36 +1,49 @@ | ||
#!/usr/bin/env sh | ||
|
||
sudo yabai --load-sa | ||
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" | ||
|
||
# global settings | ||
yabai -m config mouse_follows_focus off | ||
yabai -m config focus_follows_mouse off | ||
yabai -m config window_placement second_child | ||
yabai -m config window_topmost off | ||
yabai -m config window_shadow off | ||
yabai -m config window_opacity off | ||
yabai -m config window_opacity_duration 0.0 | ||
yabai -m config active_window_opacity 1.0 | ||
yabai -m config normal_window_opacity 0.90 | ||
yabai -m config window_border on | ||
yabai -m config window_border_width 6 | ||
yabai -m config active_window_border_color 0xddcb4b16 | ||
yabai -m config normal_window_border_color 0x00cb4b16 | ||
yabai -m config insert_feedback_color 0xff268bd2 | ||
yabai -m config split_ratio 0.50 | ||
yabai -m config auto_balance off | ||
yabai -m config mouse_modifier fn | ||
yabai -m config mouse_action1 move | ||
yabai -m config mouse_action2 resize | ||
yabai -m config mouse_drop_action swap | ||
|
||
# general space settings | ||
yabai -m config layout bsp | ||
yabai -m config top_padding 16 | ||
yabai -m config bottom_padding 16 | ||
yabai -m config left_padding 16 | ||
yabai -m config right_padding 16 | ||
yabai -m config window_gap 12 | ||
|
||
echo "yabai configuration loaded.." | ||
#sudo yabai --load-sa | ||
#yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" | ||
|
||
MAIN_DISPLAY=$(system_profiler SPDisplaysDataType | grep -B 3 'Main Display:' | awk '/Display Type/ {print $3}') | ||
|
||
if [[ $MAIN_DISPLAY = "Built-in" ]]; then | ||
yabai -m config external_bar main:0:0 | ||
else | ||
yabai -m config external_bar main:36:0 | ||
fi | ||
|
||
config=( | ||
# global settings | ||
mouse_follows_focus on | ||
focus_follows_mouse autoraise | ||
window_placement second_child | ||
window_shadow off | ||
window_opacity off | ||
window_opacity_duration 0.0 | ||
active_window_opacity 1.0 | ||
normal_window_opacity 0.90 | ||
insert_feedback_color 0xff268bd2 | ||
split_ratio 0.50 | ||
auto_balance off | ||
mouse_modifier alt | ||
mouse_action1 move | ||
mouse_action2 resize | ||
mouse_drop_action swap | ||
|
||
# general space settings | ||
layout bsp | ||
top_padding 16 | ||
bottom_padding 16 | ||
left_padding 16 | ||
right_padding 16 | ||
window_gap 12 | ||
|
||
# bar integration | ||
external_bar all:36:0 | ||
) | ||
yabai -m config "${config[@]}" | ||
|
||
echo "yabai configuration loaded..." | ||
|
||
borders active_color=0xddcb4b16 inactive_color=0x00cb4b16 width=6.0 & | ||
|
||
# |
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,15 +1,23 @@ | ||
[ | ||
{ | ||
"context": "EmptyPane", | ||
"bindings": { | ||
"space b": "workspace::ToggleRightDock" | ||
} | ||
}, | ||
{ | ||
"context": "Editor && vim_mode == normal && !VimWaiting && !menu", | ||
"bindings": { | ||
"space b": "workspace::ToggleLeftDock" | ||
"space b": "workspace::ToggleRightDock", | ||
"space f": "editor::Format" | ||
} | ||
}, | ||
{ | ||
"context": "ProjectPanel && not_editing", | ||
"bindings": { | ||
"space b": "workspace::ToggleLeftDock", | ||
"ctrl-w l": "project_panel::ToggleFocus" | ||
"space b": "workspace::ToggleRightDock", | ||
"ctrl-w l": "project_panel::ToggleFocus", | ||
"ctrl-w r": "project_panel::ToggleFocus" | ||
} | ||
} | ||
] |
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
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
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