From 7e7809ed5442d04707ba3dc771ba03ebef3528b5 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 10 Apr 2021 22:48:43 +0200 Subject: Add `st-urlhandler`. From: https://github.com/LukeSmithxyz/st --- config.def.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 3eaba27..5010e7f 100644 --- a/config.def.h +++ b/config.def.h @@ -202,6 +202,9 @@ static MouseShortcut mshortcuts[] = { #define MODKEY Mod1Mask #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 */ { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, @@ -219,6 +222,8 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Return, newterm, {.i = 0} }, { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, + { MODKEY, XK_l, externalpipe, {.v = openurlcmd } }, + { MODKEY, XK_y, externalpipe, {.v = copyurlcmd } }, }; /* -- cgit v1.2.3