You are not logged in.
Hello
@ marens great job as well, but don't work by me , i have wind direction in french , if i rest in english that work great .
in french i have du , d' instead of from
du Sud-ouest
d'Est@+
Last edited by loutch (Today 10:13:16)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
^ Do the same as me.
wd=$(sed -n '10p' $HOME/time_and_date_conky_script/now | sed 's/do //' | sed 's/Sud/S/' | sed 's/sud/S/' | sed 's/Ouest/W/' | sed 's/ouest/W/' | sed 's/d'Est/E/' | sed 's/d'est/E/' | sed 's/Nord/N/' | sed 's/nord/N/' |....| sed 's/-//' | sed 's/$/.png/')You need to check all possible combinations in French and replace them with E, W, N or S using the sed command.
Just add to the unfinished line above.
If people would know how little brain is ruling the world, they would die of fear.
Offline