diff options
-rwxr-xr-x | i3blocks/moon.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/i3blocks/moon.sh b/i3blocks/moon.sh new file mode 100755 index 0000000..a0312f3 --- /dev/null +++ b/i3blocks/moon.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# Shows an emoji with the phase of the moon + +pom | grep -q "New Moon" && moon=🌑 +pom | grep -q "Waxing Crescent" && moon=🌒 +pom | grep -q "First Quarter" && moon=🌓 +pom | grep -q "Waxing Gibbous" && moon=🌔 +pom | grep -q "Full moon" && moon=🌕 +pom | grep -q "Waning Gibbous" && moon=🌖 +pom | grep -q "Last Quarter" && moon=🌗 +pom | grep -q "Waning Crescent" && moon=🌘 +echo "$moon" + |