From 38110ef852373765de0c738aa54587b9ee640389 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Tue, 29 Oct 2019 19:51:58 +0100 Subject: Random changes. --- i3blocks/i3moon.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'i3blocks/i3moon.sh') diff --git a/i3blocks/i3moon.sh b/i3blocks/i3moon.sh index e86c4ca..d691e8d 100755 --- a/i3blocks/i3moon.sh +++ b/i3blocks/i3moon.sh @@ -3,14 +3,14 @@ # Shows an emoji with the phase of the moon [ ! -f "/bin/pom" ] && echo "🌜 bsd-games not installed. 🌛" && exit 0 -pom | grep -q "New" && moon=🌚 -pom | grep -q "Waxing Crescent" && moon=🌒 -pom | grep -q "First Quarter" && moon=🌓 -pom | grep -q "Waxing Gibbous" && moon=🌔 -pom | grep -q "Full" && moon=🌝 -pom | grep -q "Waning Gibbous" && moon=🌖 -pom | grep -q "Last Quarter" && moon=🌗 -pom | grep -q "Waning Crescent" && moon=🌘 +pom | fgrep -q "New" && moon=🌚 +pom | fgrep -q "Waxing Crescent" && moon=🌒 +pom | fgrep -q "First Quarter" && moon=🌓 +pom | fgrep -q "Waxing Gibbous" && moon=🌔 +pom | fgrep -q "is Full" && moon=🌝 +pom | fgrep -q "Waning Gibbous" && moon=🌖 +pom | fgrep -q "Last Quarter" && moon=🌗 +pom | fgrep -q "Waning Crescent" && moon=🌘 echo "$moon" -- cgit v1.2.1