[modules/battery] Better display for "unknown" charge status

Some laptops, such as Dells, may display an unknown charge state when
the battery is attached to a docking station, but discharging (because
of configuration settings for longevity of the battery).

Show that nicer.
This commit is contained in:
Tobias Witek 2018-11-09 18:19:05 +01:00
parent e5a003f961
commit 2994d0efa0
4 changed files with 17 additions and 3 deletions

View file

@ -49,7 +49,11 @@
"discharging-25": { "suffix": "dis" },
"discharging-50": { "suffix": "dis" },
"discharging-80": { "suffix": "dis" },
"discharging-100": { "suffix": "dis" }
"discharging-100": { "suffix": "dis" },
"unknown-25": { "suffix": "?" },
"unknown-50": { "suffix": "?" },
"unknown-80": { "suffix": "?" },
"unknown-100": { "suffix": "?" }
},
"caffeine": {
"activated": {"prefix": "caf-on" }, "deactivated": { "prefix": "caf-off " }