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 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config.h') 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 } }, }; /* -- cgit v1.2.3