When “blinking” isn’t! (en)

From Conky PitStop

Revision as of 11:46, 13 March 2011 by Wlourf (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

When “blinking” isn’t!

 Language   English   Français   


When Blinking is NOT Blinking!

Something I discovered a long time ago was if I had a line like:

Up:$color ${upspeed eth0} k/s | Down:$color ${downspeed eth0} k/s

... that actually set the “width” of conkys display, it is NOT that conky is blinking, it’s because conky is “changing its width” and redrawing the new width to the screen. For example a line that produces the output:

Up: 47 k/s | Down: 238 ks

But when the Up – Down values changes to:

Up: 0 k/s | Down: 0 ks

you’ve lost 3 characters of width and conky redraws - narrower - causing what you think is flickering or blinking.

Try this “test”, it looks ugly, but if the “flickering” stops you know you have it.

TEXT
------------------------ <<-- increase until it makes your conky wider
${hr}
etc. etc.

If that stops it, then above TEXT add a setting:

maximum_width xxx
TEXT

where xxx creates a conky slightly wider then you have.

OR – change your line to display:

Up: 47 k/s
Down: 238 k/s
Up: ${upspeed eth0} k/s
Down: ${downspeed eth0} k/s

Have a nice day.
Bruce

EDIT: 6 Mar 2011 With newer versions of conky one can simply use:

minimum_size 250 0 ## width height
maximum_width 250  ## width only
Personal tools
Namespaces
Variants
Actions
Navigation
English
Français
Toolbox