Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have conky the record:

${color lightblue} Down: ${downspeed wlan0} Up: ${upspeed wlan0}

Conky prints link speed, but the text moves:

Down: OB  Up: OB 
Down: 60B  Up: 60B
Down: 148B  Up: 148B
Down: 1KiB  Up: 1KiB
Down: 1.8KiB  Up: 1.8KiB
Down: 1.08KiB  Up: 1.08KiB
Down: 31.8KiB  Up: 31.8KiB

Based on this topic Creating Conky text variables with zero padding? I tried to format the output, but the text still moves.

${color lightblue} Down: ${lua_parse format %7s ${downspeed wlan0}} Up: ${lua_parse format %7s ${upspeed wlan0}}

I want the printed output conky:

Down:      0B  Up:      0B
Down:     60B  Up:     60B
Down:    148B  Up:    148B
Down:    1KiB  Up:    1KiB
Down:  1.8KiB  Up:  1.8KiB
Down: 1.08KiB  Up: 1.08KiB
Down: 31.8KiB  Up: 31.8KiB
share|improve this question

1 Answer 1

Have you tried using goto as referenced here : http://conky.sourceforge.net/variables.html

You could do something like:

${color lightblue} Down: ${lua_parse format %7s ${downspeed wlan0}}${goto 100} Up: ${lua_parse format %7s ${upspeed wlan0}}

and just change the ${goto 100} to a number that better matches your formatting.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.