Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a command/shortcut avaiable to hide all popped-up notifications? Some of my scripts produce notifications which dont auto-hide, you have to click them.

I'd like to have a keyboard shortcut instead of having to click each and every one.

share|improve this question
up vote 2 down vote accepted

There is no such shortcut. Even then, the notification interface does not expose a DBus call to revoke all open notifications.

However, you can speedily dispose all by killing the notification process:

Quick and dirty:

Assign the shortcut of your liking to:

pkill xfce4-notifyd

Sophisticated and nerdy:

Ask it to terminate gracefully:

dbus-send --session --type=method_call --dest=org.freedesktop.Notifications \
                   /org/freedesktop/Notifications \

Or maybe put the above in your scripts.

Note: Ending the xfce4-notifyd process is not an issue because the next invocation of a notification will start the process. It will even self-terminate when there is nothing to display for some time.

share|improve this answer

Your Answer


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.