brndnmtthws/conky

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

Open

#2 078 ouverte le 14 nov. 2024

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)C++ (604 forks)batch import
bugcpugood first issuetext

Métriques du dépôt

Stars
 (6 472 stars)
Métriques de merge PR
 (Merge moyen 17j 10h) (18 PRs mergées en 30 j)

Description

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}
]];

Guide contributeur