Closed matchai closed 5 years ago
As for testing, I'll be happy to test uhh... Tomorrow if I have free time and can remember!
Thank you @Snuggle! Hope you had some enjoyable time off. 😎🌴 I've also been taking it easy the last couple weeks.
Sounds perfect! No pressure if you don't get around to it right away. 😄
@Snuggle Just a friendly reminder that this PR needs testing if you've got some free time. 😄 (Happy new year! 🎉)
After testing, my prompt uses my wireless mouse's battery and reports 0%. No errors though! :clinking_glasses:
Ubuntu 18.10 on a generic Samsung laptop and a Logitech MX Master (1st gen.) wireless mouse.
I can't remember where the conversation was, either on this repo or Spaceship, but there needs to be some logic in place to ignore a 0% battery level. Perhaps to return the first non-zero battery level.
This pull request does fix the following bug, though and is better than master. I'll try and join in @salmanulfarzy's discussion on how to handle multiple batteries, should be interesting. :slightly_smiling_face:
Yep! This is by no means a perfect solution. Just a better one for the time being. 😃 Thanks for taking the time to manually test it! 🍻
Did you accidentally revert the original changes (2e2aa9980a44a2074d412bf556843b1867b11738) with this merge commit (2c7bd67d78c94b61a50f61d19dd0d4aea1116baa) or was it intentional ? Seems like the only change now is comment removal :man_shrugging:
Oh whoops. That was definitely a slip-up! 😱 Solid catch @salmanulfarzy!
:tada: This PR is included in version 2.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Description
Ported the solution used in the following PR: https://github.com/denysdovhan/spaceship-prompt/pull/583
Motivation and Context
Closes #124
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?
This feature is untested as I have no computer using acpi. I would appreciate it if someone could validate this fix.
Checklist: