From nobody Sun Dec 24 10:08:57 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SycFP6TPDz54PJw; Sun, 24 Dec 2023 10:08:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SycFP4Bypz3Ldg; Sun, 24 Dec 2023 10:08:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703412537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Pzk5SGiNrCfhgDEjxIupElxTn6OrtlS7rE7FYbR5oiQ=; b=VHa4qAJna0tEvYxoIcABV2ad7qjokHshZBdBavJoS+UXjpb2m2Qe0Ofm054bro4vEG0jL6 zkqTRSM1xPLzKZVbfbP8cPUzJRgEu0m3LHQ+ed/shEHbhDi5/cXjFZEaKoyrr3qWZacOs8 pveFQC5tNUu8fRHZxkGU2KGZQnt6CfFsMnr8wPSrTD1UsKLNwUFg/OXeF+HdTHFRXiGZf2 pmIt1dZMbidhSsRS8mPuFkZ8BCfff643u38Q4jFIumnQahmfQwR0FLnGm/PgeY8eMAnJLy S/mnusXdBKdLm7MVonsTOO9ISZZ1+ojghD5TF3XGULk73cCvWWZ8+XxpH+JKjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703412537; a=rsa-sha256; cv=none; b=xlGz+DCRqg/RektcjVEv9IdTeP8kKaur1nVS46hZVNQ9KPUYkpyYakbOVGurYZfYHoWX2H FoQdAb/qhfQpxiV3kik9Lb1sqDwKe/Dgk1dhcbqlpkpWT9KpRrwhDkVAiiYZlFP/K5bvDa D359kkm3VFZSHRjVSalRfb1Egw8BKM01k/hDqxwE6a2q4QPB4dymctLYuUdaTQk1JrMA72 6RaJiaHseDz0LUFshjnbATy9lvnPRk+/5O9GAdI3ZEakTFSmTkY7ILX3IlzjDHvScVByQV ZU7Hm+VPHBE7wW7H4dbI6ojD7XBgQ9CqR9WtwFB+RfMRfgKczt03M3NQfQgqiQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703412537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Pzk5SGiNrCfhgDEjxIupElxTn6OrtlS7rE7FYbR5oiQ=; b=q3teKujH/VFf/lDrPf3Ylju4+nG7epuWzy7BhqWzHg6HzQF+C/VyfBtW9a0/vSExa7aOha Tnok6I+HB5mDF8BPKkk0vzU/fxx75WPH8YLua8D+/i8uuf0gjUBwTahWJK5tiQofYm/EUX UHLdToxHHpItFmzpdtWWcseXvEwT0a/ZGa1QAJ5t1rxf20Cxo201cFHR+BAuHb6RX6wmYU kuZmCV9TAdkgi1TY2BB4DxIBK7bwAjBaNh17eZPuFUBF5iwoh7LVsCzEj08iI0E7KCNMfU JO8R+ts3iahwZit7nrKFw4Zkis/45DmZ1d9VRXxAwW4uMDfwL5yF9rOuIvJ7pg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SycFP3JK2z8g5; Sun, 24 Dec 2023 10:08:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BOA8v95056844; Sun, 24 Dec 2023 10:08:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BOA8vD3056841; Sun, 24 Dec 2023 10:08:57 GMT (envelope-from git) Date: Sun, 24 Dec 2023 10:08:57 GMT Message-Id: <202312241008.3BOA8vD3056841@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 581c7caa3b1b - main - x11-wm/dwm: Update code for XF86Audio in DWM List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 581c7caa3b1bbdeb0267642105eea875b4928c94 Auto-Submitted: auto-generated The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=581c7caa3b1bbdeb0267642105eea875b4928c94 commit 581c7caa3b1bbdeb0267642105eea875b4928c94 Author: Piotr Kubaj AuthorDate: 2023-12-24 10:05:53 +0000 Commit: Piotr Kubaj 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 */