<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Conky Calendar with Date Highlight</title>
	<atom:link href="http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/feed/" rel="self" type="application/rss+xml" />
	<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/</link>
	<description>If it ain&#039;t broke, fix it!</description>
	<lastBuildDate>Fri, 13 Jan 2012 05:43:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: sethjust</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-303</link>
		<dc:creator>sethjust</dc:creator>
		<pubDate>Fri, 13 Jan 2012 05:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-303</guid>
		<description>Thanks for the tip! I&#039;m glad that the code was useful!</description>
		<content:encoded><![CDATA[<p>Thanks for the tip! I&#8217;m glad that the code was useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SStookey</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-302</link>
		<dc:creator>SStookey</dc:creator>
		<pubDate>Fri, 13 Jan 2012 04:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-302</guid>
		<description>Hey guys... I know its been about a year since anybody has posted comments on this particular thread but i would like to add something that was giving me much headache over trying to get the date to highlight correctly in my version of Ubuntu 11.10.  Hopefully if someone else is wanting this on there desktop it will save them the headache.  Your guys code works wonderfully but instead of the day of the month being highlighted i would get this _[]  []_ around the date.  I soon realized that it was the block highlight from the cal command that was screwing everything up.  I used cal -h instead of cal to fix this problem.  It prints out just a standard calendar with no highlight.  The code that seth wrote and that others have modified takes care of the highlighting like it should.   LINUX_4_LIFE</description>
		<content:encoded><![CDATA[<p>Hey guys&#8230; I know its been about a year since anybody has posted comments on this particular thread but i would like to add something that was giving me much headache over trying to get the date to highlight correctly in my version of Ubuntu 11.10.  Hopefully if someone else is wanting this on there desktop it will save them the headache.  Your guys code works wonderfully but instead of the day of the month being highlighted i would get this _[]  []_ around the date.  I soon realized that it was the block highlight from the cal command that was screwing everything up.  I used cal -h instead of cal to fix this problem.  It prints out just a standard calendar with no highlight.  The code that seth wrote and that others have modified takes care of the highlighting like it should.   LINUX_4_LIFE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ernesto</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-219</link>
		<dc:creator>Ernesto</dc:creator>
		<pubDate>Sun, 06 Feb 2011 03:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-219</guid>
		<description>How about this one:
${color darkcyan}${voffset -2}${hr 1}
${color}${time %H:%Mh}${alignr}${time %m-%d-%y}
${voffset -16}${font :size=18}${color darkCyan}${alignc}${time %I:%M%P}${font}
${voffset 4}${color darkcyan}${alignc}${time %A  %B %d, %Y}
${font}${voffset -4}${color darkcyan}${hr 1}
${color}${font Bitstream Vera Sans Mono:bold:size=09}${execpi 150 cal -h &#124; grep -v b &#124; grep -v J &#124; grep -v Ma &#124; grep -v A &#124; sed  s/&quot; $(date +%e)&quot;/\$\{&quot;color tan1&quot;}\&amp;\$\{color}/ &#124; sed  s/&quot;$(date +%e) &quot;/\$\{&quot;color cyan&quot;}\&amp;\$\{color}/ &#124; sed  s/&quot;$(date +%a &#124; cut -c1-2)&quot;/\$\{&quot;color tan1&quot;}\&amp;\$\{color}/}</description>
		<content:encoded><![CDATA[<p>How about this one:<br />
${color darkcyan}${voffset -2}${hr 1}<br />
${color}${time %H:%Mh}${alignr}${time %m-%d-%y}<br />
${voffset -16}${font :size=18}${color darkCyan}${alignc}${time %I:%M%P}${font}<br />
${voffset 4}${color darkcyan}${alignc}${time %A  %B %d, %Y}<br />
${font}${voffset -4}${color darkcyan}${hr 1}<br />
${color}${font Bitstream Vera Sans Mono:bold:size=09}${execpi 150 cal -h | grep -v b | grep -v J | grep -v Ma | grep -v A | sed  s/&#8221; $(date +%e)&#8221;/\$\{&#8220;color tan1&#8243;}\&amp;\$\{color}/ | sed  s/&#8221;$(date +%e) &#8220;/\$\{&#8220;color cyan&#8221;}\&amp;\$\{color}/ | sed  s/&#8221;$(date +%a | cut -c1-2)&#8221;/\$\{&#8220;color tan1&#8243;}\&amp;\$\{color}/}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sethjust</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-182</link>
		<dc:creator>sethjust</dc:creator>
		<pubDate>Thu, 30 Dec 2010 17:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-182</guid>
		<description>Good spot -- I actually hadn&#039;t seen that because I&#039;m away from my Ubuntu box for the holidays. I&#039;ve updated the code in the post. Thanks!</description>
		<content:encoded><![CDATA[<p>Good spot &#8212; I actually hadn&#8217;t seen that because I&#8217;m away from my Ubuntu box for the holidays. I&#8217;ve updated the code in the post. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zacco</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-179</link>
		<dc:creator>Zacco</dc:creator>
		<pubDate>Tue, 28 Dec 2010 21:36:20 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-179</guid>
		<description>On 27th Dec, I realized that my modification was not at all perfect :) I guess you noticed it, too! Here&#039;s the fix:

${execpi 60 DJS=`date +%_d`; cal &#124; sed s/”\(^\&#124;[^0-9]\)$DJS”‘\b’/&#039;\1${color orange}’”$DJS”‘$color’/}

I.e. if the day appears in the first position in the calendar, it must be highlighted.</description>
		<content:encoded><![CDATA[<p>On 27th Dec, I realized that my modification was not at all perfect :) I guess you noticed it, too! Here&#8217;s the fix:</p>
<p>${execpi 60 DJS=`date +%_d`; cal | sed s/”\(^\|[^0-9]\)$DJS”‘\b’/&#8217;\1${color orange}’”$DJS”‘$color’/}</p>
<p>I.e. if the day appears in the first position in the calendar, it must be highlighted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sethjust</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-174</link>
		<dc:creator>sethjust</dc:creator>
		<pubDate>Sat, 25 Dec 2010 13:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-174</guid>
		<description>I haven&#039;t had a chance to check that out (I&#039;m away from my Ubuntu box for the next few weeks), but thanks for the tip! I don&#039;t use alignc anyway, but it&#039;s good to know!</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t had a chance to check that out (I&#8217;m away from my Ubuntu box for the next few weeks), but thanks for the tip! I don&#8217;t use alignc anyway, but it&#8217;s good to know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joeham</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-171</link>
		<dc:creator>joeham</dc:creator>
		<pubDate>Fri, 24 Dec 2010 17:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-171</guid>
		<description>The new 1.8.x conky breaks the old script.

They &quot;iixed&quot; alignc in the newer conky and the ${alignc} that is used on every new line in your script to parse the cal output is now longer needed.  I removed it and now the script works in newer rev of conky.  

Your script is quite popular and there are posts from people encountering this bug.  Most just recommend reverting to older conky versions.

I am hoping you make this available as a fix so people can continue using your conky calendar script.</description>
		<content:encoded><![CDATA[<p>The new 1.8.x conky breaks the old script.</p>
<p>They &#8220;iixed&#8221; alignc in the newer conky and the ${alignc} that is used on every new line in your script to parse the cal output is now longer needed.  I removed it and now the script works in newer rev of conky.  </p>
<p>Your script is quite popular and there are posts from people encountering this bug.  Most just recommend reverting to older conky versions.</p>
<p>I am hoping you make this available as a fix so people can continue using your conky calendar script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sethjust</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-157</link>
		<dc:creator>sethjust</dc:creator>
		<pubDate>Fri, 17 Dec 2010 06:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-157</guid>
		<description>I updated your post with the right code. That looks great to me, I&#039;ll be sure to use it if I ever free up some screen space ;)</description>
		<content:encoded><![CDATA[<p>I updated your post with the right code. That looks great to me, I&#8217;ll be sure to use it if I ever free up some screen space ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zacco</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-150</link>
		<dc:creator>Zacco</dc:creator>
		<pubDate>Sat, 11 Dec 2010 22:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-150</guid>
		<description>For some reason, my previous comment was altered after submission: your command to display the current month with today&#039;s highlighting should be placed in between the previous and next month (in the preceding comment) in order to get 3 months vertically.</description>
		<content:encoded><![CDATA[<p>For some reason, my previous comment was altered after submission: your command to display the current month with today&#8217;s highlighting should be placed in between the previous and next month (in the preceding comment) in order to get 3 months vertically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zacco</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-149</link>
		<dc:creator>Zacco</dc:creator>
		<pubDate>Sat, 11 Dec 2010 22:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-149</guid>
		<description>Hi,

You&#039;re welcome. As I was playing with this, I have found something that you may be interested in as well.
I wanted to have several month visible. As date prints 3 months in the same row, your solution would higlight the current day in each, which is clearly not what we want. But if we print the previous and next month separately before and after the current month (vertically), respectively, without applying the highlighting, the result is what I needed. Maybe others will find it useful, too.

&lt;code&gt;${execpi 60 YEAR=`date --date=&#039;1 month ago&#039; +%_Y`; MONTH=`date --date=&#039;1 month ago&#039; +%_m`; cal -m $MONTH $YEAR}

${execpi 60 DJS=`date +%_d`; cal &#124; sed s/”\([^0-9]\)$DJS”‘\b’/&#039;\1${color orange}’”$DJS”‘$color’/}

${execpi 60 YEAR=`date --date=&#039;next month&#039; +%_Y`; MONTH=`date --date=&#039;next month&#039; +%_m`; cal -m $MONTH $YEAR}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>You&#8217;re welcome. As I was playing with this, I have found something that you may be interested in as well.<br />
I wanted to have several month visible. As date prints 3 months in the same row, your solution would higlight the current day in each, which is clearly not what we want. But if we print the previous and next month separately before and after the current month (vertically), respectively, without applying the highlighting, the result is what I needed. Maybe others will find it useful, too.</p>
<p><code>${execpi 60 YEAR=`date --date='1 month ago' +%_Y`; MONTH=`date --date='1 month ago' +%_m`; cal -m $MONTH $YEAR}</p>
<p>${execpi 60 DJS=`date +%_d`; cal | sed s/”\([^0-9]\)$DJS”‘\b’/'\1${color orange}’”$DJS”‘$color’/}</p>
<p>${execpi 60 YEAR=`date --date='next month' +%_Y`; MONTH=`date --date='next month' +%_m`; cal -m $MONTH $YEAR}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sethjust</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-147</link>
		<dc:creator>sethjust</dc:creator>
		<pubDate>Fri, 10 Dec 2010 21:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-147</guid>
		<description>Thanks for the fix! I&#039;ve put your fixed version in my .conkyrc now.</description>
		<content:encoded><![CDATA[<p>Thanks for the fix! I&#8217;ve put your fixed version in my .conkyrc now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zacco</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-146</link>
		<dc:creator>Zacco</dc:creator>
		<pubDate>Fri, 10 Dec 2010 21:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-146</guid>
		<description>Thanks for this compact solution! There is a little problem with it however: depending on the location of the days, the year may also be coloured. E.g. today is 2010.12.10 and both the 10 in 2010 and 10 amongst the days are coloured. There is a relatively easy fix to that however: we do not colour if the match is preceded by a number:

${execpi 60 DJS=`date +%_d`; cal &#124; sed s/&quot;\([^0-9]\)$DJS&quot;&#039;\b&#039;/&#039;\1${color orange}&#039;&quot;$DJS&quot;&#039;$color&#039;/}</description>
		<content:encoded><![CDATA[<p>Thanks for this compact solution! There is a little problem with it however: depending on the location of the days, the year may also be coloured. E.g. today is 2010.12.10 and both the 10 in 2010 and 10 amongst the days are coloured. There is a relatively easy fix to that however: we do not colour if the match is preceded by a number:</p>
<p>${execpi 60 DJS=`date +%_d`; cal | sed s/&#8221;\([^0-9]\)$DJS&#8221;&#8216;\b&#8217;/'\1${color orange}&#8217;&#8221;$DJS&#8221;&#8216;$color&#8217;/}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sethjust</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-107</link>
		<dc:creator>sethjust</dc:creator>
		<pubDate>Sun, 24 Oct 2010 21:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-107</guid>
		<description>There seems to be some problem with the quotes in his code, probably caused by posting to the web, then copy-pasting into a script. If I get a chance to hack through it I&#039;ll post a fixed version, otherwise I think that the quotes just need to be jiggled to match properly.</description>
		<content:encoded><![CDATA[<p>There seems to be some problem with the quotes in his code, probably caused by posting to the web, then copy-pasting into a script. If I get a chance to hack through it I&#8217;ll post a fixed version, otherwise I think that the quotes just need to be jiggled to match properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-106</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Mon, 30 Aug 2010 20:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-106</guid>
		<description>When using Erik&#039;s modified code, I get an error and no calendar...

&quot;sh: Syntax error: Unterminated quoted string&quot;  any ideas?</description>
		<content:encoded><![CDATA[<p>When using Erik&#8217;s modified code, I get an error and no calendar&#8230;</p>
<p>&#8220;sh: Syntax error: Unterminated quoted string&#8221;  any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sethjust</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-99</link>
		<dc:creator>sethjust</dc:creator>
		<pubDate>Tue, 29 Jun 2010 21:39:34 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-99</guid>
		<description>First, because I have no knowledge of Lua or using it with conky. Second, because I figured it out without Lua - using the command line works perfectly well.</description>
		<content:encoded><![CDATA[<p>First, because I have no knowledge of Lua or using it with conky. Second, because I figured it out without Lua &#8211; using the command line works perfectly well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramzport</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-98</link>
		<dc:creator>ramzport</dc:creator>
		<pubDate>Tue, 29 Jun 2010 19:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-98</guid>
		<description>Why not use Lua?</description>
		<content:encoded><![CDATA[<p>Why not use Lua?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sethjust</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-83</link>
		<dc:creator>sethjust</dc:creator>
		<pubDate>Mon, 26 Apr 2010 16:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-83</guid>
		<description>Very nice. I have my conky hug the left side of my screen, so I prefer the calendar left-aligned, but good job on getting the alignment to work. It looks like you&#039;re using sed to insert an ${alignc} at the beginning of each line. Awesome.</description>
		<content:encoded><![CDATA[<p>Very nice. I have my conky hug the left side of my screen, so I prefer the calendar left-aligned, but good job on getting the alignment to work. It looks like you&#8217;re using sed to insert an ${alignc} at the beginning of each line. Awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik</title>
		<link>http://sethjust.com/2009/08/03/a-useful-calendar-in-conky/comment-page-1/#comment-82</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Mon, 26 Apr 2010 15:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://sethjust.com/?p=114#comment-82</guid>
		<description>Thanks for the conky calendar line, works great.
I did make one slight modification to the main line to get the calendar to center in the conky space it was in. I piped it through sed again to replace the beginning of each line with ${alignc}(For some reason it didn&#039;t work if you placed the ${alignc} at the beginning of the conky config line. It would only align the first line.) Anyways, thought you might like to see it so here it is. Thanks again... -Erik

${font DejaVu Sans Mono :size=8}${execpi 60 DJS=`date +%_d`; cal &#124; sed s/&quot;$DJS&quot;&#039;\b&#039;/&#039;${color orange}&#039;&quot;$DJS&quot;&#039;$color&#039;/ &#124; sed s/^/&#039;${alignc}&#039;/}</description>
		<content:encoded><![CDATA[<p>Thanks for the conky calendar line, works great.<br />
I did make one slight modification to the main line to get the calendar to center in the conky space it was in. I piped it through sed again to replace the beginning of each line with ${alignc}(For some reason it didn&#8217;t work if you placed the ${alignc} at the beginning of the conky config line. It would only align the first line.) Anyways, thought you might like to see it so here it is. Thanks again&#8230; -Erik</p>
<p>${font DejaVu Sans Mono :size=8}${execpi 60 DJS=`date +%_d`; cal | sed s/&#8221;$DJS&#8221;&#8216;\b&#8217;/'${color orange}&#8217;&#8221;$DJS&#8221;&#8216;$color&#8217;/ | sed s/^/&#8217;${alignc}&#8217;/}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

