aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-10-15 20:35:37 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-10-15 20:35:37 +0200
commit0cb59b46e890a86e67133fdc561671fa5b371d6f (patch)
tree05765908a54b2eb455612d57cfc1043392946fd8 /i3blocks
parent2bc0f2bc63df6197ceed9df91bc687c3ffae2d41 (diff)
downloadscripts-0cb59b46e890a86e67133fdc561671fa5b371d6f.tar.gz
scripts-0cb59b46e890a86e67133fdc561671fa5b371d6f.zip
Added dunstifyID and changed some emojis on i3moon.sh.
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/i3moon.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/i3blocks/i3moon.sh b/i3blocks/i3moon.sh
index fcb45dc..e86c4ca 100755
--- a/i3blocks/i3moon.sh
+++ b/i3blocks/i3moon.sh
@@ -2,18 +2,19 @@
# Shows an emoji with the phase of the moon
-pom | grep -q "New Moon" && 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" && moon=🌕
+pom | grep -q "Full" && moon=🌝
pom | grep -q "Waning Gibbous" && moon=🌖
pom | grep -q "Last Quarter" && moon=🌗
pom | grep -q "Waning Crescent" && moon=🌘
+echo "$moon"
+
case $BLOCK_BUTTON in
- 1) dunstify "$moon $(pom) $moon";;
+ 1) dunstify -r "$(dunstifyIDs.sh "moon")" "$moon $(pom) $moon";;
esac
-echo "$moon"
-