Added another filter to name the CPU properly

This commit is contained in:
mgrotke 2025-01-29 00:14:19 -05:00
parent 9238875364
commit 02b71f33fe

View file

@ -13,6 +13,7 @@ function conky_shorten_cpu_name(cpu_name)
:gsub("CPU", "") -- Remove "CPU" :gsub("CPU", "") -- Remove "CPU"
:gsub("Processor", "") -- Remove "Processor" :gsub("Processor", "") -- Remove "Processor"
:gsub("@[%s%w%.]+", "") -- Remove "@ XGHz" :gsub("@[%s%w%.]+", "") -- Remove "@ XGHz"
:gsub("with.*", "") -- Remove "with" and anything after the word "with"
:gsub("%s%s+", " ") -- Remove extra spaces :gsub("%s%s+", " ") -- Remove extra spaces
:gsub("^%s+", "") -- Trim leading spaces :gsub("^%s+", "") -- Trim leading spaces
:gsub("%s+$", "") -- Trim trailing spaces :gsub("%s+$", "") -- Trim trailing spaces