Commit Graph

13 Commits

Author SHA1 Message Date
Martin Ueding dc556e5415 bat: Use a real minus sign for the charging status
Previously, a simple hyphen (“-”) was used to show that the battery is
discharging. The minus sign is a distinct char, and also distinct from
the en-dash (“–”) and the em-dash (“—”).

With this commit, I put in a unicode “MINUS SIGN” (0x2212) which I
created with a Digraph in Vim `^k-2`.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2013-12-15 17:30:37 +01:00
Adrian C. (anrxc) 80d523ad93 bat: metatable bugfix after lua52 port 2012-06-18 02:01:29 +02:00
Arvydas Sidorenko 41cc2c0e27 Ported vicious.widgets module to lua 5.2
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-06-18 01:26:31 +02:00
Jörg Thalheim 7a3699cf4c division by zero, if battery is full charged
If the battery state change from charging to full,
power_now is reseted to zero for a little time.
This cause division by zero, which was visible as a very big negative
number because of the behaviour of string.format.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
2012-03-04 20:24:22 +01:00
Adrian C. (anrxc) 45c6ebaeb6 bat: fix time calculation, bug introduced in 350e924 2011-11-20 17:44:04 +01:00
Adrian C. (anrxc) 350e9240ea bat: another workaround for broken ACPI implementations 2011-11-19 02:20:08 +01:00
Adrian C. (anrxc) 44aea3786f bat: better fix for missing rate in 31d7b2f
Thanks to Ikke for debugging this.
2011-07-12 23:54:13 +02:00
Adrian C. (anrxc) 31d7b2fc6b bat: fixed "no such device" for current and power 2011-02-21 06:46:49 +01:00
Adrian C. (anrxc) 6ddad318e0 bat: added power_now support
Looks like current_now will eventually be deprecated. Thanks to Conrad
Calmez for finding this bug report:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=532000
2011-02-15 03:49:43 +01:00
Adrian C. (anrxc) 94a60fbc3b bat: fixed module description 2010-03-16 20:26:49 +01:00
Adrian C. (anrxc) 7cbf987a2a bat: fix battery detection 2010-03-15 02:42:36 +01:00
Adrian C. (anrxc) 4dad2e360c API: missing warg should not break awesome 2010-03-14 03:37:40 +01:00
Adrian C. (anrxc) 237470c8f4 API: transform widgets namespace table to a directory 2010-03-14 01:55:33 +01:00