Alex W.'s Blog

How To Use Standard Gnome Notification Bubbles in Ubuntu

May 18, 2011

I followed this guide to greatly improve the Ubuntu Natty Narwhal notification system. This notification system has many great features such as stackable notifications, click to remove notificaitions, skip buttons to skip banshee songs, and theme-ability. Source: http://www.webupd8.org/2011/05/how-to-use-standard-gnome-notification.html

A while back we wrote about using the AWN notifications instead of Ubuntu’s NotifyOSD which would allow you to position the notification bubbles in any screen corner you want (that’s also possible with NotifyOSD thanks to a PPA by Leolik - but it hasn’t been updated for Natty yet) and also get a close button for the notifications.

But to use the AWN notifications you obviously need to use AWN. However, there’s another way to do this: using the default GNOME notifications instead of the Ubuntu NotifyOSD notification bubbles:

GNOME Notifications

Use GNOME notifications instead of Ubuntu NotifyOSD

Open a terminal and copy/paste the following commands:

sudo apt-get install notification-daemon libnotify-bin sudo mv /usr/lib/notify-osd/notify-osd /usr/lib/notify-osd/notify-osd-original sudo ln -s /usr/lib/notification-daemon/notification-daemon /usr/lib/notify-osd/notify-osd sudo killall notify-osd

Then, press ALT + F2 and type:

/usr/lib/notify-osd/notify-osd

And now try it out, run:

notify-send --icon=gtk-add Test "This is a test notification"

You can run that multiple times to see how it looks when you get a lot of notifications.

There’s also a tool you can use to configure the GNOME Notifications theme (Ubuntu or original) and position on screen. To use, run “Pop-up Notifications” via the Ubuntu menu or run this in a terminal:

notification-properties

If you use the “standard” theme, the GNOME Notifications will respect your current GTK theme colors.** Here are some screenshots:** - Pop-up Notifications “Ubuntu theme” (multiple notifications):

Gnome notifications

- Pop-up Notifications “standard” theme, some random GTK theme:

Gnome notifications

- Pop-up Notifications “standard” theme, some other random GTK theme:

Gnome notifications Ubuntu

Revert the changes

Don’t like it? Revert the changes using the commands below:

sudo apt-get remove notification-daemon sudo killall notify-osd sudo mv /usr/lib/notify-osd/notify-osd-original /usr/lib/notify-osd/notify-osd

Then press ALT + F2 and type:

/usr/lib/notify-osd/notify-osd

Try it out:

notify-send --icon=gtk-add Test "This is a test notification"

[Thanks to gradinaruvasile @ Ubuntuforums]


Alex Wendland

Written by Alex Wendland, who is currently studenting at Harvard College. Here's a Twitter handle, a GitHub, some LinkedIn, ol' Facebook, or a hip Instagram if you're interested.