You are not logged in.

#1 2009-07-05 13:06:14

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

Conky: outputing # symbol

Hi,

I use conky for dzen2 piping.

For setting colors, I need to output the "#" symbol.
But conky things, the symbol starts a comment.

Can i somehow make conky to output the symbol?

Thanks!
Nathanh

Offline

#2 2009-07-05 13:07:53

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Conky: outputing # symbol

Quote it?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2009-07-05 13:20:01

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

Re: Conky: outputing # symbol

Hi,

I am not sure, what you mean with "Quote it".
But if you mean this:

\#

or

"#"

both variants to not work sad

Offline

#4 2009-07-05 13:34:22

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Conky: outputing # symbol

As fair as I know conky doesn't allow comments after the TEXT part, it should print everything...


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#5 2009-07-05 13:44:13

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

Re: Conky: outputing # symbol

I read that too ...

what does this output on your systems:
background no
out_to_console yes
out_to_x no
update_interval 1.0
total_run_times 0

TEXT
#Hallo
Again Hallo

In my case, the output is just "Again Hallo"

Offline

#6 2009-07-05 15:12:12

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Conky: outputing # symbol

Using conky-cli with dzen2, if I use a single line output #Hallo Hallo then I see nothing in my dzen2 bar.  If I reverse the two and put Hallo#Hallo it all outputs fine.  As long as the # symbol isn't the first character, conky will output it to dzen2, in my case anyway.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#7 2009-07-05 15:15:11

arkham
Member
From: Stockholm
Registered: 2008-10-26
Posts: 516
Website

Re: Conky: outputing # symbol

LonelyStar wrote:

I read that too ...

what does this output on your systems:
background no
out_to_console yes
out_to_x no
update_interval 1.0
total_run_times 0

TEXT
#Hallo
Again Hallo

In my case, the output is just "Again Hallo"

FYI, using the normal conky my output is "Again Hallo" too.


"I'm Winston Wolfe. I solve problems."

~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~

Offline

#8 2009-07-05 16:08:58

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Conky: outputing # symbol

Using normal conky now--thanks again moljac024--and it definately ignores everything after a # sign now.

I use a long execi with echo to show the temp on my AMD cpu and so I thought i'd try using something like that.  It's a roundabout way to display the # sign but I tried it and it works.

${execi 5 echo "#"}

But there must be a simpler way to do this??? hmm


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#9 2009-07-06 12:17:15

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: Conky: outputing # symbol

Downgrade to 1.7.0. For me the functionality was broken in 1.7.1.


Cthulhu For President!

Offline

#10 2009-07-16 22:01:39

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Conky: outputing # symbol

psuedo-old thread, oh well.

i was annoyed by this as well... glad i found your hack, erm fix.  i submitted this as a bug to conky but they rejected it saying ppl need to put comments after TEXT.  who's putting comments after TEXT?

anyways, i use

TEXT
^fg(${execi 3600 echo "#909090"})Some light grey text^fg() Some normal text

and it works wonderfully in my dzen (though i suppose the interval could be as big as one wanted to save resources). 

again, thanks for the workaround big_smile.

Offline

#11 2009-07-19 07:55:26

Boris Bolgradov
Member
From: Bulgaria
Registered: 2008-07-27
Posts: 185

Re: Conky: outputing # symbol

http://conky.sourceforge.net/changelog.html
2009-05-09
Allow the use of '#' for comments within text area (can be escaped with '\#')

Doesn't work, though

Last edited by Boris Bolgradov (2009-07-19 07:58:30)

Offline

#12 2009-07-19 20:06:58

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Conky: outputing # symbol

someone just posted a patch that allows you to use \# as intended.  i just applied it, it's working great.

Offline

Board footer

Powered by FluxBB