<feed xmlns='http://www.w3.org/2005/Atom'>
<title>awesome-wm-widgets.git/battery-widget, branch master</title>
<subtitle>Here is my fork of awesome-wm-widgets by streetturtle on github.
</subtitle>
<id>https://git.zachir.xyz/awesome-wm-widgets.git/atom?h=master</id>
<link rel='self' href='https://git.zachir.xyz/awesome-wm-widgets.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/'/>
<updated>2023-10-19T13:23:38Z</updated>
<entry>
<title>Update documentation</title>
<updated>2023-10-19T13:23:38Z</updated>
<author>
<name>zachir</name>
<email>zachir@librem.one</email>
</author>
<published>2023-10-19T13:23:38Z</published>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/commit/?id=3a984a9119cf431ec9eba7aafe5baf03376b379e'/>
<id>urn:sha1:3a984a9119cf431ec9eba7aafe5baf03376b379e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>battery-widget: Sanitize total charge computation</title>
<updated>2022-12-30T12:51:04Z</updated>
<author>
<name>Stefan Huber</name>
<email>shuber@sthu.org</email>
</author>
<published>2022-12-30T12:04:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/commit/?id=ed355dbf46e370c7a9207001a8007ff9bc929b73'/>
<id>urn:sha1:ed355dbf46e370c7a9207001a8007ff9bc929b73</id>
<content type='text'>
The code to parse the output of `acpi -i` is fragile as it does not
guarantee that the same number of battery status and capacities are
read. This causes a wrong computation of the total charge level when
batteries of status "Unknown" are reported.

For instance, this is what `acpi -i` reports with a Wacom Intuos S
attached to a Thinkpad T460s:

  $ acpi -i
  Battery 0: Unknown, 0%, rate information unavailable
  Battery 1: Not charging, 98%
  Battery 1: design capacity 1857 mAh, last full capacity 1513 mAh = 81%
  Battery 2: Not charging, 98%
  Battery 2: design capacity 2051 mAh, last full capacity 1711 mAh = 83%

Fix the code by guaranteeing that for each battery status parsed there
is also a capacity, which is zero if no capacity can be parsed. This
effectively causes the exclusion of such batteries when computing the
total charge level.
</content>
</entry>
<entry>
<title>battery-widget: Simplify capacity computation</title>
<updated>2022-12-30T11:59:09Z</updated>
<author>
<name>Stefan Huber</name>
<email>shuber@sthu.org</email>
</author>
<published>2022-12-30T11:59:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/commit/?id=0aba2f2e13cc4a20a0b8ab87535cd3ebc61ea66a'/>
<id>urn:sha1:0aba2f2e13cc4a20a0b8ab87535cd3ebc61ea66a</id>
<content type='text'>
Increase cohesion of code that computes total charge and total capacity.
</content>
</entry>
<entry>
<title>Merge pull request #338 from andreaslongo/issue-209</title>
<updated>2022-04-15T21:11:31Z</updated>
<author>
<name>streetturtle</name>
<email>streetturtle@users.noreply.github.com</email>
</author>
<published>2022-04-15T21:11:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/commit/?id=6ab940db5ced716689cb7e980e67efcc44e733ea'/>
<id>urn:sha1:6ab940db5ced716689cb7e980e67efcc44e733ea</id>
<content type='text'>
Fix #209: Match space characters in battery status string</content>
</entry>
<entry>
<title>No brattery - no pop up</title>
<updated>2022-02-22T17:33:36Z</updated>
<author>
<name>Klimczewski</name>
<email>62210828+Dzban-Diego@users.noreply.github.com</email>
</author>
<published>2022-02-22T17:33:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/commit/?id=e3505480007d89e05902798ba5c6e5f0cdf897ef'/>
<id>urn:sha1:e3505480007d89e05902798ba5c6e5f0cdf897ef</id>
<content type='text'>
This small change disables popup notifications when the battery is disconnected.</content>
</entry>
<entry>
<title>Fix #209: Match space characters in battery status string</title>
<updated>2022-02-15T21:10:13Z</updated>
<author>
<name>Andreas Longo</name>
<email>git@andreaslongo.com</email>
</author>
<published>2022-02-15T17:03:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/commit/?id=51ddb1efba57b4c41addd3a00b87bce2c2443741'/>
<id>urn:sha1:51ddb1efba57b4c41addd3a00b87bce2c2443741</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update readme</title>
<updated>2022-01-24T02:25:51Z</updated>
<author>
<name>GitHub Action</name>
<email>action@github.com</email>
</author>
<published>2022-01-24T02:25:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/commit/?id=355fd7f9f153d570c7e02533d4bb71c37ed8beb0'/>
<id>urn:sha1:355fd7f9f153d570c7e02533d4bb71c37ed8beb0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update readme</title>
<updated>2022-01-24T02:22:00Z</updated>
<author>
<name>GitHub Action</name>
<email>action@github.com</email>
</author>
<published>2022-01-24T02:22:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/commit/?id=a6404cada579142ab02baa1bd762d48de4662fde'/>
<id>urn:sha1:a6404cada579142ab02baa1bd762d48de4662fde</id>
<content type='text'>
</content>
</entry>
<entry>
<title>correct valigh -&gt; valign</title>
<updated>2021-12-11T01:53:09Z</updated>
<author>
<name>Little Clover</name>
<email>littleclover909@gmail.com</email>
</author>
<published>2021-12-11T01:53:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/commit/?id=d41b54c1681a2bc2bc1a90c7a22f75df7d87afd2'/>
<id>urn:sha1:d41b54c1681a2bc2bc1a90c7a22f75df7d87afd2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>prevent battery widget from crashing by ignoring null capacity field of Logitech mice</title>
<updated>2021-04-26T14:44:05Z</updated>
<author>
<name>Barry</name>
<email>brrtsm@gmail.com</email>
</author>
<published>2021-04-26T14:44:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zachir.xyz/awesome-wm-widgets.git/commit/?id=700b4e1f55563ed8d6cc4aed084fe454e67f9534'/>
<id>urn:sha1:700b4e1f55563ed8d6cc4aed084fe454e67f9534</id>
<content type='text'>
</content>
</entry>
</feed>
