Enable XF86XK_AudioMute with pamixer
This commit is contained in:
		@@ -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") },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user