<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slstatus/components/volume.c, branch master</title>
<subtitle>Status monitor for window managers that use WM_NAME or stdin to fill the status bar</subtitle>
<id>https://git.ikboikov.net/slstatus/atom?h=master</id>
<link rel='self' href='https://git.ikboikov.net/slstatus/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/'/>
<updated>2022-10-27T23:03:20Z</updated>
<entry>
<title>radical re-formatting 0/3: Alphabetic headers</title>
<updated>2022-10-27T23:03:20Z</updated>
<author>
<name>drkhsh</name>
<email>me@drkhsh.at</email>
</author>
<published>2022-10-27T21:18:30Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=0696635bcbad06770cce7d5a4c9e8e4d76868307'/>
<id>urn:sha1:0696635bcbad06770cce7d5a4c9e8e4d76868307</id>
<content type='text'>
Except stated otherwise in comment.

Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
</content>
</entry>
<entry>
<title>components/*.c: include slstatus.h</title>
<updated>2022-10-26T21:32:07Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-10-26T20:14:53Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=28ef0b242c32e8ae8b4df2b4b380e30bf581130f'/>
<id>urn:sha1:28ef0b242c32e8ae8b4df2b4b380e30bf581130f</id>
<content type='text'>
this gives the compiler a chance to check weather the prototype and
definiton matches or not, which would catch issues like 3c47701.
</content>
</entry>
<entry>
<title>Reset sndiod initialization flag on disconnects</title>
<updated>2022-10-26T19:24:16Z</updated>
<author>
<name>Ingo Feinerer</name>
<email>feinerer@logic.at</email>
</author>
<published>2021-02-15T11:56:42Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=3b699c127db745b32002c14d59a6de4ebcc0b7db'/>
<id>urn:sha1:3b699c127db745b32002c14d59a6de4ebcc0b7db</id>
<content type='text'>
If the connection is lost to the sndiod(8) daemon reset the
initialization to allow for a graceful restart.
</content>
</entry>
<entry>
<title>Make volume component work on FreeBSD</title>
<updated>2022-10-26T19:24:14Z</updated>
<author>
<name>michaelbuch12@gmail.com</name>
<email>michaelbuch12@gmail.com</email>
</author>
<published>2021-01-01T15:52:57Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=798809ce02528d5954e0b1d524f44c29503a7407'/>
<id>urn:sha1:798809ce02528d5954e0b1d524f44c29503a7407</id>
<content type='text'>
- Edit compile instructions
- Reuse OpenBSD sndio implementation
</content>
</entry>
<entry>
<title>Use the sioctl_open(3) OpenBSD API to access vol</title>
<updated>2020-11-30T20:24:33Z</updated>
<author>
<name>Ingo Feinerer</name>
<email>feinerer@logic.at</email>
</author>
<published>2020-05-09T10:03:20Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=9ac721c23fb640de2a6d1f84c84a79b2ccc26691'/>
<id>urn:sha1:9ac721c23fb640de2a6d1f84c84a79b2ccc26691</id>
<content type='text'>
Starting with OpenBSD 6.7 regular users cannot access raw audio devices
anymore, for improved security.

Instead use the sioctl_open(3) API to access and manipulate audio
controls exposed by sndiod(8). On the first call a permanent connection
is established with the running sndiod daemon, and call-back functions
are registered which are triggered when audio controls are changed
(e.g., a USB headset is attached) or when the volume is modified. On
subsequent calls we poll for changes; if there are no volume changes
this costs virtually nothing.

Joint work with Alexandre Ratchov
</content>
</entry>
<entry>
<title>Add native OpenBSD support for mute/volume</title>
<updated>2019-02-13T12:35:44Z</updated>
<author>
<name>Ingo Feinerer</name>
<email>feinerer@logic.at</email>
</author>
<published>2019-02-08T14:37:17Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=c1dc896c806693a4a368abf59e6890d32d520074'/>
<id>urn:sha1:c1dc896c806693a4a368abf59e6890d32d520074</id>
<content type='text'>
Based on functionality in dstat by Joerg Jung.
</content>
</entry>
<entry>
<title>Clean up header includes</title>
<updated>2018-05-30T17:35:37Z</updated>
<author>
<name>Aaron Marcher</name>
<email>me@drkhsh.at</email>
</author>
<published>2018-05-30T17:35:37Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=b0401b13bb78bacde9d10b00766830cbeb2c90f6'/>
<id>urn:sha1:b0401b13bb78bacde9d10b00766830cbeb2c90f6</id>
<content type='text'>
 - Remove &lt;errno.h&gt; because related functions are in util.c now
 - Remove corresponding &lt;string.h&gt; if not used otherwise
</content>
</entry>
<entry>
<title>Remove units from numbers</title>
<updated>2018-05-20T22:16:54Z</updated>
<author>
<name>Aaron Marcher</name>
<email>me@drkhsh.at</email>
</author>
<published>2018-05-20T22:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=ec5c35ec9f23254f09e734d0c1880559774dfa52'/>
<id>urn:sha1:ec5c35ec9f23254f09e734d0c1880559774dfa52</id>
<content type='text'>
This is a first step to decouple formatting from information because of
two reasons:

 1. The components should only gather and return the values by design
 2. Fine grained user control should be a focus

Scaling will be implemented in a different way in a later commit.
</content>
</entry>
<entry>
<title>Add the percent sign to *_perc functions</title>
<updated>2018-05-19T18:33:06Z</updated>
<author>
<name>Aaron Marcher</name>
<email>me@drkhsh.at</email>
</author>
<published>2018-05-19T18:33:06Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=74c4f4ebdae8a12fc95840954dde574692234b01'/>
<id>urn:sha1:74c4f4ebdae8a12fc95840954dde574692234b01</id>
<content type='text'>
Units should be added to the corresponding numbers
</content>
</entry>
<entry>
<title>Add warn() and die()</title>
<updated>2018-05-18T09:13:05Z</updated>
<author>
<name>Laslo Hunhold</name>
<email>dev@frign.de</email>
</author>
<published>2018-05-18T08:59:05Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=80fc20d1d69b14f36ad9bb64d8af38481cbf1ff5'/>
<id>urn:sha1:80fc20d1d69b14f36ad9bb64d8af38481cbf1ff5</id>
<content type='text'>
Given slstatus is a tool that runs in the background, most likely run
from .xinitrc, it's important to prepend the name of the tool to error
messages so it becomes clear where the error is coming from.

To make this much more consistent, this commit adds warn() and die()
utility functions consistent with other suckless projects and adapts all
calls to fprintf(stderr, *) to the warn() and die() functions, greatly
increasing the readability of the code.
</content>
</entry>
</feed>
