From ebcda572d47b20a5c71ab4fe524c8b1902466ea8 Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Mon, 5 Dec 2022 01:30:28 +0100 Subject: added keybind for copying urls --- config.h | 4 +++- st | Bin 110368 -> 110496 bytes x.o | Bin 79096 -> 79400 bytes 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index fae6224..b50ffc1 100644 --- a/config.h +++ b/config.h @@ -192,6 +192,7 @@ static MouseShortcut mshortcuts[] = { #define TERMMOD (ControlMask|ShiftMask) static char *openurlcmd[] = { "/bin/sh", "-c", "st-urlhandler -o", "externalpipe", NULL }; +static char *copyurlcmd[] = { "/bin/sh", "-c", "st-urlhandler -c", "externalpipe", NULL }; static Shortcut shortcuts[] = { /* mask keysym function argument */ @@ -207,7 +208,8 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Y, selpaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, - { MODKEY|ControlMask, XK_o, externalpipe, {.v = openurlcmd } }, + { MODKEY, XK_o, externalpipe, {.v = openurlcmd } }, + { MODKEY, XK_c, externalpipe, {.v = copyurlcmd } }, }; /* diff --git a/st b/st index d84a5a7..628497e 100755 Binary files a/st and b/st differ diff --git a/x.o b/x.o index 9a944ea..e0a7f44 100644 Binary files a/x.o and b/x.o differ -- cgit v1.2.3