diff options
| author | yuzu-eva <stevenhu@web.de> | 2022-08-31 20:57:21 +0200 |
|---|---|---|
| committer | yuzu-eva <stevenhu@web.de> | 2022-08-31 20:57:21 +0200 |
| commit | 03399cc7b724406fa144cc0c89aa54ea17f2e3fe (patch) | |
| tree | 7cdaa075ef50399ee881e92e0073bfb2b0f97136 | |
| parent | adfadfd4b7df20c6adf1cc8ea0cd0bc9a31f844a (diff) | |
changed volume control cmd to change current sink
| -rwxr-xr-x | config.h | 8 | ||||
| -rwxr-xr-x | dwm | bin | 75040 -> 75040 bytes | |||
| -rw-r--r-- | dwm.o | bin | 63744 -> 63776 bytes |
3 files changed, 4 insertions, 4 deletions
@@ -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} }, }; |
