Last active
January 25, 2026 23:58
-
-
Save stefan-vatov/0253e8709760c3744c6c550acf1ea37a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # screen-sharing-unfuck.sh | |
| echo "Level 1: Restarting Dock and SystemUIServer..." | |
| sudo killall Dock | |
| sudo killall SystemUIServer | |
| sleep 2 | |
| echo "Level 2: Restarting screen sharing..." | |
| sudo launchctl kickstart -k system/com.apple.screensharing | |
| sleep 2 | |
| echo "Level 3: Restarting login window..." | |
| sudo killall loginwindow | |
| echo "Done. Try reconnecting." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment