Hi, I am new user to awesome. I don't know lua but only some base of C++.
I am trying to put the CPU information in the title bar with a pop-up window
when the cursor is floating over it. Though I don't know the lua language, I
can understand somewhat what the code mean. I found some code like that as
followed but it doesn't work, seems outdated and incompatible with the new
release awesome 3.5.2
-- CPU usage widget
cpuwidget = wibox.widget.textbox()
cpuwidget_t = awful.tooltip({ objects = { cpuwidget.widget },})
-- Register CPU widget
vicious.register(cpuwidget, vicious.widgets.cpu,
function (widget, args)
cpuwidget_t:set_text("CPU Usage: " .. args[1] .. "%")
return args[1]
end)
I could only get the usage percentage number without symbole "%" and nothing
appears when I move the cursor above the graph. How could I fix it? Thanks.
I am using awesome 3.5.2
--
Peiding CHEN
+33 6 16 88 13 40
--
To unsubscribe, send mail to [email protected].