brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.17k stars 615 forks source link

Blanks at the end of the output of ${top name X} #902

Closed jerigondor78 closed 1 year ago

jerigondor78 commented 4 years ago

Issue With ${top name X}, the output string have some blanks at the end. For example, if you write ${top name 1}${top name 1}${top name 1} you have: conky conky conky But I think it should show: conkyconkyconky

It's a problem when you want to aling the output to the right.

Information

Debian 10 buster. Xfce 4.12 conky 1.10.8

lasers commented 4 years ago

Process names vary. It's hard to keep things organized. See default config for an example. https://github.com/brndnmtthws/conky/blob/26d23cb70718956493df7d3102dc3000f0f56685/data/conky.conf#L80-L85

Maybe something like https://github.com/brndnmtthws/conky/issues/780 would be nice along with text alignment option. I dunno.

philer commented 4 years ago

edit: I've since noticed that the particular issue I'm describing in this comment is no longer relevant in up-to-date conky. I took my screenshot in conky 1.10. Sorry for not paying attention to that.


I don't know if this is related but it looks like a similar issue applies to $downspeed and $totaldown:

${alignr 10}${downspeed enp0s31f6}
${alignr 10}${totaldown enp0s31f6}

2019-11-05-121841_crop The misalignment only happens while the units are different. When the downspeed goes up to KiB/MiB/GiB the strings become aligned.

Edit: Looks like there is a lot of pseudo alignment happening using spaces, for instance in the human_readable function. I don't know if there's any chance of changing this now but considering spaces don't even have a reliable width in non-monospace fonts that seems like a poor choice for many use cases. Would be nice to have a setting that globally disables space padding.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 30 days with no activity.