Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Conky execpi parse problem

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
mk1d
Posts: 10
Joined: 2015-05-20 03:45

Conky execpi parse problem

#1 Post by mk1d »

Hi,

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


TEXT
${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:
Image

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*/

Post Reply