Skip to content

Instantly share code, notes, and snippets.

@alghanmi
Created July 28, 2012 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alghanmi/3192398 to your computer and use it in GitHub Desktop.
Save alghanmi/3192398 to your computer and use it in GitHub Desktop.
Add application to system tray white list a.k.a unity panel
#!/bin/bash
#Get list of already white listed applications (separated by space)
SYSTRAY_WHITELIST=$(gsettings get com.canonical.Unity.Panel systray-whitelist | tr -d \',[])
#Applications you wish to add (separated by space)
EXTRA_APPLICATIONS="Skype Shutter"
#Generate new white list
SYSTRAY_WHITELIST_NEW=$(echo "['$SYSTRAY_WHITELIST $EXTRA_APPLICATIONS']" | sed -e "s/\s/', '/g")
gsettings set com.canonical.Unity.Panel systray-whitelist "$SYSTRAY_WHITELIST_NEW"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment