aboutsummaryrefslogtreecommitdiff
path: root/batat.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-07-30 01:48:07 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-07-30 01:48:07 +0200
commite2d503ee36d0e3f0d20f7f888ab03caac68c32bb (patch)
tree558ffd011e2d1bc8ebd06fab4f21eb6da05c4ac3 /batat.lua
parent19ca7b5a038508179b2e195d223ecaa2299f14a1 (diff)
downloadvicious-legacy-e2d503ee36d0e3f0d20f7f888ab03caac68c32bb.tar.xz
Added a new, standalone, battery widget.
The widget reads /proc/acpi/battery/*/{info,state} and doesn't require an external utility like 'acpi' or 'acpitool'. It returns state, charge and remaining time information, just like the old bat (now batat) widget. Using /sys/class/power_supply we would need to open much more file descriptors so we use /proc for now.
Diffstat (limited to 'batat.lua')
0 files changed, 0 insertions, 0 deletions