diff options
Diffstat (limited to '.local/bin/status/sb-forecast')
-rwxr-xr-x | .local/bin/status/sb-forecast | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/status/sb-forecast b/.local/bin/status/sb-forecast index 49ef4f4..b022048 100755 --- a/.local/bin/status/sb-forecast +++ b/.local/bin/status/sb-forecast @@ -15,8 +15,8 @@ getweather() { printf "%s%s %s" \ "$(cat $weatherglyph)" \ "$(cat $moonglyph)" \ - "$(sed '16q;d' "$weatherreport" | grep -wo "[0-9]*%" | sort -rn | sed "s/^//g;1q" | tr -d '\n')" + "$(sed '16q;d' "$weatherreport" | grep -wo "[0-9]*%" | sort -rn | sed "s/^/ /g;1q" | tr -d '\n')" sed '13q;d' "$weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sed 's/+//g' | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | - awk '{print " " $1 "/" $2 "°C" moon}' + awk '{print " " $1 "/" $2 "°C" moon}' |