diff options
| author | nerrufam <58603397+nerrufam@users.noreply.github.com> | 2020-02-13 13:38:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-13 07:38:29 -0500 |
| commit | 8d4a021f3741a728f5b1aa7e0b406e43ff79b039 (patch) | |
| tree | 2ae6a6d645e4bc43d5ddf73c87b9d125aa8519ff /.local/bin/statusbar | |
| parent | 4acbbc07d35a16e2dd680fb44a0f4eaeb1756802 (diff) | |
| download | eibhear-8d4a021f3741a728f5b1aa7e0b406e43ff79b039.tar.gz eibhear-8d4a021f3741a728f5b1aa7e0b406e43ff79b039.tar.zst eibhear-8d4a021f3741a728f5b1aa7e0b406e43ff79b039.zip | |
know the phase of the moon with emoji and % (#482)
8 emoji for 8 main phases plus the % 'of full'
😉 dont forget to load it to your status bar
Diffstat (limited to '.local/bin/statusbar')
| -rw-r--r-- | .local/bin/statusbar/moonphase | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.local/bin/statusbar/moonphase b/.local/bin/statusbar/moonphase new file mode 100644 index 0000000..6ccc81b --- /dev/null +++ b/.local/bin/statusbar/moonphase @@ -0,0 +1,18 @@ +#!/bin/sh + +mnphs=$(pom | grep -io 'new\|waxing cresent\|first quarter\|waxing gibbous\|full\|waning gibbous\|last quarter\|waning cresent' | grep -m1 '.') +prcnt=$(pom | grep -o '..%') + +case $mnphs in + "New") icon="🌑" ;; + "Waxing Cresent") icon="🌒" ;; + "First Quarter") icon="🌓" ;; + "Waxing Gibbous") icon="🌔" ;; + "Full") icon="🌕" ;; + "Waning Gibbous") icon="🌖" ;; + "Last Quarter") icon="🌗" ;; + "Waning Cresent") icon="🌘" ;; + *) echo errorrrr ;; +esac + +printf "%s %s\\n" "$icon" "$prcnt" |
