summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar
diff options
context:
space:
mode:
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 "$@"