From 0214b3df3d42aab7579ca14aa56119ff18f703fc Mon Sep 17 00:00:00 2001 From: hazen2215 Date: Sun, 13 Aug 2023 00:31:31 +0900 Subject: [PATCH] config.h: add copyout --- config.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index cc0040c..392d3fd 100644 --- a/config.h +++ b/config.h @@ -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 = ©out} }, }; /*