summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2022-08-31 20:57:21 +0200
committeryuzu-eva <stevenhu@web.de>2022-08-31 20:57:21 +0200
commit03399cc7b724406fa144cc0c89aa54ea17f2e3fe (patch)
tree7cdaa075ef50399ee881e92e0073bfb2b0f97136
parentadfadfd4b7df20c6adf1cc8ea0cd0bc9a31f844a (diff)
changed volume control cmd to change current sink
-rwxr-xr-xconfig.h8
-rwxr-xr-xdwmbin75040 -> 75040 bytes
-rw-r--r--dwm.obin63744 -> 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
--- a/dwm
+++ b/dwm
Binary files differ
diff --git a/dwm.o b/dwm.o
index 64be372..2a78ad9 100644
--- a/dwm.o
+++ b/dwm.o
Binary files differ