summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2020-05-25 12:03:49 +0000
committerShubham Saini <shubham6405@gmail.com>2020-05-25 12:03:49 +0000
commitb7b5eae7d8788de9183fed05b97dcfabb738290f (patch)
treef72088442c403d37dd2dc0e55c718ca2f97d2431
parent8c65a77150db1013d5be1eff3711461de21e0da0 (diff)
changes
-rw-r--r--dwm/config.h24
-rw-r--r--slock/config.h6
2 files changed, 19 insertions, 11 deletions
diff --git a/dwm/config.h b/dwm/config.h
index 11f6c81..ff7d8fa 100644
--- a/dwm/config.h
+++ b/dwm/config.h
@@ -75,6 +75,11 @@ static const char *shut[] = { "shut", NULL };
75static const char *brightup[] = { "doas", "bup", NULL }; 75static const char *brightup[] = { "doas", "bup", NULL };
76static const char *brightdown[] = { "doas", "bdown", NULL }; 76static const char *brightdown[] = { "doas", "bdown", NULL };
77 77
78/* cmus */
79static const char *plyrnext[] = { "cmus-remote", "-n", NULL };
80static const char *plyrprev[] = { "cmus-remote", "-r", NULL };
81static const char *plyrplay[] = { "cmus-remote", "-u", NULL };
82
78/* lock */ 83/* lock */
79static const char *lock[] = { "xset", "s", "activate", NULL }; 84static const char *lock[] = { "xset", "s", "activate", NULL };
80 85
@@ -89,6 +94,9 @@ static Key keys[] = {
89 { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, 94 { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
90 { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightup } }, 95 { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightup } },
91 { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } }, 96 { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightdown } },
97 { 0, XF86XK_AudioNext, spawn, {.v = plyrnext } },
98 { 0, XF86XK_AudioPrev, spawn, {.v = plyrprev } },
99 { 0, XF86XK_AudioPlay, spawn, {.v = plyrplay } },
92 { MODKEY|ShiftMask, XK_Delete, spawn, {.v = lock } }, 100 { MODKEY|ShiftMask, XK_Delete, spawn, {.v = lock } },
93 { MODKEY, XK_b, togglebar, {0} }, 101 { MODKEY, XK_b, togglebar, {0} },
94 { MODKEY, XK_j, focusstack, {.i = +1 } }, 102 { MODKEY, XK_j, focusstack, {.i = +1 } },
@@ -97,14 +105,14 @@ static Key keys[] = {
97 { MODKEY, XK_d, incnmaster, {.i = -1 } }, 105 { MODKEY, XK_d, incnmaster, {.i = -1 } },
98 { MODKEY, XK_h, setmfact, {.f = -0.05} }, 106 { MODKEY, XK_h, setmfact, {.f = -0.05} },
99 { MODKEY, XK_l, setmfact, {.f = +0.05} }, 107 { MODKEY, XK_l, setmfact, {.f = +0.05} },
100 { MODKEY|Mod4Mask, XK_h, incrgaps, {.i = +1 } }, 108 { MODKEY|Mod1Mask, XK_h, incrgaps, {.i = +1 } },
101 { MODKEY|Mod4Mask, XK_l, incrgaps, {.i = -1 } }, 109 { MODKEY|Mod1Mask, XK_l, incrgaps, {.i = -1 } },
102 { MODKEY|Mod4Mask|ShiftMask, XK_h, incrogaps, {.i = +1 } }, 110 { MODKEY|Mod1Mask|ShiftMask, XK_h, incrogaps, {.i = +1 } },
103 { MODKEY|Mod4Mask|ShiftMask, XK_l, incrogaps, {.i = -1 } }, 111 { MODKEY|Mod1Mask|ShiftMask, XK_l, incrogaps, {.i = -1 } },
104 { MODKEY|Mod4Mask|ControlMask, XK_h, incrigaps, {.i = +1 } }, 112 { MODKEY|Mod1Mask|ControlMask, XK_h, incrigaps, {.i = +1 } },
105 { MODKEY|Mod4Mask|ControlMask, XK_l, incrigaps, {.i = -1 } }, 113 { MODKEY|Mod1Mask|ControlMask, XK_l, incrigaps, {.i = -1 } },
106 { MODKEY|Mod4Mask, XK_0, togglegaps, {0} }, 114 { MODKEY|Mod1Mask, XK_0, togglegaps, {0} },
107 { MODKEY|Mod4Mask|ShiftMask, XK_0, defaultgaps, {0} }, 115 { MODKEY|Mod1Mask|ShiftMask, XK_0, defaultgaps, {0} },
108 { MODKEY, XK_y, incrihgaps, {.i = +1 } }, 116 { MODKEY, XK_y, incrihgaps, {.i = +1 } },
109 { MODKEY, XK_o, incrihgaps, {.i = -1 } }, 117 { MODKEY, XK_o, incrihgaps, {.i = -1 } },
110 { MODKEY|ControlMask, XK_y, incrivgaps, {.i = +1 } }, 118 { MODKEY|ControlMask, XK_y, incrivgaps, {.i = +1 } },
diff --git a/slock/config.h b/slock/config.h
index 6f12b0d..e4867df 100644
--- a/slock/config.h
+++ b/slock/config.h
@@ -1,6 +1,6 @@
1/* user and group to drop privileges to */ 1/* user and group to drop privileges to */
2static const char *user = "nobody"; 2static const char *user = "fd0e";
3static const char *group = "nogroup"; 3static const char *group = "fd0e";
4 4
5static const char *colorname[NUMCOLS] = { 5static const char *colorname[NUMCOLS] = {
6 [INIT] = "black", /* after initialization */ 6 [INIT] = "black", /* after initialization */
@@ -21,4 +21,4 @@ static const char * text_color = "#a8fffe";
21static const char * font_name = "fixed"; 21static const char * font_name = "fixed";
22 22
23/* time in seconds before the monitor shuts down */ 23/* time in seconds before the monitor shuts down */
24static const int monitortime = 5; 24static const int monitortime = 3;