From 03399cc7b724406fa144cc0c89aa54ea17f2e3fe Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Wed, 31 Aug 2022 20:57:21 +0200 Subject: changed volume control cmd to change current sink --- config.h | 8 ++++---- dwm | Bin 75040 -> 75040 bytes dwm.o | Bin 63744 -> 63776 bytes 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config.h b/config.h index 6cea878..64f0a29 100755 --- a/config.h +++ b/config.h @@ -72,9 +72,9 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() 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 *roficmd[] = { "rofi", "-show", "drun", "-show-icons", NULL }; static const char *termcmd[] = { "kitty", NULL }; -static const char *upvol[] = { "/usr/bin/pactl", "set-sink-volume", "0", "+5%", NULL }; -static const char *downvol[] = { "/usr/bin/pactl", "set-sink-volume", "0", "-5%", NULL }; -static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", "0", "toggle", 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 Key keys[] = { /* modifier key function argument */ @@ -120,7 +120,7 @@ static Key keys[] = { { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol} }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol} }, - { 0, XF86XK_AudioMute, spawn, {.v = mutevol} }, + { 0, XF86XK_AudioMute, spawn, {.v = mutevol} }, }; diff --git a/dwm b/dwm index 1977a15..a45e80e 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.o b/dwm.o index 64be372..2a78ad9 100644 Binary files a/dwm.o and b/dwm.o differ -- cgit v1.2.3