Next Prayer
Islamic prayers reminder for your status bar.
Usage
Usage: next-prayer [options...]
Options:
--help Show this help message and exit.
--version Show version information and exit.
--next Show next prayer time.
--all Show all timings.
--prev Show previous prayer time.
--left Show time left to next prayer.
--elapsed Show elapsed time since last prayer.
--adhan Show if adhan is now playing.
--hijri Show hijri date.
--hybrid The elapsed time since the previous prayer as far as the elapsed time <= THRESHOLD.
Installation
- For
Arch based distros (e.g. Manjaro)
install it using anyAUR
helper.
yay -S next-prayer
- For
Other distros (e.g Ubuntu, ...)
run the following commands:
git clone https://github.com/abdeltwabmf/next-prayer.git
cd next-prayer
make all clean install
- For
Windows or Mac
you probably end up withDocker version
:
You have two choices:
- Use Docker Hub image by running the following command:
docker pull abdeltwabmf/next-prayer
docker tag abdeltwabmf/next-prayer next-prayer
docker run --rm next-prayer next-prayer --version
- Build it yourself by running the following commands:
git clone https://github.com/abdeltwabmf/next-prayer.git
cd next-prayer
docker build -t next-prayer .
docker run --rm next-prayer next-prayer --version
Version: v2.0.0
indicating that you run the container successfully.
Using next-prayer options with docker
docker run --rm next-prayer next-prayer [options...]
Configuration
- After Editing your config file save it locally and run the following command to fetch API data:
docker run --rm -v /path/to/your/config:/root/.config/next-prayer/np_config.py -v /path/to/your/data:/root/.local/share/next-prayer next-prayer np_fetch.py
- After that you can run:
docker run --rm -v /path/to/your/data:/root/.local/share/next-prayer next-prayer next-prayer [options...]
Setup for status bars
static const Block blocks[] = {
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
{"🕌 ", "next-prayer --hybrid", 29, 0}
}
[next-prayer]
command=next-prayer --hybrid
interval=29
label=<span>🕌 </span>
color=#FF8105
border=#FF8105
border_top=1
border_right=0
border_bottom=0
border_left=0
the docker version
Add docker run --rm next-prayer
at the very beginning of the command.
License
Licensed under the GPL-v3 License.