pgrep junk removed and minor script changes
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Shows the current moon phase. Requires `pom-perl`.
|
||||
|
||||
mnphs=$(pom $1 | grep -o 'New\|Waxing Crescent\|First Quarter\|Waxing Gibbous\|Full\|Waning Gibbous\|Last Quarter\|Waning Crescent' | grep -m1 '.')
|
||||
prcnt=$(pom $1 | grep -o '[[:digit:]]*%' | grep -o '[[:digit:]]*' )
|
||||
case "$mnphs" in
|
||||
@@ -17,7 +19,7 @@ esac
|
||||
case $BLOCK_BUTTON in
|
||||
1) $mnphs ;;
|
||||
2) $mnphs ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send " 🌜$(pom)" ;;
|
||||
3) notify-send " 🌜$(pom)" ;;
|
||||
esac
|
||||
|
||||
echo "$icon" "$prcnt"%
|
||||
|
||||
Reference in New Issue
Block a user