Last active
June 23, 2018 09:29
-
-
Save laemmy/a0e6347efaf42d7f2a4f6be8cc4e6836 to your computer and use it in GitHub Desktop.
My diff patch for DWM config.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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