summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-06-16 08:17:17 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-06-16 08:17:17 -0400
commitbeaa788dea2fef0b447f7c455dbb09f088fc464c (patch)
tree25da1d7bc6644e5c04674bd90462a46322abdc06 /.scripts
parentdcdf5ab970195428ecc7522602c484130d383d63 (diff)
downloadeibhear-beaa788dea2fef0b447f7c455dbb09f088fc464c.tar.gz
eibhear-beaa788dea2fef0b447f7c455dbb09f088fc464c.tar.zst
eibhear-beaa788dea2fef0b447f7c455dbb09f088fc464c.zip
weather module rain check fix
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/i3weather2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/i3weather b/.scripts/i3weather
index a2fef4e..cf135be 100755
--- a/.scripts/i3weather
+++ b/.scripts/i3weather
@@ -12,6 +12,6 @@ if [[ "$location" != "" ]]
fi
curl -s wttr.in/$location > ~/.weatherreport
-echo -n $(cat ~/.weatherreport | sed -n 16p | sed -e 's/[^m]*m//g' | grep -o "[0-9]*%" | sort -n | sed -e "$!d;s/^/☔ /")
+echo -n $(cat ~/.weatherreport | sed -n 16p | sed -e 's/[^m]*m//g' | grep -o "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/☔ /g")
cat ~/.weatherreport | sed -n 13p | sed -e 's/[^m]*m//g;s/[^0-9]/ /g;s/ /\n/g;/^s*$/d' | grep [0-9] | sort -n | sed -e 1b -e '$!d' | tr '\n' ' ' | awk '{print " ❄️",$1 "°","☀️",$2 "°"}'