Sign inSign up

abdeltwabmf/next-prayer

By abdeltwabmf

•Updated about 4 years ago

Islamic prayers reminder for your status bar.

Image
0

579

abdeltwabmf/next-prayer repository overview

⁠Next Prayer

This is the Docker image for next-prayer⁠. It's based on Alpine linux.

⁠Install

To use this image, pull from Docker Hub⁠, run the following command:

docker pull abdeltwabmf/next-prayer:latest

Verify the install

docker container run --rm  abdeltwabmf/next-prayer np_main --version

Version: v2.0.0

⁠Usage

docker container run --rm  abdeltwabmf/next-prayer np_main [options...]
Options:
 --next      The next prayer and its time.
 --prev      The previous prayer and its time.
 --hybrid    The elapsed time since the previous prayer as far as the elapsed time <= THRESHOLD.
 --all       Show all timings.
 --left      The time left till the next prayer.
 --elapsed   The time elapsed since the previous prayer.
 --adhan     Whether the current time is adhan or not.
 --hijri     The current hijri date.
 --help      Display this help message.
 --version   Display the version.

⁠Setup for status bars

In config.h add this 4-element Block to the blocks[] array

static const Block blocks[] = {
  /*Icon*/  /*Command*/                                                   /*Update Interval*/  /*Update Signal*/
  {"🕌",    "docker container run --rm  abdeltwabmf/next-prayer np_main --hybrid",  29,                  0}
}

In i3blocks config add this section

[next-prayer]
command=docker container run --rm  abdeltwabmf/next-prayer np_main --hybrid
interval=29
label=<span>🕌 </span>
color=#FF8105
border=#FF8105
border_top=1
border_right=0
border_bottom=0
border_left=0

⁠License

Licensed under the GPL-v3⁠ License.

Tag summary

Content type

Image

Digest

sha256:81767354e…

Size

20.6 MB

Last updated

about 4 years ago

docker pull abdeltwabmf/next-prayer