aboutsummaryrefslogtreecommitdiff
path: root/.config/yabai/yabairc
diff options
context:
space:
mode:
authorNicholas Tay <nkt@outlook.kr>2021-04-10 17:06:11 +1000
committerNicholas Tay <nkt@outlook.kr>2021-04-10 17:06:11 +1000
commita0d7689b1e3c7fd74fab9df1ae74e2a6de62fe9b (patch)
treef3f1afbfabc83ca286516020431ad57322d284f4 /.config/yabai/yabairc
parentc1aae3af259b6ea254d66c334f3d398c19029518 (diff)
downloaddotlite-a0d7689b1e3c7fd74fab9df1ae74e2a6de62fe9b.tar.gz
dotlite-a0d7689b1e3c7fd74fab9df1ae74e2a6de62fe9b.tar.bz2
dotlite-a0d7689b1e3c7fd74fab9df1ae74e2a6de62fe9b.zip
Add basic osx yabai+skhd conf
Diffstat (limited to '.config/yabai/yabairc')
-rwxr-xr-x.config/yabai/yabairc41
1 files changed, 41 insertions, 0 deletions
diff --git a/.config/yabai/yabairc b/.config/yabai/yabairc
new file mode 100755
index 0000000..ed07971
--- /dev/null
+++ b/.config/yabai/yabairc
@@ -0,0 +1,41 @@
+#!/usr/bin/env sh
+
+yabai -m config mouse_follows_focus on
+yabai -m config focus_follows_mouse autofocus
+
+# Spawn right/bottom
+yabai -m config window_placement second_child
+
+yabai -m config window_opacity off
+# Unfocused 90% opacity
+yabai -m config active_window_opacity 1.0
+yabai -m config normal_window_opacity 0.9
+
+# Borders
+yabai -m config window_border on
+yabai -m config window_border_width 3
+yabai -m config active_window_border_color 0xff775759
+yabai -m config normal_window_border_color 0xff555555
+yabai -m config insert_feedback_color 0xffd75f5f
+
+# Mouse stuff
+yabai -m config mouse_modifier alt
+yabai -m config mouse_action1 move
+yabai -m config mouse_action2 resize
+yabai -m config mouse_drop_action swap
+
+# Layout
+yabai -m config layout bsp
+yabai -m config top_padding 10
+yabai -m config bottom_padding 10
+yabai -m config left_padding 10
+yabai -m config right_padding 10
+yabai -m config window_gap 10
+
+# App rules
+yabai -m rule --add app="^System Preferences$" manage=off
+yabai -m rule --add app="^Calculator$" manage=off
+yabai -m rule --add app="^MacPass$" manage=off
+yabai -m rule --add app="^Firefox$" title="^Opening .*$" manage=off
+
+echo "yabai configuration loaded.."