From 84975dfd62112d0c41f16ca6b12a7eeef0b9c6df Mon Sep 17 00:00:00 2001 From: fqbn207 Date: Tue, 17 Dec 2024 12:34:59 +0100 Subject: [PATCH] changed to pactl --- config.def.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/config.def.h b/config.def.h index d582108..0e10375 100644 --- a/config.def.h +++ b/config.def.h @@ -73,9 +73,9 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *termcmd[] = { "st", NULL }; static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; -static const char *upvol[] = { "/usr/bin/wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%+", NULL }; -static const char *downvol[] = { "/usr/bin/wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%-", NULL }; -static const char *mutevol[] = { "/usr/bin/wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle", NULL }; +static const char *upvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL }; +static const char *downvol[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL }; +static const char *mutevol[] = { "pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -86,8 +86,7 @@ static const Key keys[] = { { MODKEY, XK_Left, focusstack, {.i = -1 } }, { MODKEY, XK_i, incnmaster, {.i = +1 } }, { MODKEY, XK_d, incnmaster, {.i = -1 } }, - { MODKEY|ShiftMask, XK_j, rotatestack, {.i = +1 } }, - { MODKEY|ShiftMask, XK_k, rotatestack, {.i = -1 } }, + { MODKEY, XK_r, rotatestack, {.i = -1 } }, { MODKEY|ShiftMask, XK_Left, setmfact, {.f = -0.05} }, { MODKEY|ShiftMask, XK_Right, setmfact, {.f = +0.05} }, { MODKEY, XK_Tab, view, {0} }, @@ -105,8 +104,8 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_h, setcfact, {.f = +0.25} }, { MODKEY|ShiftMask, XK_l, setcfact, {.f = -0.25} }, { MODKEY|ShiftMask, XK_o, setcfact, {.f = 0.00} }, - { MODKEY|Mod1Mask, XK_u, incrgaps, {.i = +1 } }, - { MODKEY|Mod1Mask|ShiftMask, XK_u, incrgaps, {.i = -1 } }, + { MODKEY|Mod1Mask, XK_u, incrgaps, {.i = +3 } }, + { MODKEY|Mod1Mask|ShiftMask, XK_u, incrgaps, {.i = -3 } }, { MODKEY|Mod1Mask, XK_i, incrigaps, {.i = +1 } }, { MODKEY|Mod1Mask|ShiftMask, XK_i, incrigaps, {.i = -1 } }, { MODKEY|Mod1Mask, XK_o, incrogaps, {.i = +1 } },