aboutsummaryrefslogtreecommitdiff
path: root/batat.lua
AgeCommit message (Collapse)AuthorFiles
2009-11-10batat: widget type removed, now available in the contrib branchAdrian C. (anrxc)1
This was one of the first widgets on top of Wicked, now that we have both procfs and sysfs covered there is no need to keep it in master.
2009-11-04De-obfuscate e-mail addressAdrian C. (anrxc)1
2009-10-26Ensure returned numbers are of type numberAdrian C. (anrxc)1
Thanks to Felix for bringing this to my attention. Obviously there was already a safety net for feeding progressbars and graphs... and while this makes for a good coding practice it's not a big deal. We have widgets of type textbox for one, and a lot of string concatenation happens. Strings are formatted, markup is applied...
2009-10-16batat: better returns when handling insufficient dataAdrian C. (anrxc)1
If we return "N/A" like we usually do then format string "$1$2" would look like "N/AN/A". If "/" is returned a progressbar could be broken. Now returns are: symbol for state "unknown", 0 for battery charge, N/A for remaining time.
2009-10-05Lots of coding style changesAdrian C. (anrxc)1
2009-09-29Rewrote all headersAdrian C. (anrxc)1
2009-09-14General cleanupAdrian C. (anrxc)1
2009-08-07All worker functions are local.Adrian C. (anrxc)1
2009-08-01Make all widgets return their worker functions when called.Adrian C. (anrxc)1
2009-07-31Use utf symbols for some bat states. Mention LuaFileSystem in mdir.luaAdrian C. (anrxc)1
2009-07-30Coding style fixes in battery widgets.Adrian C. (anrxc)1
2009-07-30Added handlers to batat and fixed the battery_state table.Adrian C. (anrxc)1
Batat now returns "/" in situations where the battery is not present. Last commit broke the battery_state table, fixed that.
2009-07-29Fixed batat module name and expanded bat states and symbols.Adrian C. (anrxc)1
2009-07-29Battery widget moved to batat.lua in preparation for a new bat widget.Adrian C. (anrxc)1
It's time for a standalone battery widget that reads /proc/acpi/battery/*/{info,state} alone. However the old battery widget that uses 'acpitool' will not be deleted, let it serve as an alternative widget as a convenience. Some might also prefer it over reading multiple files in /proc