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.31k stars 620 forks source link

[Bug]: "cpu" is not affected by "use_spacer = 'left'" #2078

Open Anakiev2 opened 1 week ago

Anakiev2 commented 1 week ago

What happened?

Hi. I think when use_spacer = 'left' is used cpu should have leading spaces:

  1%
 10%
100%

Like upspeed or downspeed or diskio_read ... This issue is not for the specified version. I know it for quite some time but now I've decided to report it. So far I've used if statements to fix it.

Actual behavior: 1 10 100

Version

conky 1.21.5-1

Which OS/distro are you seeing the problem on?

Arch Linux

Conky config

conky.config = {
    alignment = 'bottom_left',
    background = false,
    border_width = 0,
    double_buffer = true,
    draw_outline = false,
    font = 'DejaVuSansMono Nerd Font:size=10.5',
    minimum_height = 18,
    minimum_width = 500,
    out_to_console = false,
    out_to_x = true,
    own_window = true,
    own_window_type = 'desktop',
    update_interval = 1.0,
    use_xft = true,
    max_text_width = 0,
    short_units = true,
    if_up_strictness = 'address',
    use_spacer = 'left',
};

conky.text = [[
  ${cpu cpu1}% ${cpu cpu2}% |   ${time %d.%m.%Y} |   ${time %H:%M}
]];