A sleek terminal user interface (TUI) for Islamic prayer times mapping the sun path across the horizon built with Textual and styled in the Dracula theme.
- 24-Hour Solar Arc & Symmetries: Unicode Braille curve mapping the sun/moon path across the horizon with interactive prayer markers, interval spans, ratios, and percentage shares.
- Synthesized Reminders: Configurable audio/desktop notifications supporting on-time chimes and 23-minute advance alerts (
n). - Live Countdown & Status: Real-time countdown with color-coded prayer status indicators (
β Passed,β³ Next,β’ Upcoming). - Qibla Direction: Single-line compass bearing, directional arrow, and exact angle to the Kaaba.
- Hijri Date & Method Indicator: Displays active Hijri dates and calculation methods via the AlAdhan API.
- Settings & Persistence: Interactive modal to switch locations/methods (
c) and save preferences locally to~/.salah_tui.json(s).
Salah renders a live 24-hour astronomical arc below the prayer table using Unicode Braille sub-pixels, featuring daylight curves from Sunrise to Maghrib, night arcs spanning Isha and Fajr, and interactive markers (β for fixed prayers, β for the selected row). It also includes symmetry columns (Span, Ratio, Share) comparing twilight intervals and daylight proportions.
Install globally in an isolated environment using pipx:
pipx install salah-tuiLaunch the application from anywhere in your terminal:
salah| Key | Action |
|---|---|
β / β |
Scroll through prayers and highlight their position on the solar arc |
c |
Change city, country, and calculation method |
n |
Cycle reminder mode (Off β At Prayer Time β 23m Before + At Time) |
s |
Save location, calculation method, and reminder mode to ~/.salah_tui.json |
r |
Refresh prayer times |
q |
Quit the application |
The Qibla is the direction from your location to the Kaaba in Makkah, displayed between the calculation method and reminder status with a directional arrow and bearing in degrees.
- Coordinates: Geocoded via Open-Meteo Geocoding API and cached per session.
- Bearing: Initial great-circle bearing to the Kaaba (21.4225Β° N, 39.8262Β° E) computed locally via spherical trigonometry.
- Independence: Calculated independently of the chosen prayer time calculation method.
- City-level accuracy: Computed from city centers; minor deviations may occur for larger or distant areas.
- True north: Based on geographic (true) north rather than magnetic north.
- Ambiguous names: Double-check matched locations if common city names overlap; verify coordinates via AlAdhan Qibla endpoint.
- Internet required: Initial lookups require connectivity; subsequent lookups rely on session caching.
- Field verification: Theoretical calculations should be cross-referenced with local authorities for formal prayer times.
- 3 β Muslim World League (default)
- 13 β Diyanet Δ°Εleri BaΕkanlΔ±ΔΔ±, Turkey
- 2 β Islamic Society of North America (ISNA)
- 4 β Umm Al-Qura University, Makkah
- 5 β Egyptian General Authority of Survey
- 1 β University of Islamic Sciences, Karachi
- 12 β Union Organization Islamic de France
- 15 β Moonsighting Committee Worldwide
GNU General Public License v3.0 (GNU GPLv3) π― All Lights returned postsonde
Part of a collection of minimalist Islamic terminal apps styled in the Dracula dark theme:
| App | Command | Description |
|---|---|---|
| salah-tui | salah |
Islamic prayer times mapping the sun path on the horizon, Hijri date & calculation methods |
| hijri-tui | hijri |
Native Hijri calendar with lunar phases, Sunnah fasting & holy days |
| quran-tui | quran |
Study the Holy Quran with 100+ translations, side-by-side view & bookmarks |
| asma-tui | asma |
Learn the 99 Names of Allah with flashcards, streak quiz & directory |

