aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-05-09 11:30:33 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-05-09 11:30:33 +0200
commit926dd21c70686449db4bb3ef50c534bd16f40502 (patch)
tree32002cb64afc015d1f2c83d33646348fe2ee311f /i3blocks
parent95ae8caba4648290ec81058aed4104082421cdb5 (diff)
downloadscripts-926dd21c70686449db4bb3ef50c534bd16f40502.tar.gz
scripts-926dd21c70686449db4bb3ef50c534bd16f40502.zip
Created moon.sh to show phase of moon.
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/moon.sh14
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"
+