koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
23.85k stars 650 forks source link

yabai-v7.1.0 window_opacity does not take effect #2268

Open Eatsolx opened 6 months ago

Eatsolx commented 6 months ago

yabai-v7.1.0 After setting the opacity, neither the active window nor the inactive window took effect. SIP is turned off.

#!/usr/bin/env sh

sudo yabai --load-sa
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"

yabai -m config external_bar               all:40:0       \
                mouse_follows_focus        off            \
                focus_follows_mouse        off            \
                window_zoom_persist        off            \
                window_placement           second_child   \
                window_shadow              float          \
                window_opacity             on             \
                window_opacity_duration    0.2            \
                active_window_opacity      1.0            \
                normal_window_opacity      0.5            \
                window_animation_duration  0.5            \
                window_animation_easing    ease_out_quint \
                insert_feedback_color      0xff9dd274     \
                split_ratio                0.50           \
                auto_balance               off            \
                mouse_modifier             fn             \
                mouse_action1              move           \
                mouse_action2              resize         \
                mouse_drop_action          swap           \
                                                          \
                top_padding                8              \
                bottom_padding             8              \
                left_padding               8              \
                right_padding              8              \
                window_gap                 10

# 设置Space3内默认打开为浮动
yabai -m config --space 3 layout float

# Exclude problematic apps from being managed:
yabai -m rule --add app="^(LuLu|Calculator|Software Update|Dictionary|VLC|System Preferences|System Settings|zoom.us|Photo Booth|Archive Utility|Python|LibreOffice|App Store|Steam|Alfred|Activity Monitor|Telegram|WeChat|QQ|Stash|Sleeve|OpenAI Translator|Karabiner-Elements|Weather|BetterZip|)$" manage=off
yabai -m rule --add label="Finder" app="^Finder$" title="(Co(py|nnect)|Move|Info|Pref)" manage=off
yabai -m rule --add label="Safari" app="^Safari$" title="^(General|(Tab|Password|Website|Extension)s|AutoFill|Se(arch|curity)|Privacy|Advance)$" manage=off
yabai -m rule --add label="About This Mac" app="System Information" title="About This Mac" manage=off
yabai -m rule --add label="Select file to save to" app="^Inkscape$" title="Select file to save to" manage=off

yabai -m config layout bsp

echo "yabai configuration loaded.."
MattressPadley commented 6 months ago

do you have

yabai -m rule --apply

at the end of your yabairc? if not rules will only apply to windows opened after the rule is set and not when yabai starts

Eatsolx commented 5 months ago

do you have

yabai -m rule --apply

at the end of your yabairc? if not rules will only apply to windows opened after the rule is set and not when yabai starts

it still didn't take effect.