]>
git.madduck.net Git - etc/awesome.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (parent:
229d254 )
+ function tpbat. update()
bat_now = {
status = "Not present",
perc = "N/A",
bat_now = {
status = "Not present",
perc = "N/A",
- newtimer("tpbat-" .. bat.name, timeout, update)
+ newtimer("tpbat-" .. bat.name, timeout, tpbat. update)
widget:connect_signal('mouse::enter', function () tpbat.show() end)
widget:connect_signal('mouse::leave', function () tpbat.hide() end)
widget:connect_signal('mouse::enter', function () tpbat.show() end)
widget:connect_signal('mouse::leave', function () tpbat.hide() end)
end
return setmetatable(tpbat, { __call = function(_, ...) return tpbat.register(...) end })
end
return setmetatable(tpbat, { __call = function(_, ...) return tpbat.register(...) end })
cpu.widget = wibox.widget.textbox()
cpu.widget = wibox.widget.textbox()
-- Read the amount of time the CPUs have spent performing
-- different kinds of work. Read the first line of /proc/stat
-- which is the sum of all CPUs.
-- Read the amount of time the CPUs have spent performing
-- different kinds of work. Read the first line of /proc/stat
-- which is the sum of all CPUs.
- helpers.newtimer("cpu", timeout, update)
+ helpers.newtimer("cpu", timeout, cpu. update)
mem.widget = wibox.widget.textbox()
mem.widget = wibox.widget.textbox()
mem_now = {}
for line in lines("/proc/meminfo") do
for k, v in gmatch(line, "([%a]+):[%s]+([%d]+).+") do
mem_now = {}
for line in lines("/proc/meminfo") do
for k, v in gmatch(line, "([%a]+):[%s]+([%d]+).+") do
- helpers.newtimer("mem", timeout, update)
+ helpers.newtimer("mem", timeout, mem. update)
helpers.set_map(dev, true)
end
helpers.set_map(dev, true)
end
- -- Old api compatibility
net_now.carrier = dev_now.carrier
net_now.state = dev_now.state
net_now.carrier = dev_now.carrier
net_now.state = dev_now.state
net_now.devices[dev] = dev_now
net_now.devices[dev] = dev_now
- -- With the new api new_now.sent and net_now.received will be the
+ -- new_now.sent and net_now.received will be the
-- totals across all specified devices
end
-- totals across all specified devices
end
sysload.widget = wibox.widget.textbox()
sysload.widget = wibox.widget.textbox()
+ function sysload. update()
local f = io.open("/proc/loadavg")
local ret = f:read("*all")
f:close()
local f = io.open("/proc/loadavg")
local ret = f:read("*all")
f:close()
- helpers.newtimer("sysload", timeout, update)
+ helpers.newtimer("sysload", timeout, sysload. update)
temp.widget = wibox.widget.textbox()
temp.widget = wibox.widget.textbox()
local f = io.open(tempfile)
if f then
coretemp_now = tonumber(f:read("*all")) / 1000
local f = io.open(tempfile)
if f then
coretemp_now = tonumber(f:read("*all")) / 1000
- helpers.newtimer("coretemp", timeout, update)
+ helpers.newtimer("coretemp", timeout, temp. update)
-Subproject commit ed824beb75262f9f78e49baa6e1a591220ca5249
+Subproject commit 425169b35b105e5a240997ff8f5aa12bec6099cb