summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorjoshua <joshua@joshuayun.com>2023-12-23 12:07:02 -0500
committerjoshua <joshua@joshuayun.com>2023-12-23 12:07:02 -0500
commit5821fed4cfe0ae6753c1abe1981f2df0acbc09f7 (patch)
tree7754e7a13f234cee54156249fcde4ad8573ed671 /config.def.h
parentcfea1741794fd7caba75078105ad95f2bafdd2ed (diff)
downloaddwm-5821fed4cfe0ae6753c1abe1981f2df0acbc09f7.tar.gz
patched in scratch pads
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index aee3db9..5e00946 100644
--- a/config.def.h
+++ b/config.def.h
@@ -31,9 +31,23 @@ static char *colors[][3] = {
[SchemeSel] = { selfgcolor, selbgcolor, selbordercolor },
};
+typedef struct {
+ const char *name;
+ const void *cmd;
+} Sp;
+const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", NULL };
+const char *spcmd2[] = {"st", "-n", "spfm", "-g", "144x41", "-e", "ranger", NULL };
+const char *spcmd3[] = {"keepassxc", NULL };
+static Sp scratchpads[] = {
+ /* name cmd */
+ {"spterm", spcmd1},
+ {"spranger", spcmd2},
+ {"keepassxc", spcmd3},
+};
+
+
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
-
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class
@@ -161,6 +175,9 @@ static const Key keys[] = {
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
+ { MODKEY, XK_y, togglescratch, {.ui = 0 } },
+ { MODKEY, XK_u, togglescratch, {.ui = 1 } },
+ { MODKEY, XK_x, togglescratch, {.ui = 2 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
@@ -184,7 +201,7 @@ static const Button buttons[] = {
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
- { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
+ { ClkClientWin, MODKEY, Button1, resizemouse, {0} },
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },