/ptui

Terminal UI written in Rust, that helps you track prayer time

Primary LanguageRustGNU General Public License v2.0GPL-2.0

ptui - Prayer Terminal UI (or Progress Terminal UI)

Introduction

ptui is a simple TUI that shows the remaiming time for the next prayer.

Build

cargo build --release

Input data

Data is fed to the executable through a data file containing line separated pairs of timestamps and labels.

Example

./data/prayer_times.txt contains prayer time for casablanca morocco

Usage

DATA_FILE="/path/to/data/file" ./target/release/ptui

The default value of data file is ./data/prayer_times.txt

keyboard shortcuts

  • t : switch between time and remaining time for prayer
  • f : switch between next prayer time and fasting end time (Maghrib)
  • q : quit

Data Generation

You can use generate-prayer-time to generate data according to your location.

Screenshots

Screenshots taken in small and large tmux panes

Small pane remaining time

Small pane prayer time

Large pane prayer time

Large pane remaining time