Ahmed x86 - Waybar Hijri Calendar 🌙

A stable Python script for an RTL-fixed, dynamic Hijri calendar in Waybar.

Python Waybar Arch Linux Hyprland

About

The most stable Hijri calendar module for Waybar. It solves the common Pango RTL alignment issues by using a smart English header strategy, ensuring the calendar grid remains perfectly consistent on Hyprland and Sway.

Waybar Hijri Calendar Preview by Ahmed x86

Features

Installation

Deploy the script directly using this command:

mkdir -p ~/.config/waybar/scripts && curl -sSL https://raw.githubusercontent.com/ahmed-x86/waybar_hijri_calendar/main/hijri_waybar.py -o ~/.config/waybar/scripts/hijri_waybar.py && chmod +x ~/.config/waybar/scripts/hijri_waybar.py

Waybar Configuration

"custom/hijri": {
    "format": "{}",
    "exec": "~/.config/waybar/scripts/hijri_waybar.py",
    "interval": 3600,
    "return-type": "json",
    "tooltip": true
}

Waybar style.css

.custom-hijri {
    color: #f9e2af;          
    font-weight: bold;
    font-size: 14px;
    padding: 0 8px;
}

.custom-hijri:hover {
    color: #fab387;          
}
Arch Tip: Using Python instead of Bash for Waybar modules provides better error handling and prevents the bar from hanging during API calls.