Waybar/src
Aleksei Bavshin 22084691ff
fix(battery): ignore non-system power supplies
Linux power_supply sysfs interface allows checking if the battery powers
the whole system or a specific device/tree of devices with `scope`
attribute[1]. We can use it to skip the non-system power supplies in the
battery module and avoid adding HIDs or other peripheral devices to the
total.

The logic is based on UPower, where it is assumed that "Unknown" devices
or devices without a `scope` are system power supplies.

[1]: https://lore.kernel.org/lkml/alpine.LNX.2.00.1201031556460.24984@pobox.suse.cz/T/
2022-12-04 00:14:42 -08:00
..
modules fix(battery): ignore non-system power supplies 2022-12-04 00:14:42 -08:00
util Refactor rewriteTitle 2022-10-19 13:25:08 +02:00
AIconLabel.cpp refactor: disable icon by default 2022-03-10 09:48:50 +01:00
ALabel.cpp refactor: lint 2022-04-06 08:37:19 +02:00
AModule.cpp refactor: lint 2022-04-06 08:37:19 +02:00
bar.cpp fix: vertical bar not anchored when width is set 2022-05-25 16:09:21 +02:00
client.cpp fix: adapt to fmt 9.0.0 breaking changes 2022-07-13 22:36:32 -07:00
config.cpp Update config.cpp 2022-09-07 10:33:57 +02:00
factory.cpp Merge pull request #1397 from JakeStanger/feat/image-module 2022-11-24 20:40:56 +01:00
group.cpp refactor: lint 2022-04-06 08:37:19 +02:00
main.cpp refactor: lint 2022-04-06 08:37:19 +02:00