Mystery Man ha scritto:
# vertical function
v () {
for i in $(seq 1 $[TODAY-1]); do
TODAYC[$i]="\${offset 2}\${color $COLOROLD}"
done
TODAYC[$TODAY]="\${offset 2}\${color $COLORTODAY}"
for i in $(seq $[TODAY+1] $LASTDAY); do
TODAYC[$i]="\${offset 2}\${color $COLORREST}"
done
k=$FIRSTDAY
for j in $(seq $LASTDAY); do
echo "${COLOR[$[k-1]]}${DOW[$[k-1]]} ${TODAYC[$j]}$(printf "%02d" $j)\${color}\${voffset 15}"
Modifica il voffset, metti un 10 0 8 dovrebbe bastare.
da nubbo dopo aver scritto ho letto il .sh e era ovvio
sorry.. ancora un attimo e lo completo (good)
EDIT provato con queste eterne stringhe...
Codice: Seleziona tutto
${if_match ${time %d}<=1} ${image ~/.conky/day.png -p 4,16 -s 25x25} ${endif}
${if_match ${time %d}<=2} ${image ~/.conky/day.png -p 4,38 -s 25x25} ${endif}
${if_match ${time %d}<=3} ${image ~/.conky/day.png -p 4,60 -s 25x25} ${endif}
${if_match ${time %d}<=4} ${image ~/.conky/day.png -p 4,82 -s 25x25} ${endif}
${if_match ${time %d}<=5} ${image ~/.conky/day.png -p 4,104 -s 25x25} ${endif}
${if_match ${time %d}<=6} ${image ~/.conky/day.png -p 4,126 -s 25x25} ${endif}
${if_match ${time %d}<=7} ${image ~/.conky/day.png -p 4,148 -s 25x25} ${endif}
${if_match ${time %d}<=8} ${image ~/.conky/day.png -p 4,170 -s 25x25} ${endif}
${if_match ${time %d}<=9} ${image ~/.conky/day.png -p 4,192 -s 25x25} ${endif}
${if_match ${time %d}<=10} ${image ~/.conky/day.png -p 4,214 -s 25x25} ${endif}
${if_match ${time %d}<=11} ${image ~/.conky/day.png -p 4,236 -s 25x25} ${endif}
${if_match ${time %d}<=12} ${image ~/.conky/day.png -p 4,258 -s 25x25} ${endif}
${if_match ${time %d}<=13} ${image ~/.conky/day.png -p 4,280 -s 25x25} ${endif}
${if_match ${time %d}<=14} ${image ~/.conky/day.png -p 4,302 -s 25x25} ${endif}
${if_match ${time %d}<=15} ${image ~/.conky/day.png -p 4,324 -s 25x25} ${endif}
${if_match ${time %d}<=16} ${image ~/.conky/day.png -p 4,346 -s 25x25} ${endif}
${if_match ${time %d}<=17} ${image ~/.conky/day.png -p 4,378 -s 25x25} ${endif}
${if_match ${time %d}<=18} ${image ~/.conky/day.png -p 4,390 -s 25x25} ${endif}
${if_match ${time %d}<=19} ${image ~/.conky/day.png -p 4,412 -s 25x25} ${endif}
${if_match ${time %d}<=20} ${image ~/.conky/day.png -p 4,434 -s 25x25} ${endif}
${if_match ${time %d}<=21} ${image ~/.conky/day.png -p 4,456 -s 25x25} ${endif}
${if_match ${time %d}<=22} ${image ~/.conky/day.png -p 4,478 -s 25x25} ${endif}
${if_match ${time %d}<=23} ${image ~/.conky/day.png -p 4,500 -s 25x25} ${endif}
${if_match ${time %d}<=24} ${image ~/.conky/day.png -p 4,522 -s 25x25} ${endif}
${if_match ${time %d}<=25} ${image ~/.conky/day.png -p 4,544 -s 25x25} ${endif}
${if_match ${time %d}<=26} ${image ~/.conky/day.png -p 4,566 -s 25x25} ${endif}
${if_match ${time %d}<=27} ${image ~/.conky/day.png -p 4,588 -s 25x25} ${endif}
${if_match ${time %d}<=28} ${image ~/.conky/day.png -p 4,610 -s 25x25} ${endif}
${if_match ${time %d}<=29} ${image ~/.conky/day.png -p 4,632 -s 25x25} ${endif}
${if_match ${time %d}<=30} ${image ~/.conky/day.png -p 4,654 -s 25x25} ${endif}
${if_match ${time %d}<=31} ${image ~/.conky/day.png -p 4,676 -s 25x25} $else
ma xke se metto solo = al posto di <= mi na problemi del tipo
Codice: Seleziona tutto
Conky: failed to parse compare string '20=21'
Conky: compare failed for expression '20=21'
Conky: failed to parse compare string '20=21'
Conky: compare failed for expression '20=21'
con <= chiaramente mi evidenzia tutti quelli dopo in giorno in questione :'(