From 02b71f33fe2a0fb65d04a95f8d8c704200bae219 Mon Sep 17 00:00:00 2001 From: mgrotke Date: Wed, 29 Jan 2025 00:14:19 -0500 Subject: [PATCH] Added another filter to name the CPU properly --- devices/get_device_info.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/devices/get_device_info.lua b/devices/get_device_info.lua index 17a22fc..a5f715c 100644 --- a/devices/get_device_info.lua +++ b/devices/get_device_info.lua @@ -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