You are not logged in.

#1 2015-02-19 10:02:10

pstree
Member
From: Paris, France
Registered: 2013-02-24
Posts: 37

conky doesn't evaluate string

Hi,
I use conky as a bar on the top of my desktop and I wanted to emulate the "workspace indicator" of awesome so I tried this :

Openbox config :

[...]
<desktops>
	<number>4</number>
	<firstdesk>1</firstdesk>
	<names>
		<name>${color1}home${color} web code misc</name>
		<name>home ${color1}web${color} code misc</name>
		<name>home web ${color1}code${color} misc</name>
		<name>home web code ${color1}misc${color}</name>
	</names>
	<popupTime>0</popupTime>
</desktops>
[...]

Conky config :

[...]
${eval $desktop_name}
[...]

According to the conky manual it should parse the string and show a colored output but it doesn't work and I can't figure out why.
Any help ?


: (){ : |:& };:

Offline

#2 2015-02-19 12:22:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: conky doesn't evaluate string

How often does that refresh in conky?  When is conky started relative to the WM?  This is likely the same as this solved problem:
https://bbs.archlinux.org/viewtopic.php?id=116896


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-02-19 12:31:00

pstree
Member
From: Paris, France
Registered: 2013-02-24
Posts: 37

Re: conky doesn't evaluate string

I set the update interval to half a second, and conky is started from the openbox autostart file. The $desktop_name variable works fine and prints the name but eval doesn't parse it as it should so it looks like this :

${color1}home${color} web code misc

: (){ : |:& };:

Offline

Board footer

Powered by FluxBB