El 24/01/12 15:13, Robert David escribió:
Can you send parts of the files in which this happen.
/usr/share/awesome/lib/obvious/temp_info/init.lua line 30-50
local function update()
local d = awful.util.pread("acpi -t")
local temp = { }
for t in d:gmatch("Thermal %d+: %w+, (%d+.?%d*) degrees") do
table.insert(temp, t)
end
local color = colors["hot"]
if not temp[1] then
widget.text = "no data"
return
end
if tonumber(temp[1]) < 50 then
color = colors["normal"]
elseif tonumber(temp[1]) >= 50 and tonumber(temp[1]) < 60 then
color = colors["warm"]
end
widget.text = temp[1] .. " " .. lib.markup.fg.color(color, "C")
end
update()
---------
this code is from http://packages.debian.org/sid/awesome-extra
that is what I use
--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.