zagortenay333 / conky_themes

A small collection of conky configs
629 stars 94 forks source link

Adding another if_existing /proc/net/route breaks weather images #2

Closed zoof closed 9 years ago

zoof commented 9 years ago

When I modified the .conkrc to add another if/else clause (for whatever reason, my ethernet interface is enp0s20), the weather images broke. But if I simply edit one of the existing if/else clauses, everything works fine.

zagortenay333 commented 9 years ago

Mind posting the conkyrc on pastebin?

zagortenay333 commented 9 years ago

Btw, if all you need is a different network name, then you can just modify an existing one rather than adding new if/else statements.

zoof commented 9 years ago

Sure -- it's at: http://pastebin.com/adkaNfhk

Yes, that's what I did when I found the weather images broken.

zagortenay333 commented 9 years ago

Oh now I see. You need to be careful there.

Notice the voffsets at lines 179, 175, 170, 165, 160 etc...? Each time you add that section, you add 1 new line to the conky (conky renders empty lines) which is about 13px tall with that font. You need to adjust the voffset for every section you add; instead of 311, your voffset should be (344 + 13).

Also, you forgot to add a ${if_existing /proc/net/route enp0s1}

zoof commented 9 years ago

Ah, I see. Many thanks!

zagortenay333 commented 9 years ago

Np!