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.

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
add comment

1 Answer 1

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 \
                   org.xfce.Notifyd.Quit


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
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.