Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

2638se

macrumors member
Original poster
Screenshot 2026-07-01 at 1.21.19 PM.jpg

Basically all these white lines. I find the same question from somebody else years ago but there seems to be no solution.
https://apple.stackexchange.com/que...-white-borders-on-dark-mode-in-macos-catalina
I'm OK with disabling SIP. Thanks for any help!
 
Screenshot 2026-07-01 at 4.07.07 PM.jpg

OK I have found the solution (the upper border is still partly there but I'm fine with that since that's where all the controls are):
yabai and It does require disabling SIP
https://github.com/asmvik/yabai

You can add
yabai -m config window_shadow off
in its config to disable window borders
BTW I find that it can also disable the animation when switching to a full screen app by using its scripting addition.


I made a note so I can follow the same steps in future but
PLEASE READ THE OFFICIAL DOCUMENTATION FIRST AND PROCEED AT YOUR OWN RISK.


brew install asmvik/formulae/yabai


sudo visudo -f /private/etc/sudoers.d/yabai
//Then exit to Terminal
echo "$(whoami) ALL=(root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | cut -d " " -f 1) $(which yabai) --load-sa" | sudo tee /private/etc/sudoers.d/yabai
//Note: If update yabai via Homebrew in the future, will need to rerun this to update the hash).


mkdir -p ~/.config/yabai
touch ~/.config/yabai/yabairc
chmod +x ~/.config/yabai/yabairc


//Open yabairc file using a text editor and replace all content with this four lines:
#!/usr/bin/env sh
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
sudo yabai --load-sa
yabai -m config window_shadow off


yabai --start-service
yabai --restart-service
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.