-
-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to write a rule to enable shadows for a particular application? #171
Comments
Added support on master for querying the value of a windows shadow and the ability to toggle shadow on or off. That should be enough for you to do what you want through the signal system. |
@koekeishiya you forgot the docs @danteissaias this should do (edit: just filed #174, window_created has a bug that affects this) # disable window shadows for all windows
yabai -m config window_shadow off
# toggle shadows when a window is created for system prefs or preview
yabai -m signal --add event=window_created app='^(System Preferences|Preview)$' \
action='yabai -m window "${YABAI_WINDOW_ID}" --toggle shadow'
# toggle shadows for all existing system prefs or preview windows when yabai launches
yabai -m query --windows \
| jq '.[] | select(.shadow == 0 and (.app == "System Preferences" or .app == "Preview")).id' \
| xargs -I{} yabai -m window {} --toggle shadow |
Is it possible to make these two work together, since toggling floating also re-disables shadows? yabai -m signal --add event=window_created app='^(System Preferences|Preview)$' \
action='yabai -m window "${YABAI_WINDOW_ID}" --toggle shadow'
yabai -m signal --add event=window_created app='^(System Preferences|Preview)$' \
action='yabai -m window "${YABAI_WINDOW_ID}" --toggle floating' Edit: This issue only affects System Preferences, and not Preview. |
I don't consider 174 to be a bug. You need to also subscribe to the application_launched signal. |
In a nutshell, I want to enable shadows only for System Preferences and Preview.
The text was updated successfully, but these errors were encountered: