Waybar/src/modules
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
..
cpu modules: Revert button to label 2022-11-24 13:08:16 +01:00
hyprland Don't search "Keyboard at" from hyprland/language 2022-11-29 01:11:25 +01:00
memory modules: Revert button to label 2022-11-24 13:08:16 +01:00
mpd fix formatting issues 2022-12-02 19:32:03 +03:00
river #1591 river escape window and mode 2022-08-29 16:22:08 +10:00
sni refactor: remove warning 2022-12-01 08:45:12 +01:00
sway modules: Revert button to label 2022-11-24 13:08:16 +01:00
upower Update upower.cpp 2022-11-25 09:03:27 +01:00
wlr Fix crashes when using named workspaces in Hyprland 2022-11-24 02:16:44 +01:00
backlight.cpp modules: Revert button to label 2022-11-24 13:08:16 +01:00
battery.cpp fix(battery): ignore non-system power supplies 2022-12-04 00:14:42 -08:00
bluetooth.cpp modules: Revert button to label 2022-11-24 13:08:16 +01:00
clock.cpp Allow calendar_shift_init_ to be negative 2022-11-27 21:24:56 -06:00
custom.cpp modules: Revert button to label 2022-11-24 13:08:16 +01:00
disk.cpp modules: Revert button to label 2022-11-24 13:08:16 +01:00
gamemode.cpp Fixed gamemode module segfaulting when disconnecting monitor 2022-10-20 12:38:52 +02:00
idle_inhibitor.cpp modules: Revert button to label 2022-11-24 13:08:16 +01:00
image.cpp feat: image module 2022-01-16 23:55:13 +00:00
inhibitor.cpp modules: Revert button to label 2022-11-24 13:08:16 +01:00
jack.cpp man page and adjust default format 2022-08-18 17:05:04 -04:00
keyboard_state.cpp fix(keyboard): correct device-path config behavior 2022-08-24 14:08:34 +08:00
network.cpp modules: Revert button to label 2022-11-24 13:08:16 +01:00
pulseaudio.cpp fix formatting issues 2022-12-02 19:32:03 +03:00
simpleclock.cpp modules: Revert button to label 2022-11-24 13:08:16 +01:00
sndio.cpp fix formatting issues 2022-12-02 19:32:03 +03:00
temperature.cpp modules: Revert button to label 2022-11-24 13:08:16 +01:00
user.cpp added file existence check 2022-11-29 09:00:12 +03:00
wireplumber.cpp fix: wireplumber module when used with a bluetooth device 2022-11-26 11:35:45 -08:00