diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2021-03-07 15:07:04 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2021-03-07 15:07:04 -0500 |
| commit | 756ac03961513d1baa6d2673fa26ecf2c87f9c6b (patch) | |
| tree | 670580f704516a84c1801f443a6e3b96e251c94d /.local | |
| parent | 73b174cedf7ed2046b40b74c82400004898d48b4 (diff) | |
| parent | 6bbaa969033b6e4d5ae7a18fde754f7323c7e4cb (diff) | |
| download | eibhear-756ac03961513d1baa6d2673fa26ecf2c87f9c6b.tar.gz eibhear-756ac03961513d1baa6d2673fa26ecf2c87f9c6b.tar.zst eibhear-756ac03961513d1baa6d2673fa26ecf2c87f9c6b.zip | |
Merge branch 'narukeh-master'
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/statusbar/sb-forecast | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast index 6652edd..7b8416e 100755 --- a/.local/bin/statusbar/sb-forecast +++ b/.local/bin/statusbar/sb-forecast @@ -14,7 +14,7 @@ getforecast() { curl -sf "wttr.in/$LOCATION" > "$weatherreport" || exit 1 ;} # display them with coresponding emojis. showweather() { printf "%s" "$(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]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " 🥶" $1 "°","🌞" $2 "°"}' ;} +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 "°"}' ;} case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e less -Srf "$weatherreport" ;; |
