WillPower3309 / awesome-dotfiles

Dotfiles for awesome people using the awesomewm linux environment
1.17k stars 68 forks source link

Make battery listener only listen to device power #60

Closed shinyvision closed 1 year ago

shinyvision commented 1 year ago

On my laptop, I frequently use wireless devices, which also show up on acpi -i, so the current implementation of the watch script did not work for me. This change makes it so it only takes the lines that indicate a rate of which a % sign is at the end of the string or if 'remaining' is at the end of the string.

Not sure if this covers all use cases, but it works for me, because my wireless devices report 'rate information unavailable'.

WillPower3309 commented 1 year ago

Thanks for the PR!