From df4ce12ed57c4921715c32175baa9f82d297c090 Mon Sep 17 00:00:00 2001 From: "Adam M. Stück" Date: Sat, 21 Jan 2023 20:57:34 +0100 Subject: scripts: minor fix to statusbar forecast --- .local/bin/statusbar/sb-forecast | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to '.local/bin/statusbar/sb-forecast') diff --git a/.local/bin/statusbar/sb-forecast b/.local/bin/statusbar/sb-forecast index dd997c8..c9923fd 100755 --- a/.local/bin/statusbar/sb-forecast +++ b/.local/bin/statusbar/sb-forecast @@ -20,30 +20,30 @@ condition_icon () { icon=$(echo "$1" | cut -d\ -f1) case "$icon" in - 'mm') echo  ;; '=') echo  ;; + '/') echo  ;; + '.') echo  ;; + 'm') echo  ;; + 'o') echo  ;; + 'mmm') echo  ;; + 'mm') echo  ;; '///') echo  ;; '//') echo  ;; '**') echo  ;; + '*') echo  ;; '*/*') echo  ;; - '/') echo  ;; - '.') echo  ;; 'x') echo  ;; 'x/') echo  ;; - '*') echo  ;; '*/') echo  ;; - 'm') echo  ;; - 'o') echo  ;; '/!/') echo  ;; '!/') echo  ;; '*!*') echo  ;; - 'mmm') echo  ;; *) echo ? ;; esac } temperature () { - echo "$1" | cut -d\ -f2 | sed 's/+//' | sed 's/C//' + echo "$1" | cut -d\ -f2 | sed -e 's/+//' -e 's/-0/0/' -e 's/C//' } main "$@" -- cgit v1.2.3-70-g09d2