aboutsummaryrefslogtreecommitdiff
path: root/i3blocks/i3moon.sh
blob: fcb45dc5b2c5b7d74694a5de829d4f0009152349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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=🌘

case $BLOCK_BUTTON in
	1) dunstify "$moon $(pom) $moon";;
esac

echo "$moon"