[yabai] added

This commit is contained in:
Piotr Domański 2024-08-22 14:11:39 +02:00
parent b4c22da9b3
commit 1905aa0d5d
2 changed files with 45 additions and 0 deletions

17
.skhdrc Normal file
View file

@ -0,0 +1,17 @@
# balance space
cmd - 0x2A : yabai -m space --balance
# resize horizontally
cmd - 0x2B : yabai -m window --resize left:-20:0 || yabai -m window --resize right:-20:0
cmd - 0x2F : yabai -m window --resize left:20:0 || yabai -m window --resize right:20:0
# resize vertically
cmd - 0x29 : yabai -m window --resize top:0:-20 || yabai -m window --resize bottom:0:-20
cmd - 0x27 : yabai -m window --resize top:0:20 || yabai -m window --resize bottom:0:20
# focus windows
cmd - 0x21 : yabai -m window --focus prev || yabai -m window --focus first
cmd - 0x1E : yabai -m window --focus next || yabai -m window --focus last
# swap recent
cmd - 0x2C : yabai -m window --swap prev || yabai -m window --swap first

28
.yabairc Executable file
View file

@ -0,0 +1,28 @@
#!/usr/bin/env sh
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
yabai -m config external_bar all:0:0 \
layout bsp \
window_placement second_child \
top_padding 5 \
bottom_padding 5 \
left_padding 5 \
right_padding 5 \
window_gap 5 \
mouse_modifier fn \
mouse_action1 move \
mouse_action2 resize \
window_opacity on \
active_window_opacity 1.0 \
normal_window_opacity 0.9
yabai -m rule --add app="^Simulator$" manage=off
yabai -m rule --add app="^System Settings$" manage=off
yabai -m rule --add app="^Finder$" manage=off
yabai -m rule --add app="^Calendar$" manage=off
yabai -m rule --add app="^Notes$" manage=off
yabai -m rule --add app="^Messages$" manage=off
yabai -m config --space 1 layout float
echo "yabai configuration loaded.."