Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1527  / 1 Year ago, sun, january 1, 2023, 12:44:58

I'm trying to do something with ${eval} in Conky, but I'm having problems even with a minimal example:



${eval ${exec echo '${font DejaVu Sans Mono :size=6}hey!'}}



As far as I understand, I would believe that I should see the string "hey!" printed with the 'DejaVu Sans Mono' font, but instead I'm getting this as output:



${font DejaVu Sans Mono :size=6}hey!



I want to be able to execute something as I would in the terminal, and then parse that as a Conky statement. Isn't the whole idea of $eval to parse that string again? If so, am I doing something wrong, am I misunderstanding how it works, or is that a bug in $eval?


More From » conky

 Answers
7

I don't know what's wrong with ${eval} and nobody in the Conky's chat was able to explain it to me, but they suggested using ${execpi} and it did exactly what I wanted :)


[#44358] Monday, January 2, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
izeeas

Total Points: 412
Total Questions: 105
Total Answers: 118

Location: Trinidad and Tobago
Member since Fri, May 8, 2020
4 Years ago
;