]> git.madduck.net Git - etc/awesome.git/commit

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:

bat: find battery status when multiple batteries
authorSimon Désaulniers <sim.desaulniers@gmail.com>
Wed, 11 Jan 2017 05:15:23 +0000 (00:15 -0500)
committerSimon Désaulniers <sim.desaulniers@gmail.com>
Wed, 11 Jan 2017 16:00:47 +0000 (11:00 -0500)
commitae086776bf94a932719899ec828e002f67ebd098
tree472190e9b799650e21b3a90f79ecc18c9667c659
parent617675d6c3a7b79d650bfcd52a3c13e8dcdfa459
bat: find battery status when multiple batteries

Battery status was previously assumed to the first battery's status. This is
wrong as it doesn't support the case where the first battery is full and the
second is discharging, therefor showing battery percentage to 100% when the
actual battery percentage is lower.
widgets/bat.lua