adi1090x / battery-wallpaper

Simple bash script to set wallpaper according to battery percentage with charging animations.
GNU General Public License v3.0
391 stars 22 forks source link

Getting the wrong battery info #23

Open MikaelFangel opened 11 months ago

MikaelFangel commented 11 months ago

Depending on how acpi lists the batteries when you have connected Bluetooth devices, the script will update the wallpaper based on the wrong input ot not at all.

Example with on Bluetooth mouse connected:

mikael@nixos:~/Programming/nix/NUR/ > acpi                                          
Battery 0: Charging, 93%, 00:11:33 until charged
Battery 1: Discharging, 0%, rate information unavailable

Expected behavior

The script animates the background regardless if there are other devices showing up in the acpi print.

MikaelFangel commented 11 months ago

My current workaround is to disconnect the mouse and the connect it again so the order changes. 😅