1
0

Enable XF86XK_AudioMute with pamixer

This commit is contained in:
Emil Miler 2022-11-29 09:46:33 +01:00
parent 5a864024ac
commit d1e2055789

View File

@ -78,6 +78,7 @@ static const char *xkbmapcz[] = { "setxkbmap", "cz", "qwerty", NULL };
static const char *mixercmd[] = { "pavucontrol", NULL }; static const char *mixercmd[] = { "pavucontrol", NULL };
static const char *volup[] = { "pamixer", "--increase", "5", NULL }; static const char *volup[] = { "pamixer", "--increase", "5", NULL };
static const char *voldown[] = { "pamixer", "--decrease", "5", NULL }; static const char *voldown[] = { "pamixer", "--decrease", "5", NULL };
static const char *volmute[] = { "pamixer", "-t", NULL };
static const char *mpcstop[] = { "mpc", "stop", NULL }; static const char *mpcstop[] = { "mpc", "stop", NULL };
static const char *mpctoggle[] = { "mpc", "toggle", NULL }; static const char *mpctoggle[] = { "mpc", "toggle", NULL };
@ -137,6 +138,7 @@ static const Key keys[] = {
{ 0, XF86XK_AudioNext, spawn, {.v = mpcnext } }, { 0, XF86XK_AudioNext, spawn, {.v = mpcnext } },
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup } },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = voldown } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = voldown } },
{ 0, XF86XK_AudioMute, spawn, {.v = volmute } },
{ MODKEY, XK_Pause, spawn, SHCMD("setxkbmap us; slock & sleep 0.2; loginctl suspend") }, { MODKEY, XK_Pause, spawn, SHCMD("setxkbmap us; slock & sleep 0.2; loginctl suspend") },
{ 0, XK_Print, spawn, SHCMD("shotgun $(slop -f '-i %i -g %g') - | tee /home/$USER/scrot/$(date +'%F_%T').png | xclip -t 'image/png' -selection c") }, { 0, XK_Print, spawn, SHCMD("shotgun $(slop -f '-i %i -g %g') - | tee /home/$USER/scrot/$(date +'%F_%T').png | xclip -t 'image/png' -selection c") },
{ 0, XK_Print, spawn, SHCMD("shotgun - | tee /home/$USER/scrot/$(date +'%F_%T').png | xclip -t 'image/png' -selection c") }, { 0, XK_Print, spawn, SHCMD("shotgun - | tee /home/$USER/scrot/$(date +'%F_%T').png | xclip -t 'image/png' -selection c") },