config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 8431008a4a9159e0a36de5b0c7b5a0d5d55e2728
parent 4c2b6c196fc6f4fe275e20247e64d4259bfc9a19
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Mon, 27 Feb 2023 10:37:18 -0800

Use vol and notifyvol scripts for dwm volume keys

Diffstat:
Mlocal/src/src/forks/dwm/patches/config.diff | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/local/src/src/forks/dwm/patches/config.diff b/local/src/src/forks/dwm/patches/config.diff @@ -1,10 +1,10 @@ -Author: Jacob R. Edwards -Date: 2022-12-28 +Author: Jacob R. Edwards <jacob@jacobedwards.org> +Date: 2023-02-27 Custom configuration. ---- /dev/null Wed Dec 28 11:50:09 2022 -+++ config.h Wed Dec 28 11:49:26 2022 +--- /dev/null Mon Feb 27 10:31:25 2023 ++++ config.h Mon Feb 27 10:30:49 2023 @@ -0,0 +1,172 @@ +/* See LICENSE file for copyright and license details. */ + @@ -82,9 +82,9 @@ Custom configuration. +static char *audio_previous[] = { "apc", "previous", NULL }; +static char *audio_stop[] = { "apc", "stop", NULL }; +static char *audio_toggle[] = { "apc", "toggle", NULL }; -+static char *volume_lower[] = { "sndioctl", "output.level=-0.05", NULL }; -+static char *volume_mute[] = { "sndioctl", "output.mute=!", NULL }; -+static char *volume_raise[] = { "sndioctl", "output.level=+0.05", NULL }; ++static char *volume_lower[] = { "sh", "-c", "vol -5 && notifyvol", NULL }; ++static char *volume_mute[] = { "sh", "-c", "mute && notifyvol", NULL }; ++static char *volume_raise[] = { "sh", "-c", "vol +5 && notifyvol", NULL }; + +static Key keys[] = { + /* modifier, key, function, argument */