Skip to main content

Islamic prayer times widget for Waybar

Project description

Prayer Times — Waybar Widget

Shows Islamic prayer times in your status bar — auto-detects location via IP.

What it does

  • Displays how much time is left in the current prayer (e.g. "Isha 20m remaining")
  • Shows "Forbidden 12m" during sunrise and midday periods when prayer isn't allowed
  • Shows time until the next prayer when nothing is active (e.g. "Dhuhr in 1h")

How to use

  • Left-click the prayer time to switch between two display modes:
    • Context-aware (shows what matters right now)
    • Always show time until next prayer
  • Hover over it to see the complete daily timetable

Installation

From PyPI (recommended)

uv tool install waybar-salah

Or with pip:

pip install waybar-salah

From source

Requires uv.

uv tool install git+https://github.com/shahriyardx/waybar-salah

Or from a local copy:

cd /path/to/prayer-times
uv tool install .

Then add to your Waybar config:

"custom/prayer": {
    "exec": "waybar-salah",
    "return-type": "json",
    "interval": 30,
    "on-click": "waybar-salah --toggle",
    "tooltip": true
}

Add some CSS to colour the states:

#custom-prayer.current { color: #a6e3a1; }
#custom-prayer.forbidden { color: #f38ba8; }
#custom-prayer.next { color: #89b4fa; }

Customisation

Open src/waybar_salah/main.py and change CITY, COUNTRY, or METHOD at the top.

Method Organisation
1 University of Islamic Sciences, Karachi
2 Islamic Society of North America
3 Muslim World League
4 Umm Al-Qura, Makkah
8 University of Tehran

Files

src/waybar_salah/main.py     # main logic
pyproject.toml               # package config
cache.json                   # daily timings (auto-generated)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

waybar_salah-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

waybar_salah-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file waybar_salah-0.1.0.tar.gz.

File metadata

  • Download URL: waybar_salah-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for waybar_salah-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d3458a07306a3d50324aa78daf96d0d4eb96793ab5443ea1634d18bace7c5bfd
MD5 6d77d4da07f0bcbb7199c51f5ca2e35c
BLAKE2b-256 d11b1efeb5de38adf351aa7998ef6c16a2a989d4a2844881a59babb80f46adc6

See more details on using hashes here.

File details

Details for the file waybar_salah-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: waybar_salah-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for waybar_salah-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f55dc81dbb9152bb1463abcd79174a13e96d3bd1854839bfbc15527bbb9b9bb
MD5 eeb53a8b199c7bf9dccb659150ea496c
BLAKE2b-256 0f624b3f4c94478df273ec213666550791bcaed3f65a0205326641616ef4abb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page