projects
/
dwm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor customizations to `config.h` (e.g. keybindings for lockscreen, screenshot,...
[dwm]
/
config.h
diff --git
a/config.h
b/config.h
index
9835e4d
..
0eb4373
100644
(file)
--- a/
config.h
+++ b/
config.h
@@
-29,8
+29,7
@@
static const Rule rules[] = {
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
- { "Gimp", NULL, NULL, 0, 1, -1 },
- { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
+ { "sample", NULL, NULL, 0, 1, -1 },
};
/* layout(s) */
};
/* layout(s) */
@@
-59,7
+58,9
@@
static const Layout layouts[] = {
/* commands */
static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
/* commands */
static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
-static const char *termcmd[] = { "st", NULL };
+static const char *termcmd[] = { "xterm", NULL };
+static const char *lockcmd[] = { "xscreensaver-command", "-lock", NULL };
+static const char *screenshotcmd[] = { "screenshot", NULL };
static const char *layoutmenu_cmd = "layoutmenu.sh";
static const Key keys[] = {
static const char *layoutmenu_cmd = "layoutmenu.sh";
static const Key keys[] = {
@@
-97,7
+98,9
@@
static const Key keys[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
- { MODKEY|ShiftMask, XK_q, quit, {0} },
+ { MODKEY|ShiftMask, XK_q, quitprompt, {0} },
+ { MODKEY, XK_Escape, spawn, {.v = lockcmd } },
+ { MODKEY|ShiftMask, XK_Escape, spawn, {.v = screenshotcmd } },
};
/* button definitions */
};
/* button definitions */