Conky: if_match 95 > 'command output'

0

${if_match 95 >= execi 300 acpi -b|egrep -o '[0-9][0-9]'}
  ${exec mplayer -really-quiet /my/sda3/Sarah*&}
${endif} 

Any idea how to do this? I get: Conky: Bad arguments: '95 ' and ' execi 300 acpi -b|egrep -o '[0-9][0-9]''

user289814

Posted 2014-08-09T01:09:25.260

Reputation:

Answers

0

The following code should work for you:

${if_match "95" >= "${execi 300 acpi -b|egrep -o '[0-9][0-9]'}"}
  ${texeci 60 mplayer -really-quiet /my/sda3/Sarah*&}
${endif} 

At least on my system I must use ${texeci} (threaded), otherwise the conky window will only appear as a 1-pixel image, so it's important that mplayer does not only run as a separate job (& identifier), but also as separate thread in order not to interfere with conky.

syntaxerror

Posted 2014-08-09T01:09:25.260

Reputation: 505