diff options
Diffstat (limited to 'dwm-6.2/config.h')
| -rw-r--r-- | dwm-6.2/config.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/dwm-6.2/config.h b/dwm-6.2/config.h index 18c93cb..a20a18b 100644 --- a/dwm-6.2/config.h +++ b/dwm-6.2/config.h @@ -21,11 +21,11 @@ static const char *colors[][3] = { }; static const char *const autostart[] = { - "st", NULL, - "picom_run", NULL, - "fehbg", NULL, - "dunst", NULL, + "fehbg", NULL, + "dmenu_run && killall dmenu", NULL, "dwmblocks", NULL, + "picom_run", NULL, + "dunst", NULL, NULL /* terminate */ }; @@ -66,14 +66,25 @@ static const Layout layouts[] = { #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ + +/* replaces regular quit because it didn't work :( */ +static const char *quitcmd[] = { "killall", "dwm", NULL }; +static const char *browsercmd[] = { "chromium", NULL }; + static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL }; +static const char scratchpadname[] = "ScratchPad"; +static const char scratchpadfile[] = "/tmp/scratchpad_file"; +static const char scratchpadeditor[] = "/usr/bin/vim"; +static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", scratchpadeditor, scratchpadfile, NULL }; + static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_s, spawn, {.v = scratchpadcmd } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, @@ -112,8 +123,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, // Custom keybinds - { MODKEY, XK_f, spawn, SHCMD("surf_run") }, - { MODKEY|ShiftMask, XK_f, spawn, SHCMD("chromium") }, + { MODKEY|ShiftMask, XK_f, spawn, {.v = browsercmd} }, { MODKEY|ShiftMask, XK_b, spawn, SHCMD("brighter") }, { MODKEY|ShiftMask, XK_l, spawn, SHCMD("darker") }, { MODKEY|ShiftMask, XK_u, spawn, SHCMD("vol_up") }, @@ -128,7 +138,7 @@ static Key keys[] = { TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) - { MODKEY|ShiftMask, XK_q, quit, {0} }, + { MODKEY|ShiftMask, XK_q, spawn, {.v = quitcmd } }, }; /* button definitions */ |