Skip to content

Instantly share code, notes, and snippets.

@umiswing
Forked from neuro-sys/dwmconfig.h
Created September 27, 2023 18:20
Show Gist options
  • Save umiswing/01a5ddb07fa49b34ce3822c1b8d96e8b to your computer and use it in GitHub Desktop.
Save umiswing/01a5ddb07fa49b34ce3822c1b8d96e8b to your computer and use it in GitHub Desktop.
dwm volume control
/**
* config.h
* ALT + F11 | F12
*/
static const char *upvol[] = { "amixer", "set", "Master", "3+", NULL };
static const char *downvol[] = { "amixer", "set", "Master", "3-", NULL };
static const char *mutevol[] = { "amixer", "set", "Master", "toggle", NULL };
static Key keys[] = {
{ MODKEY, XK_F12, spawn, {.v = upvol } },
{ MODKEY, XK_F11, spawn, {.v = downvol } },
{ MODKEY, XK_F9, spawn, {.v = mutevol } },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment