Back to browse
GitHub Repository

A bit-too-aggressive Prayer reminder for Linux and Windows.

4 starsRust

Pryr – A ruthless prayer time screen locker in Rust

by kofta999·Mar 19, 2026·2 points·1 comment

AI Analysis

●●SolidNiche GemShip It

Screen locking via loginctl and LockWorkStation APIs means you literally cannot dismiss it.

Strengths
  • Native OS locking APIs prevent workaround during Iqamah duration
  • Zero-overhead IPC via Unix sockets and Windows named pipes
  • Hot-reload TOML config without dropping the background daemon
Weaknesses
  • No macOS support despite being a cross-platform Rust project
  • Extremely niche audience limits broader adoption potential
Category
Target Audience

Muslim developers who want enforced prayer accountability

Similar To

Freedom · Cold Turkey · SelfControl

Post Description

Hi HN, I found that when I'm too focused on coding, I'd completely forget my prayers, and normal apps only gives you notifications that's easy to swipe off.

So I built pryr using Rust. It’s a background daemon that tracks prayer times, gives you warnings, and when the exact time hits, it ruthlessly locks you out of the OS session (using loginctl on Linux and LockWorkStation on Windows) for a configurable duration.

Architecture is split into: 1. Async state machine using Tokio running as a daemon(systemd / TaskScheduler) 2. A CLI that communicates with the daemon using zero-overhead IPC (unix sockets / windows named pipes)

I aimed for totally offline usage (only fetching coords from city name requires internet) and simplicity

I'd love to hear your thoughts on the architecture and if there's any improvement ideas!

Repo Link: https://github.com/kofta999/pryr

Similar Projects