FelixKratz / JankyBorders

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

Restart Yabai Causes Misplaced Borders #80

Closed AlJohri closed 5 months ago

AlJohri commented 6 months ago

I restart yabai and skhd after making configuration changes like so:

hyper - r : yabai --restart-service && skhd --restart-service

When I do this, I end up with misplaced borders that look like this (notice the rectangle near the center bottom of the screen):

Screenshot 2024-03-23 at 3 55 54 PM

Ignoring the issue itself, I would like to have a quick way to "reset" the borders so it goes back to normal.

Currently I need to run:

❯ killall borders && borders &
[1] 17212

This is because I cannot run borders by itself without any arguments:

❯ borders
A borders instance is already running and no valid arguments where provided. To modify properties of the running instance provide them as arguments.

My yabairc as you can see from the screenshot invokes borders like so:

borders active_color=0xffe1e3e4 inactive_color=0xff494d64 width=5.0 &

Questions:

  1. Any ideas on why the borders get messed up on yabai/skhd restart service?
  2. Any suggestions on how to update my "restart" command so I can reset the borders as well?
FelixKratz commented 6 months ago

Which version of yabai are you using?