Added another filter to name the CPU properly
This commit is contained in:
parent
9238875364
commit
02b71f33fe
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ function conky_shorten_cpu_name(cpu_name)
|
|||
:gsub("CPU", "") -- Remove "CPU"
|
||||
:gsub("Processor", "") -- Remove "Processor"
|
||||
:gsub("@[%s%w%.]+", "") -- Remove "@ XGHz"
|
||||
:gsub("with.*", "") -- Remove "with" and anything after the word "with"
|
||||
:gsub("%s%s+", " ") -- Remove extra spaces
|
||||
:gsub("^%s+", "") -- Trim leading spaces
|
||||
:gsub("%s+$", "") -- Trim trailing spaces
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue