Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/AbdeltwabMF/next-prayer

Islamic prayer reminder for Unix status bars.
https://github.com/AbdeltwabMF/next-prayer

bash cpp docker hacktoberfest hacktoberfest2022 linux makefile muslim-prayer-times prayer-times prayertimes python3 salat-timings

Last synced: 3 months ago
JSON representation

Islamic prayer reminder for Unix status bars.

Awesome Lists containing this project

README

        

Next Prayer

Islamic prayers reminder for Linux status bar



maintenance


license


release


contributors


pull-request


docker


languages


code-of-conduct


quality


commits


lines-of-code

---

## Installation

### 1. Arch-based distributions

```bash
yay -S next-prayer
```

### 2. Build from source

```bash
git clone https://github.com/abdeltwabmf/next-prayer.git
cd next-prayer
make all install
```

### 3. Docker image

1. Use [**_Docker Hub_**](https://hub.docker.com/r/abdeltwabmf/next-prayer) image by running the following commands:

```bash
docker pull abdeltwabmf/next-prayer
docker tag abdeltwabmf/next-prayer next-prayer
docker run --rm next-prayer next-prayer --version
```

2. Build it yourself by running the following commands:

```bash
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
```

#### Configuration

1. After updating your configuration file save it locally and run the following command to fetch API data:

```dockerfile
docker run --rm -v /path/to/your/config:/home/nextprayer/.config/next-prayer/np_config.py -v /path/to/your/data:/home/nextprayer/.local/share/next-prayer next-prayer np_fetch.py
```

2. Afterword run the following command:

```dockerfile
docker run --rm -v /path/to/your/data:/home/nextprayer/.local/share/next-prayer next-prayer next-prayer [options...]
```

---

## :thinking: Usage

```shell
Usage: next-prayer [options...]

Options:
--help Display this help message.
--version Version name.
--next Next prayer time.
--all All timings.
--prev Previous prayer time.
--left Time left to next prayer.
--elapsed Elapsed time since last prayer.
--adhan True if adhan is playing now.
--hijri Hijri date.
--hybrid The elapsed time since the previous prayer as far as the elapsed time <= THRESHOLD.
```

Use `next-prayer` options with _docker_ as follows:

docker run --rm next-prayer next-prayer [options...]

---

## Setup (Status bar)

Here are some examples how to setup the status bar with next-prayer:

[**_1. dwmblocks_**](https://github.com/torrinfail/dwmblocks)

:star2: Add this 4-element Block to the blocks[] array in your config.h.

```c
static const Block blocks[] = {
/*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/
{"🕌 ", "next-prayer --hybrid", 29, 0}
}
```

[**_2. i3blocks_**](https://github.com/vivien/i3blocks)

:star2: Add this section to your i3blocks config file.

```code
[next-prayer]
command=next-prayer --hybrid
interval=29
label=🕌
color=#FF8105
border=#FF8105
border_top=1
border_right=0
border_bottom=0
border_left=0
```

:eyes: If you're using the docker version Add `docker run --rm next-prayer` at the very beginning of your command.

---

## :hatching_chick: Contributors




Abdeltwabmf

Abd El-Twab M. Fakhry




mazzensaadd

Mazen Saad




MustafaAmer-1

Mustafa Amer


---

## :warning: License

Licensed under the [GPL-v3 License](LICENSE).