You are not logged in.

#1 2010-07-13 22:46:48

robrene
Member
Registered: 2009-04-16
Posts: 168

[solved] Problem with my conky calendar (being cut off)

My TEXT consists of one line to show the calendar. What I want is for the calendar to show much as in the first screenshot, but with the current day written in red.

Simple calendar
negG0.png

${alignc}${exec cal -m -3}

Calendar with highlighting code
kRRJ0.png

${alignc}${exec cal -m -3 | sed -e 's/'`date | awk '{print $3}'`'/\$\{color c73737}'`date | awk '{print $3}'`'\$\{color}/2'}

As you can see, the code works, I just need to let it somehow parse the ${color} tags. According to the conky docs, that is done by using execp instead of plain exec


Calendar with highlighting code and using execp
Mj5QN.png

${alignc}${execp cal -m -3 | sed -e 's/'`date | awk '{print $3}'`'/\$\{color c73737}'`date | awk '{print $3}'`'\$\{color}/2'}

However, this does weird things to the output as you can see. What am I doing wrong?


Also, if someone would know a way to get rid of those ugly square newline characters, much obliged

Last edited by robrene (2010-07-21 22:28:25)


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

#2 2010-07-14 17:43:36

daneel971
Member
Registered: 2008-03-28
Posts: 197

Re: [solved] Problem with my conky calendar (being cut off)

try:

text_buffer_size 8196

Offline

#3 2010-07-21 21:15:34

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: [solved] Problem with my conky calendar (being cut off)

hey there.
I was having the same trouble (but with pal - another cool calendar app)
the default conky buffer size if 256 bytes,
I just set for the double, 512

text_buffer_size 512

solved my case

@daneel971 : thank you!


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

#4 2010-07-21 22:28:06

robrene
Member
Registered: 2009-04-16
Posts: 168

Re: [solved] Problem with my conky calendar (being cut off)

Yep, it solved it for me too smile


smile neutral sad big_smile yikes wink hmm tongue lol mad roll cool

Offline

Board footer

Powered by FluxBB