- The prayer times script is inspired by Nofarah Tech prayer times scripts. In Addition, I added support for statusbars like waybar and desktop notifications.
wget
at
yad
mpv
dunst
(x11)polybar
(x11)mako
(wayland)waybar
(wayland)- Nerd Font (optional)
- Copy files to their corresponding location on your system
- Modify the location latitude and longitude in
.local/bin/prayer-times
to match your location - Set the print lang in
.local/bin/prayer-times
(options:en
,ar
) - Activate systemd user unit
- Add statusbar module
- Add notification daemon rule
- Configure Yad dialog to show in floating mode
- Run one of the following commands to activate the service for your user
systemctl --user enable --now prayer-times.service # start on boot
systemctl --user enable --now prayer-times.timer # start on boot + every 8 hours
- Add the following to your polybar config file (
~/.config/polybar/config[.ini]
) then add the module - Modify colors according to your liking (replace #83CAFA)
[module/prayers]
type = custom/script
exec = $HOME/.local/bin/prayer-times status
interval = 60
label = %{A:$HOME/.local/bin/prayer-times yad:}%{F#83CAFA} %{F-} %output%%{A}
- Add the following custom module to your waybar config (
~/.config/waybar/config
)
"custom/prayers": {
"interval": 60,
"return-type": "json",
"exec": "$HOME/.local/bin/prayer-times waybar",
"on-click": "$HOME/.local/bin/prayer-times yad",
"format": " {}",
}
- Add the following rule to your dunstrc file (
~/.config/dunst/dunstrc
) - Replace
USERNAME
with your account username
[play_athan]
summary = "Prayer Times"
script = "/home/USERNAME/.local/bin/play-athan"
- Add the following criteria/rule to mako config (
~/.config/mako/config
)
[summary="Prayer Times"]
on-notify=exec $HOME/.local/bin/play-athan
- Window Title:
Prayers
- Configure your window manager to show the Yad window in floating mode and you're all set!
- Example window rule for Hyprland
windowrulev2 = float,class:(yad)
windowrulev2 = move cursor -50% 30,title:(Prayers)
- Nofarah Tech | نوفرة تك (video) (dotfiles)
- Aladhan API
- Polybar config
- Default dunstrc
- Mako(5)
- Waybar Custom Module