This may sound like a stupid idea but I like to have a transparent top-panel which can be configured in Compiz Config Settings Manager, but when I resume from a suspend it's no longer transparent and gives a graphical glitch when invoking the dash. This goes away if I restart Unity by running the command "unity". So I was wondering if it was possible to achieve this? I tried setting a script in /etc/pm/sleep.d/ as stated in how to execute a command after resume from suspend? but it didn't work, I guess it is run before I get to log in again and Unity resumes.
Is there any way to achieve what I want or should I just give up?