From f5cd85d515e066e2f179a54993e62265b75f9ba3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 27 Sep 2023 11:28:16 -0500 Subject: adding screenshot command maimpick is a shell script loaded via my dotfile system that leverages dmenu for many different screenshot types --- config.def.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.def.h b/config.def.h index 052320e..09dd3ca 100644 --- a/config.def.h +++ b/config.def.h @@ -138,6 +138,7 @@ static const char *browsercmd[] = { "firefox", NULL }; // default browser; resp static const char *editorcmd[] = { "emacs", NULL }; // default editor; respects $VISUAL env variable static const char *torbrowsercmd[] = { "tor-browser", NULL }; static const char *bluetoothcmd[] = { "blueman-manager", NULL }; +static const char *screenshotcmd[] = { "maimpick", NULL }; static const char *exitcmd[] = { "dmenuexitmenu", NULL }; // script that provides exit options /* volume control */ @@ -198,6 +199,7 @@ static Key keys[] = { { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, { MODKEY|ShiftMask, XK_b, spawn, {.v = bluetoothcmd } }, + { 0, XK_Print, spawn, {.v = screenshotcmd } }, { MODKEY|ShiftMask, XK_q, spawn, {.v = exitcmd } }, { MODKEY|ShiftMask, XK_BackSpace, quit, {0} }, { MODKEY|ShiftMask, XK_Escape, self_restart, {0} }, -- cgit v1.2.3