diff --git a/config.def.h b/config.def.h index 0bee321..34045d6 100644 --- a/config.def.h +++ b/config.def.h @@ -184,6 +184,8 @@ static MouseShortcut mshortcuts[] = { #define MODKEY Mod1Mask #define TERMMOD (ControlMask|ShiftMask) +static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL }; + static Shortcut shortcuts[] = { /* mask keysym function argument */ { MODKEY, XK_Break, sendbreak, {.i = 0} }, @@ -199,6 +201,7 @@ static Shortcut shortcuts[] = { { MODKEY, XK_U, zoom, {.f = +1} }, { MODKEY|ShiftMask, XK_U, zoom, {.f = +1} }, { MODKEY|ShiftMask, XK_I, zoom, {.f = -1} }, + { MODKEY, XK_o, externalpipe, {.v = copyoutput } }, }; /*