Creating custom Ubuntu notifications and reminders

Creating custom notifications to pop up notifying you for something to do or remind you of something by using commands available on Ubuntu.

Ubuntu being my most used operating system at the moment, i explored if i could get custom notifications to pop up notifying me of something to do. So i found two ways to accomplish this with the terminal or any other application that could execute a command. The two ways i found were “zenity” and “notify-send”. Lets see what we can do with these commands.

Both of these are terminal commands so you can either setup delays to execute these commands on your Terminal or use applications like KAlarm or KTimer (available on software-center) to setup multiple notification according to your need. KTimer is straightforward and allows easy usage of timers and command execution, but KAlarm allows more features and options you might like.

ktimer with zenity notification

Zenity allows you to create pop ups like JavaScript on web sites that you have to click to close. This makes the pop up remain there until you take an action to close it. If you were to make notification like on Ubuntu they will vanish after some moments and you may miss the notification. Here’s a simple example of zenity command:

zenity –info –text=”Time for meeting”

The notification would pop up a windows with your notifications like this:


You can use notify-send to create default notifications like on Ubuntu. But these notification will vanish after some moments and you’ll miss those notification if you’re not actively using the system. You can use these on KTimer or KAlarm to create multiple notification as per your need. The simple command to get those notification is:

notify-send “Title” “Message” -i \icon.png

The notify-send –help option shows basic usage. More examples can be found here.

Title is for the heading of the notification and Message is for your message to be shown. -i is to show a icon with that notification. No need for any screen shots with notify-send as it is the same as the default Ubuntu notification you might have seen a lot of times already.

Let us know what you think in the comments.

Leave a Reply