yousfiSaad / ptui

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:GNU General Public License v2.0


Languages

Language:Rust 100.0%