diff --git a/namaadhuvaguthu.sh b/namaadhuvaguthu.sh index e0d2f12..7c3255c 100755 --- a/namaadhuvaguthu.sh +++ b/namaadhuvaguthu.sh @@ -1,5 +1,5 @@ #!/bin/bash -INPUT=PrayerFinal.png +INPUT=prayer.png OUTPUT=prayer_added.png PRAYERTIMES_CSV="male.csv" DAY_OF_YEAR=$(($(date -d "@$(date +%s)" +%j) - 1)) @@ -26,36 +26,44 @@ PRAYER=$2 case $PRAYER in fathis) POSITION='+685+430' +COLOR=white ;; iruaraa) -POSITION='+440+430' +POSITION='+450+430' +COLOR=white ;; mendhuru) -POSITION='+220+430' +POSITION='+215+430' +COLOR=white ;; asr) POSITION='+685+768' +COLOR=white ;; magrib) -POSITION='+440+768' +POSITION='+450+768' +COLOR=white ;; isha) -POSITION='+220+768' +POSITION='+215+768' +COLOR=white ;; date) -POSITION='+430+130' -TIME=$(date +'%d-%M-%Y') +POSITION='+375+190' +TIME=$(date +'%d-%m-%Y') +COLOR='#AC5757' esac if [ -f $OUTPUT ] then INPUT=$OUTPUT fi +echo Prayer=$PRAYER DayOfYear=$DAY_OF_YEAR Time=$TIME File=$INPUT Colour=$COLOR convert $INPUT \ -font $PWD/CourierPrime.ttf \ -pointsize 48 \ - -fill white \ + -fill $COLOR \ -annotate $POSITION $TIME \ $OUTPUT } diff --git a/prayer.png b/prayer.png index 98eba52..57fcb30 100644 Binary files a/prayer.png and b/prayer.png differ