summaryrefslogtreecommitdiff
path: root/dwm
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2020-05-17 19:56:46 +0000
committerShubham Saini <shubham6405@gmail.com>2020-05-17 19:56:46 +0000
commit77da1f483c7e595214081f15d9a5e67785d151cc (patch)
tree554b77ffba73ef2f141a3e4973a365681df452cb /dwm
parent3f6d58dbc7d131b8c37aa1b37622540db4a85d42 (diff)
added cmus-controls
Diffstat (limited to 'dwm')
-rw-r--r--dwm/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dwm/config.h b/dwm/config.h
index 359e5e0..7c65071 100644
--- a/dwm/config.h
+++ b/dwm/config.h
@@ -82,6 +82,11 @@ static const char *shut[] = { "shut", NULL };
82static const char *brightup[] = { "doas", "bup", NULL }; 82static const char *brightup[] = { "doas", "bup", NULL };
83static const char *brightdown[] = { "doas", "bdown", NULL }; 83static const char *brightdown[] = { "doas", "bdown", NULL };
84 84
85/* cmus */
86static const char *plyrnext[] = { "cmus-remote", "-n", NULL };
87static const char *plyrprev[] = { "cmus-remote", "-r", NULL };
88static const char *plyrplay[] = { "cmus-remote", "-u", NULL };
89
85/* lock */ 90/* lock */
86static const char *lock[] = { "xset", "s", "activate", NULL }; 91static const char *lock[] = { "xset", "s", "activate", NULL };
87 92
@@ -96,6 +101,9 @@ static Key keys[] = {
96 { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, 101 { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
97 { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightup } }, 102 { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightup } },
98 { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } }, 103 { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } },
104 { 0, XF86XK_AudioNext, spawn, {.v = plyrnext } },
105 { 0, XF86XK_AudioPrev, spawn, {.v = plyrprev } },
106 { 0, XF86XK_AudioPlay, spawn, {.v = plyrplay } },
99 { MODKEY|ShiftMask, XK_Delete, spawn, {.v = lock } }, 107 { MODKEY|ShiftMask, XK_Delete, spawn, {.v = lock } },
100 { MODKEY, XK_b, togglebar, {0} }, 108 { MODKEY, XK_b, togglebar, {0} },
101 { MODKEY, XK_j, focusstack, {.i = +1 } }, 109 { MODKEY, XK_j, focusstack, {.i = +1 } },