dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit cb58970a092642970e6875e7d67ff3a7e3b9a09e
parent 0f5ab9d91d4bb270285374f8a320bcf6f43381dd
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Thu,  4 Oct 2018 18:10:45 -0400

weather sorting fix

Diffstat:
M.scripts/i3weather | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.scripts/i3weather b/.scripts/i3weather @@ -12,4 +12,4 @@ curl -s wttr.in/$location > ~/.weatherreport printf "%s" "$(sed '16q;d' ~/.weatherreport | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/☔ /g" | tr -d '\n')" -sed '13q;d' ~/.weatherreport | grep -o "m[0-9]\\+" | sort -n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ❄️",$1 "°","☀️",$2 "°"}' +sed '13q;d' ~/.weatherreport | grep -o "m\\(-\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ❄️",$1 "°","☀️",$2 "°"}'