git: 581c7caa3b1b - main - x11-wm/dwm: Update code for XF86Audio in DWM
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 24 Dec 2023 10:08:57 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=581c7caa3b1bbdeb0267642105eea875b4928c94 commit 581c7caa3b1bbdeb0267642105eea875b4928c94 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-12-24 10:05:53 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-12-24 10:08:45 +0000 x11-wm/dwm: Update code for XF86Audio in DWM Pull request: https://github.com/freebsd/freebsd-ports/pull/202 --- x11-wm/dwm/files/volumecontrol-patch-config.def.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/x11-wm/dwm/files/volumecontrol-patch-config.def.h b/x11-wm/dwm/files/volumecontrol-patch-config.def.h index 3ab15d4680b9..225a00689e24 100644 --- a/x11-wm/dwm/files/volumecontrol-patch-config.def.h +++ b/x11-wm/dwm/files/volumecontrol-patch-config.def.h @@ -1,24 +1,27 @@ ---- config.def.h.orig 2022-10-04 17:38:18 UTC -+++ config.def.h -@@ -58,7 +58,12 @@ static const Layout layouts[] = { +--- config.def.h.orig 2023-12-11 13:41:28.765635000 +0300 ++++ config.def.h 2023-12-11 13:46:14.977398000 +0300 +@@ -58,7 +58,14 @@ /* commands */ static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL }; -+static const char *incrvol[] = { "mixer", "vol", "+1:+1", NULL }; -+static const char *decrvol[] = { "mixer", "vol", "-1:-1", NULL }; ++static const char *incrvol[] = { "mixer", "vol.volume=+0.10", NULL }; ++static const char *decrvol[] = { "mixer", "vol.volume=-0.10", NULL }; ++static const char *mutevol[] = { "mixer", "vol.mute=^", NULL }; +#define XK_XF86AudioLowerVolume 0x1008ff11 ++#define XK_XF86AudioMute 0x1008ff12 +#define XK_XF86AudioRaiseVolume 0x1008ff13 + static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, -@@ -94,6 +99,8 @@ static const Key keys[] = { +@@ -94,6 +101,9 @@ TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, -+ { 0x0, XK_XF86AudioRaiseVolume, spawn, {.v = incrvol } }, -+ { 0x0, XK_XF86AudioLowerVolume, spawn, {.v = decrvol } }, ++ { 0x0, XK_XF86AudioRaiseVolume, spawn, {.v = incrvol } }, ++ { 0x0, XK_XF86AudioLowerVolume, spawn, {.v = decrvol } }, ++ { 0x0, XK_XF86AudioMute, spawn, {.v = mutevol } }, }; /* button definitions */