conky-config/old/test.lua
Jacob Hrbek 4977d43526 sync
2021-06-14 20:01:00 +02:00

11 lines
239 B
Lua

local file = io.popen("grep -c processor /proc/cpuinfo")
local numcpus = file:read("*n")
file:close()
listcpus = ""
for i = 1,numcpus
do listcpus = listcpus.."${cpu cpu"..tostring(i).."} "
end
function conky_mycpus()
return listcpus
end