FelixKratz / JankyBorders

A lightweight window border system for macOS
GNU General Public License v3.0
860 stars 19 forks source link

Temporal highlight #72

Closed roeeyn closed 5 months ago

roeeyn commented 5 months ago

Hey! Thanks for your great tool. It could be great if it could be extended to support only a temporal highlight. Something similar to this tool. Do you think it's possible? Happy to help if needed :)

FelixKratz commented 5 months ago

You can already script something like this easily. Subscribe to the proper event in your window manager when a window is focused (e.g. window_focused in yabai) and then run this script:

borders active_color=0xffff0000
sleep 1
borders active_color=0x000000

If you want to be a little more fancy, you could place some intermediate alpha values separated by some more sleeps to make it look a bit smoother.