From b6d8bfcb60e3f95171107de9264085a193c0bf94 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sun, 21 Apr 2024 09:33:01 +0200 Subject: [PATCH] Add scrot hotkeys --- config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.h b/config.h index b3df15c..cd74ac7 100644 --- a/config.h +++ b/config.h @@ -59,9 +59,13 @@ static const Layout layouts[] = { 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 *scrotcmd[] = { "i3-scrot", "-w", NULL }; +static const char *scrotcmd2[] = { "i3-scrot", "-s", NULL }; static const Key keys[] = { /* modifier key function argument */ + { 0, XK_Print, spawn, {.v = scrotcmd } }, + { MODKEY, XK_Print, spawn, {.v = scrotcmd2 } }, { MODKEY, XK_d, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_b, togglebar, {0} },