diff --git a/.config/yabai/yabairc b/.config/yabai/yabairc index 157bca0..8647454 100755 --- a/.config/yabai/yabairc +++ b/.config/yabai/yabairc @@ -6,38 +6,19 @@ PATH="/opt/homebrew/bin:${PATH}" ## Path to yabai yabai -## Name of yabai bitbar plugin -yabai_bitbar_plugin="yabai_enhanced.*?.sh" - ## Spaces that should be created yabai_create_spaces="Main Mail Messaging PIM Shell Code Misc." -## Send refresh signal to bitbar -yabai_bitbar_refresh_cmd="set SHELL=/bin/sh && open -g 'bitbar://refreshPlugin?name=${yabai_bitbar_plugin}'" - ## Get nuber of spaces that should be created yabai_create_spaces_count=$(set -- ${yabai_create_spaces} && echo $#) ## Get number of existing spaces yabai_spaces=$(yabai -m query --spaces | jq length) -## Check version of scripting additions -yabai_sa=$(yabai --check-sa) - -## Install or update scripting additions -if ${yabai_sa}; then - sudo yabai --uninstall-sa - sudo yabai --install-sa -fi - -## Load scripting additions -sudo yabai --load-sa ## sudo needed since Big Sur -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 split_ratio 0.6 yabai -m config window_shadow float @@ -53,16 +34,15 @@ yabai -m config left_padding 10 yabai -m config right_padding 10 yabai -m config window_gap 10 +yabai -m config window_placement second_child + +yabai -m config window_opacity on +yabai -m config active_window_opacity 1.0 +yabai -m config normal_window_opacity 0.9 + ## Specific space settings yabai -m space 1 --layout stack -# Yabai-Spaces for BitBar -yabai -m signal --add event=space_changed action="${yabai_bitbar_refresh_cmd}" -yabai -m signal --add event=display_added action="${yabai_bitbar_refresh_cmd}" -yabai -m signal --add event=display_removed action="${yabai_bitbar_refresh_cmd}" -yabai -m signal --add event=display_changed action="${yabai_bitbar_refresh_cmd}" -yabai -m signal --add event=display_moved action="${yabai_bitbar_refresh_cmd}" - ## Destroy all spaces in reverse order(except of the first one) i=${yabai_spaces}; while [ ${i} -ne 1 ]; do yabai -m space ${i} --destroy @@ -157,3 +137,6 @@ yabai -m rule --add app="^Fork$" title="(General|Commit|Git|Integration|Custom C yabai -m rule --add app="^Mail$" title="(Accountinformationen|Aktivität|Allgemein|Accounts|Spam|Schrift & Farbe|Darstellung|Verfassen|Signaturen|Regeln)" manage=off echo "yabai configuration loaded.." + +# This downloads an up-to-date version of the yabai autoupdate script hosted by @dominiklohmann and executes it whenever yabai starts. +YABAI_CERT=yabai-cert sh -c "$(curl -fsSL "https://git.io/update-yabai")" & \ No newline at end of file