LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 06:38 PM   #1
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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, 06:31 PM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711

Original Poster
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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 10:10 AM
Evolution calendar displays wrong time for appointments Jlove130 Linux - Desktop 4 04-25-2013 10:47 AM
Removing extra unwanted spaces anshaa Linux - Newbie 2 08-22-2012 10:34 AM
displaying part of the Calendar in conky lothario Linux - Software 0 08-28-2011 03:46 AM
Text document displays only symbols NightSky Linux - Newbie 6 12-08-2010 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration