FelixKratz / JankyBorders

A lightweight window border system for macOS
GNU General Public License v3.0
1k stars 18 forks source link

Different border color for some window types #35

Closed crisidev closed 8 months ago

crisidev commented 8 months ago

Hello, I was wondering if you could be interested in a feature that allows to specify the border color for different type of windows:

When the window is focused, the border can change depending on the window type, with a config like this one:

options=(
    active_color="0xAABBCCDDEEFF"
    float_color="0xAABBCCDDEEFF"
    fullscreen_color="0xAABBCCDDEEFF"
)

borders "${options[@]}"

What do you think?

FelixKratz commented 8 months ago

Hi, since it is possible to change the active border color at any point in time by calling:

borders active_color=0xAARRGGBB

you could already script this by using yabai events. So I dont think it is needed to compile this into the binary.

crisidev commented 8 months ago

Ah, true, its a good idea, thanks. I'll close this and add some example code once I have it working.