A stable Python script for an RTL-fixed, dynamic Hijri calendar in Waybar.
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.
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
"custom/hijri": {
"format": "{}",
"exec": "~/.config/waybar/scripts/hijri_waybar.py",
"interval": 3600,
"return-type": "json",
"tooltip": true
}
.custom-hijri {
color: #f9e2af;
font-weight: bold;
font-size: 14px;
padding: 0 8px;
}
.custom-hijri:hover {
color: #fab387;
}