Get rid of the annoying purple "DisplayLink Manager is recoding your screen" icon in the menu bar on macOS >= 14
This is the issue: https://www.displaylink.org/forum/showthread.php?p=96680
It's officially descriped as a "feature": https://support.displaylink.com/knowledgebase/articles/2007602-macos-sonoma-14-screen-sharing-picker-and-stop-sh
This fix is all thanks to lockieluke's comment: lwouis/alt-tab-macos#2606 (comment)
This works, because Terminal (an Apple app) will now launch DisplayLink Manager, instead of DisplayLink Manager itself (a 3rd party app).
Apple apps don't show the fucking purple icon, that's why this works.
- Create a file at
~/Library/LaunchAgents/local.displaylink.plistand paste this in:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.displaylink</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/usr/bin/osascript $HOME/.scripts/displaylink.scpt</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
- Make sure you turn off Launch at login in DisplayLink Manager
- Create a file at
~/.scripts/displaylink.scptand paste this in:
tell application "Terminal"
do script "screen -dmS DisplayLinkUserAgent /Applications/DisplayLink\\ Manager.app/Contents/MacOS/DisplayLinkUserAgent"
delay 1
if it is running then quit
end tell- Run
launchctl load ~/Library/LaunchAgents/local.displaylink.plistto load the launch agent profile you just created - Logout and log back in, you might see the Terminal flash for a fraction of a second as it's starting Displaylink but it should start working in a second