diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2023-12-24 10:05:53 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2023-12-24 10:08:45 +0000 |
commit | 581c7caa3b1bbdeb0267642105eea875b4928c94 (patch) | |
tree | 6ebb0e9a51835f702339bf4c25f90cb918cc0c97 /x11-wm | |
parent | 03c3d0431ff2e7e2ff10c627e082f5b1bff9e6db (diff) | |
download | ports-581c7caa3b1bbdeb0267642105eea875b4928c94.tar.gz ports-581c7caa3b1bbdeb0267642105eea875b4928c94.zip |
x11-wm/dwm: Update code for XF86Audio in DWM
Pull request: https://github.com/freebsd/freebsd-ports/pull/202
Diffstat (limited to 'x11-wm')
-rw-r--r-- | x11-wm/dwm/files/volumecontrol-patch-config.def.h | 19 |
1 files 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 */ |