summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorIngo Feinerer <feinerer@logic.at>2020-05-09 12:03:20 +0200
committerAaron Marcher <me@drkhsh.at>2020-11-30 21:24:33 +0100
commit9ac721c23fb640de2a6d1f84c84a79b2ccc26691 (patch)
tree39236fa49f4142ff526ca55ba1958e307cf0e6a9 /config.def.h
parentaaf279f6ddfb48146fc1a579efd83a55722910b5 (diff)
downloadslstatus-9ac721c23fb640de2a6d1f84c84a79b2ccc26691.tar.gz
Use the sioctl_open(3) OpenBSD API to access vol
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
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 0895f6a..93a875a 100644
--- a/config.def.h
+++ b/config.def.h
@@ -59,6 +59,7 @@ static const char unknown_str[] = "n/a";
* uptime system uptime NULL
* username username of current user NULL
* vol_perc OSS/ALSA volume in percent mixer file (/dev/mixer)
+ * NULL on OpenBSD
* wifi_perc WiFi signal in percent interface name (wlan0)
* wifi_essid WiFi ESSID interface name (wlan0)
*/