You are not logged in.

#1 2012-05-20 08:32:13

DasFox
Member
Registered: 2010-11-24
Posts: 107

Updated To Conky 1.9.0 - Now Calendar Is Off Centered

This is a conky config I'm using;

http://pastebin.com/8ihXGD8G

In 1.8.1 I didn't have any problems, so I'm at a loss to understand why the calendar  now appears out of place, here's a screen shot;

http://postimage.org/image/p3hzt9scn/full/

So for line 65 of the pastebin for the Calendar;

${offset 156}${execpi 300 DJS=`date +%_d`; cal | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed 's/^/ /' | sed /" $DJS "/s/" $DJS "/" "'${color red}'"$DJS"'${color}'" "/}

How can I fix it so the calendar is under the Month and the Year, 'May 2012'?

THANKS


12 Year Linux Vet, Don't Let The Post Count Fool Ya! But Sure I Don't Know Everything, Who Does? That's Why I Ask. smile

Offline

#2 2012-05-23 01:10:31

DasFox
Member
Registered: 2010-11-24
Posts: 107

Re: Updated To Conky 1.9.0 - Now Calendar Is Off Centered

Someone helped me with this;

${offset 156}${execpi 60 DJS=`date +%_d`; cal | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color red}'"$DJS"'$color'/ | sed ':a;N;$!ba;s/\n/\n${offset 156}/g'}

Does anyone know how to improve this without sed, is this the best way so far to do this?


THANKS

P.S. Maybe someone will reply this time... yikes

Last edited by DasFox (2012-05-23 01:11:38)


12 Year Linux Vet, Don't Let The Post Count Fool Ya! But Sure I Don't Know Everything, Who Does? That's Why I Ask. smile

Offline

Board footer

Powered by FluxBB