summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar
diff options
context:
space:
mode:
authorAdam M. Stück <adam@adast.xyz>2023-01-21 20:57:34 +0100
committerAdam M. Stück <adam@adast.xyz>2023-01-21 20:57:34 +0100
commitdf4ce12ed57c4921715c32175baa9f82d297c090 (patch)
tree327951be5e3bddb87c92e9c21eeb9af454b8daf1 /.local/bin/statusbar
parent31530a17c18580f87f2203a45bedc5e5f46ed59f (diff)
scripts: minor fix to statusbar forecast
Diffstat (limited to '.local/bin/statusbar')
-rwxr-xr-x.local/bin/statusbar/sb-forecast16
1 files changed, 8 insertions, 8 deletions
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 "$@"