config.h: add copyout

This commit is contained in:
hazen2215 2023-08-13 00:31:31 +09:00
parent f4679baf5c
commit 0214b3df3d
1 changed files with 3 additions and 2 deletions

View File

@ -191,8 +191,8 @@ static MouseShortcut mshortcuts[] = {
};
static ExternalPipe pager = { .histlines = -1, .cmd = (char *const[]){ "st-pager", NULL } };
static ExternalPipe copyout = { .histlines = -1, .cmd = (char *const[]){ "st-copyout", NULL } };
static ExternalPipe urlview = { .histlines = -1, .cmd = (char *const[]){ "env", "FUZZY=dmenu -l 40", "urlview", NULL } };
static ExternalPipe copyout = { .histlines = -1, .cmd = (char *const[]){ "st-copyout", NULL } };
#define MODKEY Mod4Mask
#define TERMMOD (ControlMask|ShiftMask)
@ -205,7 +205,7 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_plus, zoom, {.f = +1} },
{ TERMMOD, XK_underscore, zoom, {.f = -1} },
{ TERMMOD, XK_parenright, zoomreset, {.f = 0} },
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
/* { TERMMOD, XK_C, clipcopy, {.i = 0} }, */
{ TERMMOD, XK_V, clippaste, {.i = 0} },
{ TERMMOD, XK_Y, clippaste, {.i = 0} },
{ MODKEY, XK_v, clippaste, {.i = 0} },
@ -232,6 +232,7 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Return, newterm, {.i = 0} },
{ TERMMOD, XK_P, externalpipe, {.v = &pager} },
{ TERMMOD, XK_S, externalpipe, {.v = &urlview} },
{ TERMMOD, XK_C, externalpipe, {.v = &copyout} },
};
/*