From 81a95e3c7c2f95ab4ca1731a4a423a3d13dee65f Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sat, 17 Aug 2024 13:30:57 +0400 Subject: scratchpad patched and keybinds added --- config.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index bf30640..c08351e 100644 --- a/config.h +++ b/config.h @@ -69,6 +69,9 @@ 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 *browsercmd[] = { "qutebrowser", NULL }; +static const char scratchpadname[] = "scratchpad"; +static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "70x24", NULL }; + static const char *light_up[] = {"slight", "-i", "5", NULL}, @@ -104,6 +107,9 @@ static const Key keys[] = { { MODKEY, XK_minus, setgaps, {.i = -1 } }, { MODKEY, XK_equal, setgaps, {.i = +1 } }, + { MODKEY, XK_s, togglescratch, {.v = scratchpadcmd } }, + + { 0 , XF86XK_MonBrightnessUp , spawn , {.v = light_up}}, { 0 , XF86XK_MonBrightnessDown, spawn , {.v = light_down}}, { 0 , XF86XK_AudioLowerVolume, spawn , {.v = vol_down}}, -- cgit v1.2.3