You are not logged in.

#1 2009-08-03 13:40:02

jiyunatori
Member
Registered: 2008-07-04
Posts: 54

conky + dzen2 : the "#" character

Hi.

I'm trying to pipe some conky-generated text into dzen2. I took some code from this post.

background    no
out_to_x    no
out_to_console     yes
update_interval 1.0

TEXT

^r(2x10)^fg(#B64403)^r(2x10) mem: $memperc% ^r(2x10)^fg(#435493)^r(2x10) root: $fs_free_perc% ^r(2x10)^fg(#B64403)^r(2x10) $cpu%/${acpitemp}C ^r(2x10)^fg(#435493)^r(2x10) ${time %d-%m-%y %H:%M} ^r(2x10)^fg(#B64403)^r(2x10)

but then :

$ conky -c conkyrc 
^r(2x10)^fg(
^r(2x10)^fg(

Obviously the "#" character is interpreted as the start of a comment. As I've seen many examples here using conky-cli I tried it, but it didn't work either. Finally, I couldn't find a way to escape this comment character.

Anyone knows how to solve this problem ?

Offline

#2 2009-08-03 13:49:52

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: conky + dzen2 : the "#" character

Strange. What version of Conky are you using? Post the output of conky --version.

Offline

#3 2009-08-03 13:59:53

jiyunatori
Member
Registered: 2008-07-04
Posts: 54

Re: conky + dzen2 : the "#" character

Conky 1.7.1.1 compiled Sun Jul  5 20:06:45 PDT 2009 for Linux 2.6.30-ARCH (x86_64)

Compiled in features:

System config file: /etc/conky/conky.conf

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft

 Music detection:
  * MPD
  * MOC

 General:
  * math
  * hddtemp
  * portmon
  * RSS
  * wireless
  * support for IBM/Lenovo notebooks
  * config-output
  * Imlib2
  * ALSA mixer support
  * apcupsd
pacman -Qo /usr/bin/conky 
/usr/bin/conky is owned by conky 1.7.1.1-2

Offline

#4 2009-08-03 14:09:56

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: conky + dzen2 : the "#" character

It seems to be a problem wiht conky 1.7. I just upgraded conky-cli to 1.7 and now I have the problem

So change the pkgbuild for conky-cli to 1.6 and everything should work fine.

Offline

#5 2009-08-03 14:22:12

nikki
Member
Registered: 2008-11-10
Posts: 12

Re: conky + dzen2 : the "#" character

Offline

#6 2009-08-03 14:29:39

jiyunatori
Member
Registered: 2008-07-04
Posts: 54

Re: conky + dzen2 : the "#" character

I tried to install conky-new 1.7.2_rc2-1 and it looks like the next version is offering the same behaviour ...

Offline

#7 2009-10-08 17:02:37

ggalliosha
Member
Registered: 2009-10-08
Posts: 1

Re: conky + dzen2 : the "#" character

Since 1.7 version, commentin' in TEXT section with # charcter enabled. the solution will be in adiing \ (backslash charcter) before #.

Offline

Board footer

Powered by FluxBB