LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 05-05-2013, 05:38 PM   #1
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Slackware
Posts: 1,134
Blog Entries: 4

Rep: Reputation: 280Reputation: 280Reputation: 280
Conky calendar displays extra (unwanted) symbols.


After up-grading Debian to Wheezy, I had two problems with Conky. One problem was Conky had lost transparency. A quick search of the board turned up a solution. It was a simple procedure of adding one line to conky.conf that is not in the Debian version. That line was not needed in Squeeze though, so the cause would appear to be a tweak in Wheezy, and is probably related to the second problem, which I cannot figure out.

My Conky calendar is a simple set-up. White with black shading, except the current day, which is highlighted in a different colour. After up-grading, the colour had disappeared and "_ _" now precedes the current day, pushing the days after it in its week to the right.
Code:
$color ${font nimbus mono L:size=12}${execpi 60 DJS=`date +%_d`;  cal | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color blue}'"$DJS"'$color'/}
Using a suggestion on the Debian forum to change "date +%_d" to "date +%-d" solved half the problem. The colour has returned to the highlighted day, but the "_ _" remains.

Using the calendar was a copy and paste job. I have no idea how to interpret the esoteric symbols, other than how to change the colours. So I have no idea what tiny syntax change is necessary to overcome whatever tweaking Debian developers did. Any other modifications I attempt result in loss of the display.

Additional background:
I installed Squeeze on a new 64-bit computer and up-graded to Wheezy a few days ago. I installed Conky after the up-grade, but the conky.conf worked perfectly on the old 32-bit machine.
 
Old 05-06-2013, 05:31 PM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Sitting in front of my computer.
Distribution: Slackware
Posts: 1,134
Blog Entries: 4

Original Poster
Rep: Reputation: 280Reputation: 280Reputation: 280
I received a solution on the Debian forum. Changing cal to cal -h fixed the problem. I do not know why this problem cropped up, but there is the solution if anyone else runs into this difficulty.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Lua with Conky gives unwanted background color Foxblood Linux - Desktop 2 04-28-2013 09:10 AM
Evolution calendar displays wrong time for appointments Jlove130 Linux - Desktop 4 04-25-2013 09:47 AM
Removing extra unwanted spaces anshaa Linux - Newbie 2 08-22-2012 09:34 AM
displaying part of the Calendar in conky lothario Linux - Software 0 08-28-2011 02:46 AM
Text document displays only symbols NightSky Linux - Newbie 6 12-08-2010 09:13 PM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration