How can I change the wiggle time of 'urgent animation' in Unity Launcher?

I really like wiggle animation for application notification, but I find it disappear too quickly and I wish I could change this delay. I looked through all the ccsm, appearance, and myUnity settings and nothing seems appropriate.


Solution 1:

I don't think this is a configurable option in Unity, but you can edit the source code to change the duration. If you've not downloaded source and compiled your own packages before, you can do so as follows. From your home directory in a terminal window:

mkdir src
cd src
apt-get source unity
cd unity-<version number>
gedit ./plugins/unityshell/src/Launcher.cpp

Look for the line which says:

Launcher.cpp:const int Launcher::Launcher::ANIM_DURATION_SHORT = 125;

and maybe double the duration. If you've never built a package from source before you're going to need a few tools. So do:

sudo apt-get install build-essential devscripts

Then to get the dependencies neccessary for unity to build properly:

sudo apt-get build-dep unity

Finally create the package and install:

debuild -us -uc
cd ..
sudo dpkg -i unity*.deb

If you're having problems with dependencies let me know, and I'll try to help you figure out what you're missing.