Here's a tiny program for X to make sndiod slightly easier to control
in X. From the README:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
sndiokeys registers hot-keys in X(7) to control sndiod(8). It can be
used to replace the X(7) keyboard bells by audible beeps on the
audio device.

The default key-bindings are as follows:

Control+Mod1+plus       increase output level
Control+Mod1+minus      decrease output level
Control+Mod1+0          cycle through audio devices.

Mod1 is the Alt key on most keyboards. Key bindings
are configurable and multimedia audio keys may be used instead.

sndiokeys is meant to be started as background process by startx(1) or
the display manager session startup scripts.  It exits when X session
terminates.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

I'm not 100% that ports/x11 is the right place for this program; the
other candidate is ports/audio.

Comments? OKs?

Index: x11/Makefile
===================================================================
RCS file: /cvs/ports/x11/Makefile,v
retrieving revision 1.743
diff -u -p -r1.743 Makefile
--- x11/Makefile        13 Jan 2023 17:13:08 -0000      1.743
+++ x11/Makefile        27 Jan 2023 13:12:37 -0000
@@ -284,6 +284,7 @@
      SUBDIR += slock
      SUBDIR += smplayer
      SUBDIR += smtube
+     SUBDIR += sndiokeys
      SUBDIR += spectrwm
      SUBDIR += spice-gtk
      SUBDIR += sselp
--- /dev/null   Fri Jan 27 14:12:42 2023
+++ x11/sndiokeys/Makefile      Fri Jan 27 14:10:01 2023
@@ -0,0 +1,19 @@
+COMMENT=       control sndiod with hot-keys and play keyboard bells
+V=             1.1.2
+DISTNAME=      sndiokeys-${V}
+CATEGORIES=    audio x11
+HOMEPAGE=      https://github.com/ratchov/sndiokeys
+MAINTAINER=    Alexandre Ratchov <[email protected]>
+
+GH_ACCOUNT=    ratchov
+GH_PROJECT=    sndiokeys
+GH_TAGNAME=    v${V}
+
+# BSD
+PERMIT_PACKAGE=        Yes
+
+WANTLIB=               c sndio X11
+CONFIGURE_STYLE=       simple
+CONFIGURE_ARGS=                --prefix=${PREFIX}
+
+.include <bsd.port.mk>
--- /dev/null   Fri Jan 27 14:12:42 2023
+++ x11/sndiokeys/pkg/DESCR     Fri Jan 27 14:10:01 2023
@@ -0,0 +1,3 @@
+sndiokeys registers hot-keys in X(7) to control sndiod(8) output
+level and switch between devices. It can be used to replace the X(7)
+keyboard bells by audible beeps on the audio device.
--- /dev/null   Fri Jan 27 14:12:42 2023
+++ x11/sndiokeys/pkg/PLIST     Fri Jan 27 14:10:01 2023
@@ -0,0 +1,2 @@
+@bin bin/sndiokeys
+@man man/man1/sndiokeys.1
--- /dev/null   Fri Jan 27 14:12:42 2023
+++ x11/sndiokeys/distinfo      Fri Jan 27 14:10:01 2023
@@ -0,0 +1,2 @@
+SHA256 (sndiokeys-1.1.2.tar.gz) = +QBSWJNi7dWXNasKAd1NDGieedGvO2SnG+FrVTNOJgg=
+SIZE (sndiokeys-1.1.2.tar.gz) = 7316

Reply via email to