Skip to content

Instantly share code, notes, and snippets.

@laemmy
Last active June 23, 2018 09:29
Show Gist options
  • Save laemmy/a0e6347efaf42d7f2a4f6be8cc4e6836 to your computer and use it in GitHub Desktop.
Save laemmy/a0e6347efaf42d7f2a4f6be8cc4e6836 to your computer and use it in GitHub Desktop.
My diff patch for DWM config.h
2a3,11
> 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 };
>
>
> /* Add to keys[] array. With 0 as modifier, you are able to use the keys directly. */
>
>
>
31a41,42
> { "Shutter", NULL, NULL, 1 << 8, 0, -1 },
>
47c58
< #define MODKEY Mod1Mask
---
> #define MODKEY Mod4Mask
63a75,81
>
> { 0, 0x1008ff13, spawn, {.v = upvol } },
> { 0, 0x1008ff11, spawn, {.v = downvol } },
> { 0, 0x1008ff12, spawn, {.v = mutevol } },
> { 0, 0x1008ff02, spawn, {.v = mutevol } },
> { 0, 0x1008ff03, spawn, {.v = mutevol } },
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment