Conky execpi parse problem

Everything about X, Gnome, KDE, ... and everything running on it

Conky execpi parse problem

Postby mk1d » 2015-09-11 00:26


I am having a hard time getting conky execp/execpi to correctly parse output of the scroll variable generated from shell or PHP scripts.

Can someone look at the configuration file and point me in the right direction?
Thanks in advance.

Code: Select all
Debian 8.0
Xfce 4.10
Conky 1.9.0-6

This is a simplified minimal conky configuration file used to show the same problem:
Code: Select all
alignment bottom_middle
background no
border_width 1
default_color white
default_outline_color white
default_shade_color white
double_buffer yes
draw_borders yes
draw_graph_borders yes
draw_outline no
draw_shades no
extra_newline no
maximum_width 460
minimum_size 5 5
no_buffers yes
out_to_console no
out_to_stderr no
own_window yes
own_window_class Conky
own_window_type override
own_window_transparent yes
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
use_xft yes
xftfont DejaVu Sans Mono:size=15

${execp printf "\${color yellow}\${scroll 10 5 abcdefghijklmnop}"ABC}
${execpi 10 printf "\${color green}\${scroll 10 5 abcdefghijklmnop}ABC"}
${execp printf "\${color yellow}\${scroll 25 5 abcdefghijklmnop}"ABC}
${execpi 10 printf "\${color green}\${scroll 25 5 abcdefghijklmnop}ABC"}
${color yellow}${scroll 10 5 abcdefghijklmnop}ABC

Here is the output I'm getting:
Code: Select all
          ABC       /*doesn't scroll, UNEXPECTED, shows 10 spaces before ABC*/
          ABC       --||--
abcdefghijklmnopABC /*doesn't scroll, WORKS AS EXPECTED as scroll length is 25 which is longer than text "abcdefghijklmnop" */
abcdefghijklmnopABC --||--
abcdefghijklmnopABC /*WORKS, everything before ABC scrolls 5 characters at a time*/
Posts: 10
Joined: 2015-05-20 03:45

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 6 guests