36 lines
1.7 KiB
Bash
Executable file
36 lines
1.7 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
|
|
sudo yabai --load-sa
|
|
|
|
yabai -m config layout bsp
|
|
#yabai -m config debug_output on
|
|
|
|
# General settings
|
|
yabai -m config focus_follows_mouse autofocus
|
|
yabai -m config window_placement first_child
|
|
yabai -m config window_placement second_child
|
|
|
|
yabai -m rule --add app="^Firefox$" space=two
|
|
# Add more rules based on your applications and workspace preferences
|
|
|
|
|
|
|
|
yabai -m space 1 --label one
|
|
yabai -m space 2 --label two
|
|
yabai -m space 3 --label three
|
|
yabai -m space 4 --label four
|
|
yabai -m space 5 --label five
|
|
yabai -m space 6 --label six
|
|
|
|
#Indicator
|
|
yabai -m signal --add event=mission_control_exit action='echo "refresh" | nc -U /tmp/yabai-indicator.socket'
|
|
yabai -m signal --add event=display_added action='echo "refresh" | nc -U /tmp/yabai-indicator.socket'
|
|
yabai -m signal --add event=display_removed action='echo "refresh" | nc -U /tmp/yabai-indicator.socket'
|
|
yabai -m signal --add event=window_created action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket'
|
|
yabai -m signal --add event=window_destroyed action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket'
|
|
yabai -m signal --add event=window_focused action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket'
|
|
yabai -m signal --add event=window_moved action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket'
|
|
yabai -m signal --add event=window_resized action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket'
|
|
yabai -m signal --add event=window_minimized action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket'
|
|
yabai -m signal --add event=window_deminimized action='echo "refresh windows" | nc -U /tmp/yabai-indicator.socket'
|