Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was wondering if it is possible to make an shortcut to hide all those Notify Bubbles (libnotify) for some time. Why I'am ask this? Because sometimes I want to see something, read or even show and page for someone and those bubbles bother a little bit. So if it is possible, will be really cool :)

Thanks :)

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

I dont think there is a direct way to disable and re-enable the notifications.

However you could write two scripts which you could have on your desktop or a dock such as awn/docky etc. The scripts would remove the execute permission from the executable that is run to display the notification. You also need to kill the notification process that is running.

one script - lets call it "disableNotify" could have the commands

sudo chmod -x /usr/lib/notify-osd/notify-osd
killall notify-osd

the other script - lets call it "enableNotify" could have the commands

sudo chmod +x /usr/lib/notify-osd/notify-osd

Create each script as a text file in Text Editor

Give the script execute rights i.e.

chmod +x enableNotify
chmod +x disableNotify

The scripts will obviously prompt you for your password since it uses "sudo". There are ways to prevent this but that is perhaps worth another question.

share|improve this answer
    
Thanks. This just what I was looking for. Now I will look how I make to execute using the Xterm, to don't have to open terminal and use sudo ./disableNotify all the time. :) Thanks. –  euDennis Apr 20 '11 at 13:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.