This repository has been archived by the owner on Jul 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
7 changed files
with
140 additions
and
41 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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
SKHD_DIR = ~/.config/skhd | ||
SELF_SKHD_DIR = $(MODULE_DIR)/skhd | ||
|
||
SKHD_CLEAN_TARGETS += skhd-clean | ||
SKHD_TARGETS += skhd-install | ||
|
||
.PHONY: skhd-install | ||
skhd-install: $(SKHD_DIR) | ||
|
||
$(SKHD_DIR): | ||
mkdir -p $(SKHD_DIR) | ||
ln -sf $(SELF_SKHD_DIR)/skhdrc $(SKHD_DIR)/skhdrc | ||
|
||
.PHONY: skhd-clean | ||
skhd-clean: | ||
rm -r $(SKHD_DIR) |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# focus window | ||
shift + alt - x : yabai -m window --focus recent || yabai -m display --focus recent | ||
alt - h : yabai -m window --focus west || yabai -m display --focus west | ||
alt - j : yabai -m window --focus south || yabai -m display --focus south | ||
alt - k : yabai -m window --focus north || yabai -m display --focus north | ||
alt - l : yabai -m window --focus east || yabai -m display --focus east | ||
alt - z : yabai -m window --focus stack.prev | ||
alt - c : yabai -m window --focus stack.next | ||
|
||
# workspace focus | ||
shift + alt - 1 : yabai -m space --focus 1 | ||
shift + alt - 2 : yabai -m space --focus 2 | ||
shift + alt - 3 : yabai -m space --focus 3 | ||
shift + alt - 4 : yabai -m space --focus 4 | ||
shift + alt - 5 : yabai -m space --focus 5 | ||
shift + alt - 6 : yabai -m space --focus 6 | ||
shift + alt - 7 : yabai -m space --focus 7 | ||
shift + alt - 8 : yabai -m space --focus 8 | ||
shift + alt - 0 : yabai -m space --focus prev | ||
shift + alt - 9 : yabai -m space --focus next | ||
|
||
# move window | ||
shift + alt - h : yabai -m window --warp west | ||
shift + alt - j : yabai -m window --warp south | ||
shift + alt - k : yabai -m window --warp north | ||
shift + alt - l : yabai -m window --warp east | ||
|
||
# toggle window native fullscreen | ||
shift + alt - f : yabai -m window --toggle native-fullscreen | ||
|
||
# restart yabai | ||
ctrl + shift + alt - r : launchctl kickstart -k "gui/${UID}/com.koekeishiya.yabai" |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
YABAI_DIR = ~/.config/yabai | ||
SELF_YABAI_DIR = $(MODULE_DIR)/yabai | ||
|
||
YABAI_CLEAN_TARGETS += yabai-clean | ||
YABAI_TARGETS += yabai-install | ||
|
||
.PHONY: yabai-install | ||
yabai-install: $(YABAI_DIR) | ||
|
||
$(YABAI_DIR): | ||
mkdir -p $(YABAI_DIR) | ||
ln -sf $(SELF_YABAI_DIR)/yabairc $(YABAI_DIR)/yabairc | ||
|
||
.PHONY: yabai-clean | ||
yabai-clean: | ||
rm -r $(YABAI_DIR) |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env sh | ||
|
||
# | ||
# for this to work you must configure sudo such that | ||
# it will be able to run the command without password | ||
# | ||
# see this wiki page for information: | ||
# - https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition | ||
# | ||
# yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" | ||
# sudo yabai --load-sa | ||
# | ||
|
||
# global settings | ||
yabai -m config external_bar off:40:0 | ||
yabai -m config menubar_opacity 1.0 | ||
yabai -m config mouse_follows_focus off | ||
yabai -m config focus_follows_mouse off | ||
yabai -m config display_arrangement_order default | ||
yabai -m config window_origin_display default | ||
yabai -m config window_placement second_child | ||
yabai -m config window_zoom_persist on | ||
yabai -m config window_shadow on | ||
yabai -m config window_animation_duration 0.0 | ||
yabai -m config window_animation_easing ease_out_circ | ||
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_opacity off | ||
yabai -m config insert_feedback_color 0xffd75f5f | ||
yabai -m config split_ratio 0.50 | ||
yabai -m config split_type auto | ||
yabai -m config auto_balance off | ||
yabai -m config top_padding 0 | ||
yabai -m config bottom_padding 0 | ||
yabai -m config left_padding 0 | ||
yabai -m config right_padding 0 | ||
yabai -m config layout bsp | ||
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 | ||
|
||
echo "yabai configuration loaded.." |