conky-config/old/test.lua

11 lines
239 B
Lua
Raw Permalink Normal View History

2021-06-14 20:01:00 +02:00
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