diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-10-29 19:51:58 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-10-29 19:51:58 +0100 |
commit | 38110ef852373765de0c738aa54587b9ee640389 (patch) | |
tree | ddab8ea8b2338235b969d90665d1cd3fcc668cae /i3blocks/i3moon.sh | |
parent | 756f1c152ef3ca8f34a6f419b19b3ac254a5ada2 (diff) | |
download | scripts-38110ef852373765de0c738aa54587b9ee640389.tar.gz scripts-38110ef852373765de0c738aa54587b9ee640389.zip |
Random changes.
Diffstat (limited to 'i3blocks/i3moon.sh')
-rwxr-xr-x | i3blocks/i3moon.sh | 16 |
1 files changed, 8 insertions, 8 deletions
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" |