<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xmobar/src/Plugins, branch 0.22.1</title>
<subtitle>a minimalistic status bar</subtitle>
<id>https://jao.io/cgit/xmobar/atom?h=0.22.1</id>
<link rel='self' href='https://jao.io/cgit/xmobar/atom?h=0.22.1'/>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/'/>
<updated>2014-09-27T22:36:33Z</updated>
<entry>
<title>Using fromMaybe</title>
<updated>2014-09-27T22:36:33Z</updated>
<author>
<name>jao</name>
<email>jao@gnu.org</email>
</author>
<published>2014-09-27T22:36:33Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=5c6252dc55a87a42c3cd43e5ffab7e9328004f4d'/>
<id>urn:sha1:5c6252dc55a87a42c3cd43e5ffab7e9328004f4d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Upgrade to libmpd 0.9</title>
<updated>2014-09-27T22:25:54Z</updated>
<author>
<name>jao</name>
<email>jao@gnu.org</email>
</author>
<published>2014-09-27T22:24:15Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=6b9dfabf23b7c48a86c3553a63ebb3924bea8d46'/>
<id>urn:sha1:6b9dfabf23b7c48a86c3553a63ebb3924bea8d46</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'dynamic-strings' of https://github.com/projedi/xmobar</title>
<updated>2014-09-24T18:54:16Z</updated>
<author>
<name>jao</name>
<email>jao@gnu.org</email>
</author>
<published>2014-09-24T18:54:16Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=b0f07db920d9ed446532dfc1aaddd3e7f57d0592'/>
<id>urn:sha1:b0f07db920d9ed446532dfc1aaddd3e7f57d0592</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename dynamic string to icon pattern</title>
<updated>2014-09-24T08:31:54Z</updated>
<author>
<name>Alexander Shabalin</name>
<email>shabalyn.a@gmail.com</email>
</author>
<published>2014-09-24T08:31:54Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=f8b7b22253d72b7b6ecf83bac87a8cda41040f49'/>
<id>urn:sha1:f8b7b22253d72b7b6ecf83bac87a8cda41040f49</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Locks: Implement event-driven locks indicator</title>
<updated>2014-09-17T03:20:11Z</updated>
<author>
<name>Anton Vorontsov</name>
<email>anton@enomsg.org</email>
</author>
<published>2014-09-17T01:18:30Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=16f0bee5a49f95aa47e1ab59010f79b62c07710b'/>
<id>urn:sha1:16f0bee5a49f95aa47e1ab59010f79b62c07710b</id>
<content type='text'>
This commit does more fundamental rework of the "Locks" plug-in: now the
plug-in is fully event-driven and thus extremely power-efficient,
effectively zero CPU consumption while idling.
</content>
</entry>
<entry>
<title>Locks: Rework to avoid unnecessary display reopening</title>
<updated>2014-09-17T03:20:10Z</updated>
<author>
<name>Anton Vorontsov</name>
<email>anton@enomsg.org</email>
</author>
<published>2014-09-16T22:48:49Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=73053ddf3386604f19b494afd9c234ac50427d6c'/>
<id>urn:sha1:73053ddf3386604f19b494afd9c234ac50427d6c</id>
<content type='text'>
The extremely useful "Locks" plugin eats quite a lot of CPU (&gt;2% here on a
old-ish laptop), unfortunately. The plug-in unnecessary reopens the
display, which is quite expensive operation. It results into 16 syscalls:

     socket(PF_LOCAL)      -&gt; connect(sun_path=@"/tmp/.X11-unix/X0"})
  -&gt; getpeername()         -&gt; uname()
  -&gt; access(".Xauthority") -&gt; open(".Xauthority")
  -&gt; fstat()               -&gt; mmap()
  -&gt; read()                -&gt; close()
  -&gt; munmap()              -&gt; getsockname()
  -&gt; fcntl(F_SETFD)        -&gt; fcntl(F_SETFL)
  -&gt; shutdown()            -&gt; close()

This is almost half of all the syscalls that we ought to execute for the
plug-in to work. Now, considering the useful work and that "Locks" runs
every 200 milliseconds, it gives us &gt;300 syscalls (and a lot more
wake-ups) per second.

This commit fixes the reopening issue, effectively halving the CPU
consumption (down to ~1%). The patch also makes it easier to implement
event-driven indicators that will reduce the idle CPU consumption to 0.
</content>
</entry>
<entry>
<title>Implement DynamicString for Monitors supporting vbar.</title>
<updated>2014-09-14T08:03:48Z</updated>
<author>
<name>Alexander Shabalin</name>
<email>shabalyn.a@gmail.com</email>
</author>
<published>2014-09-07T18:24:00Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=e590f14593728b8afc2b77e8be356e5c06428107'/>
<id>urn:sha1:e590f14593728b8afc2b77e8be356e5c06428107</id>
<content type='text'>
* Batt
* Bright
* Cpu
* Disk
* MPD
* Mem
* MultiCpu
* Net
* Volume
* Wireless
</content>
</entry>
<entry>
<title>Add DynamicString as an alternative to vbars.</title>
<updated>2014-09-14T08:03:48Z</updated>
<author>
<name>Alexander Shabalin</name>
<email>shabalyn.a@gmail.com</email>
</author>
<published>2014-09-04T18:53:06Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=e8e4415b7eba49d2d6ddb18ab13b3151c9a787bd'/>
<id>urn:sha1:e8e4415b7eba49d2d6ddb18ab13b3151c9a787bd</id>
<content type='text'>
* DynamicString is an Int -&gt; String which takes a value from 0..8
  and produces a string with this value embedded. Usefull for replacing
  vbars with icons: an icon per one of 9 states.
* API is similar to that of vbar.
* Default parser of DynamicString produces a function of `i` to a string
  that replaces all occurences of "%%" with `show i`
</content>
</entry>
<entry>
<title>Fix string to calm wind report</title>
<updated>2014-09-11T12:35:26Z</updated>
<author>
<name>Tony Morris</name>
<email>tmorris@tmorris.net</email>
</author>
<published>2014-09-11T12:35:26Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=eb9f7a73677cc2bc872c3ea69f073faeefe6c989'/>
<id>urn:sha1:eb9f7a73677cc2bc872c3ea69f073faeefe6c989</id>
<content type='text'>
</content>
</entry>
<entry>
<title>differentiate betwee 0 degrees and no wind speed using mu (μ)</title>
<updated>2014-09-11T05:21:23Z</updated>
<author>
<name>Tony Morris</name>
<email>tmorris@tmorris.net</email>
</author>
<published>2014-09-11T05:21:23Z</published>
<link rel='alternate' type='text/html' href='https://jao.io/cgit/xmobar/commit/?id=4ddfafe8904780ef599158525a7b4f52da7c6965'/>
<id>urn:sha1:4ddfafe8904780ef599158525a7b4f52da7c6965</id>
<content type='text'>
</content>
</entry>
</feed>
