koekeishiya / yabai

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

Hiding stacked windows for transparency #2284

Open jackschedel opened 1 month ago

jackschedel commented 1 month ago

Hi, I recently set my terminal's background to be semi-transparent, because I like the aesthetic of being able to see my desktop background.

However, when I stack, fullscreen, or zoom-parent, I run into the issue that stacked windows in the back are not hidden, simply stacked over, leaving them partially visible, like so:

image

Is there a way to do have stacked-over windows hidden to prevent this?

Bellavene commented 1 month ago

Just write a chained command for changing stacks... Try those commands:

yabai -m window --opacity 0; yabai -m window --focus stack.prev; yabai -m window --opacity 1.0

yabai -m window --opacity 0; yabai -m window --focus stack.next; yabai -m window --opacity 1.0

But remember, you need also to make a script for stacking/unstacking windows which will follow the opacity change.

jackschedel commented 1 month ago

@Bellavene this won't fix zoom-fullscreen or zoom-parent, which are the main ones I actually care about.

Bellavene commented 1 month ago

For those, you can write a script.

jackschedel commented 1 month ago

@Bellavene do you have an example you can link me please? I'm not really sure what that would look like.

Bellavene commented 1 month ago

Sorry, but I have things to do, try to search here about scripts with jq parsing. With the help of jq, you can pick states for a window, including zoom-fullscreen and zoom-parent