Created
July 28, 2012 08:15
-
-
Save alghanmi/3192398 to your computer and use it in GitHub Desktop.
Add application to system tray white list a.k.a unity panel
This file contains 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 | |
#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