Add prayer times to Ubuntu Unity Indicator Panel


Assalam o Aaliakum Wr Wb,

I just wanted to take a moment to share this small nifty program that I have running on my Ubuntu 16.04 installation. It very accurately tells me prayer times and shows a small popup 15 minutes before the time for a specific Salah enters.

The best thing about it is that it completely blends in the design of the Ubuntu Unity UI and gives the feel of a System App.

Here is how it is looking on my screen at the moment:

Prayer times for Ubuntu 16.04

The first step to install it is to add the following PPA to your sources. Open terminal (CTRL + ALT + T) and enter the following command:

sudo add-apt-repository ppa:m-alaa8/indicator-prayer-times

And then, to update the package list run: sudo apt-get update

Once apt update finishes its thing, you should be able to install it by writing: sudo apt install indicator-prayer-times

If the above method doesn't work or produces errors, you can try and install it by downloading the deb file from here: prayer-times-indicator.deb

Now, by default the app shows remaining time till the next Salah, and the icon in the indicator too is a little bit weird (in my humble opinion). So I went ahead and modified the app a little bit to suit my theme and made it show the time of the next Salah instead of the number of minutes remaining to it. I am using the Ubuntu Paper (inspired by material design) theme. And if some of you would like the app the way it looks on my screen, please feel free to download these files below and patch the app with these files (I'll tell you how) and your indicator panel will look exactly like mine.

Head to this link and download these two files somewhere on your computer: prayer-times-indicator

Basically all you have to do is to copy the indicator-prayer-times file to /usr/bin/directory and the SVG Icon to /usr/share/icons/hicolor/scalable/apps/ folder.

You will have to give execution permission to the downloaded indicator-prayer-times file to allow it to be runnable (before or after moving it to the /usr/bin directory). This can be done easily by writing the following command in the terminal (when you're at the same directory as the above mentioned file: sudo chmod +x indicator-prayer-times

If you face trouble moving the file to that directory, you can simply open the file browser as admin and use it to copy and paste easily. To do that, simply type: sudo nautilus ./ & in a terminal.


Leave a Reply

5,851 people have read this article.