summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2022-12-05 01:30:28 +0100
committeryuzu-eva <stevenhu@web.de>2022-12-05 01:30:28 +0100
commitebcda572d47b20a5c71ab4fe524c8b1902466ea8 (patch)
treef5f3153fdc1b1863868b486a60b0022e7fe21978
parent402a8bc545e1e345103e00f4ff2aa44d9350e50c (diff)
added keybind for copying urls
-rw-r--r--config.h4
-rwxr-xr-xstbin110368 -> 110496 bytes
-rw-r--r--x.obin79096 -> 79400 bytes
3 files changed, 3 insertions, 1 deletions
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
--- a/st
+++ b/st
Binary files differ
diff --git a/x.o b/x.o
index 9a944ea..e0a7f44 100644
--- a/x.o
+++ b/x.o
Binary files differ