Delete moonphase

This commit is contained in:
Vlad Doster 2020-03-27 10:11:37 -05:00 committed by GitHub
parent 4571183d0e
commit d9f7386380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +0,0 @@
#!/bin/sh
mnphs=$(pom $1 | grep -o 'New\|Waxing Crescent\|First Quarter\|Waxing Gibbous\|Full\|Waning Gibbous\|Last Quarter\|Waning Crescent' | grep -m1 '.')
prcnt=$(pom $1 | grep -o '[[:digit:]]*%')
case "$mnphs" in
"New") icon="🌑" prcnt="0%" ;;
"Waxing Crescent") icon="🌒" ;;
"First Quarter") icon="🌓" prcnt="50%" ;;
"Waxing Gibbous") icon="🌔" ;;
"Full") icon="🌕" prcnt="100%" ;;
"Waning Gibbous") icon="🌖" ;;
"Last Quarter") icon="🌗" prcnt="50%" ;;
"Waning Crescent") icon="🌘" ;;
*) echo errorrrr ;;
esac
printf "%s %s\\n" "$icon" "$prcnt"