From 7ba538ac427b68b5a91792c65380453cc27aacb3 Mon Sep 17 00:00:00 2001 From: Sn4il Date: Sun, 5 Jan 2025 13:22:37 +0300 Subject: =?UTF-8?q?DWM=20-=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B3=D1=83=D0=BB=D0=B8=D1=80=D0=BE=D0=B2=D0=BA?= =?UTF-8?q?=D1=83=20=D0=B7=D0=B2=D1=83=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dwm/config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dwm/config.h') diff --git a/dwm/config.h b/dwm/config.h index f2f041a..cf91686 100644 --- a/dwm/config.h +++ b/dwm/config.h @@ -1,4 +1,5 @@ /* See LICENSE file for copyright and license details. */ +#include /* appearance */ static const unsigned int borderpx = 3; /* border pixel of windows */ @@ -71,6 +72,9 @@ static const char *brightercmd[] = { "ddcutil", "setvcp", "10", "+", "1", NULL static const char *darkercmd[] = { "ddcutil", "setvcp", "10", "-", "1", NULL }; static const char *dunstcmd[] = { "dunstctl", "close-all", NULL }; static const char *flameshot[] = { "flameshot", "gui", NULL }; +static const char *upvol[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; +static const char *downvol[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; +static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -101,6 +105,9 @@ static const Key keys[] = { { MODKEY, XK_period, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, + { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, + { 0, XF86XK_AudioMute, spawn, {.v = mutevol } }, + { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) -- cgit v1.2.3