From 926dd21c70686449db4bb3ef50c534bd16f40502 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Thu, 9 May 2019 11:30:33 +0200 Subject: Created moon.sh to show phase of moon. --- i3blocks/moon.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 i3blocks/moon.sh (limited to 'i3blocks') 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" + -- cgit v1.2.1