Add act on last keyboard shortcuts

master
Jonathan Hodgson 3 years ago
parent cb0a34b6b8
commit 42d54181e2
  1. 7
      config.def.h

@ -83,7 +83,7 @@ static const char *fullscreenshot[] = { "screenshot", NULL };
static const char *activescreenshot[] = { "screenshot", "window", NULL }; static const char *activescreenshot[] = { "screenshot", "window", NULL };
static const char *selectscreenshot[] = { "screenshot", "select", 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 }; 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 *toggleKeyboard[] = { "toggleKeyboard", NULL };
static const char *actOnLast[] = { "actOnLast", NULL };
static const char *actOnLastDefault[] = { "actOnLast", "--first", NULL };
#include "movestack.c" #include "movestack.c"
#define MULTIKEY_THRESHOLD_MS_PRESS 200 #define MULTIKEY_THRESHOLD_MS_PRESS 200
@ -189,6 +192,8 @@ static Key keys[] = {
{ MODKEY, XK_w, 0, spawn, {.v = whichproject } }, { MODKEY, XK_w, 0, spawn, {.v = whichproject } },
{ MODKEY|ShiftMask, XK_w, 0, spawn, {.v = project } }, { MODKEY|ShiftMask, XK_w, 0, spawn, {.v = project } },
{ MODKEY, XK_d, 0, spawn, {.v = pass } }, { MODKEY, XK_d, 0, spawn, {.v = pass } },
{ MODKEY, XK_o, 0, spawn, {.v = actOnLast } },
{ MODKEY|ShiftMask, XK_o, 0, spawn, {.v = actOnLastDefault } },
//Background //Background
{ MODKEY, XK_e, 0, spawn, {.v = setBackgroundRandom } }, { MODKEY, XK_e, 0, spawn, {.v = setBackgroundRandom } },
{ MODKEY|ControlMask, XK_e, 0, spawn, {.v = backgroundDetails } }, { MODKEY|ControlMask, XK_e, 0, spawn, {.v = backgroundDetails } },

Loading…
Cancel
Save