1 2 3 4 5 6 7
widget = luastatus.require_plugin('cpu-usage-linux').widget{ cb = function(usage) if usage ~= nil then return string.format('%5.1f%%', usage * 100) end end, }