I am working with a weather conky, and the return from the weather site api comes in lowercase. I have a script to format provided text - in this case the variable "wetter[1]" - into all words first letter capitolized.
Unfortunately what works in a terminal doesnt work in conky, I'm sure I did something wrong. Can anyone help?
Original code:
Code: Select all
write_text(cr, 20,20,wetter[1], {align="l", size=12, bold=true, color="0xff0000"})
Code: Select all
write_text(cr, 20,20,{execi 60 echo wetter[1] | awk '{for(i=1;i<=NF;i++){$i=toupper(substr($i,1,1)) tolower(substr($i,2))}}'
, {align="l", size=12, bold=true, color="0xff0000"})