This commit is contained in:
Shihaam Abdul Rahman 2022-09-13 18:58:40 +05:00
parent 1dd2c01a1d
commit 868e7b05b2
Signed by: shihaam
GPG Key ID: 3B007D22E5584980

View File

@ -1,6 +1,5 @@
#!/bin/bash
INPUT=prayer.png
INPUT=PrayerFinal.png
OUTPUT=prayer_added.png
PRAYERTIMES_CSV="male.csv"
DAY_OF_YEAR=$(($(date -d "@$(date +%s)" +%j) - 1))
@ -41,6 +40,10 @@ POSITION='+440+768'
;;
isha)
POSITION='+220+768'
;;
date)
POSITION='+430+130'
TIME=$(date +'%d-%M-%Y')
esac
if [ -f $OUTPUT ]
@ -65,11 +68,12 @@ Asr=$(grep "^$DAY_OF_YEAR," $PRAYERTIMES_CSV | cut -d, -f5)
Maghrib=$(grep "^$DAY_OF_YEAR," $PRAYERTIMES_CSV | cut -d, -f6)
Isha=$(grep "^$DAY_OF_YEAR," $PRAYERTIMES_CSV | cut -d, -f7)
imagemagick $(human $Fajr) fathis
imagemagick $(human $Sunrise) iruaraa
imagemagick $(human $Dhuhr) mendhuru
imagemagick $(human $Asr) asr
imagemagick $(human $Maghrib) magrib
imagemagick $(human $Isha) isha
imagemagick "" date
feh $OUTPUT