From 42d54181e2b63f94b83ebb424a53bea9c4596a4b Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Thu, 3 Feb 2022 10:11:01 +0000 Subject: [PATCH] Add act on last keyboard shortcuts --- config.def.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 8394857..0138e2d 100644 --- a/config.def.h +++ b/config.def.h @@ -83,7 +83,7 @@ static const char *fullscreenshot[] = { "screenshot", NULL }; static const char *activescreenshot[] = { "screenshot", "window", NULL }; static const char *selectscreenshot[] = { "screenshot", "select", NULL }; -static const char *selectscreenshot[] = { "screenrecord", "select", NULL }; +static const char *selectscreenrecord[] = { "screenrecord", "select", NULL }; static const char *greenclip[] = { "rofi", "-modi", "clipboard:greenclip print", "-show", "clipboard", "-run-command", "{cmd}", NULL }; @@ -129,6 +129,9 @@ static const char *powerMenu[] = { "rofi-shutdown", NULL }; static const char *toggleKeyboard[] = { "toggleKeyboard", NULL }; +static const char *actOnLast[] = { "actOnLast", NULL }; +static const char *actOnLastDefault[] = { "actOnLast", "--first", NULL }; + #include "movestack.c" #define MULTIKEY_THRESHOLD_MS_PRESS 200 @@ -189,6 +192,8 @@ static Key keys[] = { { MODKEY, XK_w, 0, spawn, {.v = whichproject } }, { MODKEY|ShiftMask, XK_w, 0, spawn, {.v = project } }, { MODKEY, XK_d, 0, spawn, {.v = pass } }, + { MODKEY, XK_o, 0, spawn, {.v = actOnLast } }, + { MODKEY|ShiftMask, XK_o, 0, spawn, {.v = actOnLastDefault } }, //Background { MODKEY, XK_e, 0, spawn, {.v = setBackgroundRandom } }, { MODKEY|ControlMask, XK_e, 0, spawn, {.v = backgroundDetails } },