From 402a8bc545e1e345103e00f4ff2aa44d9350e50c Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Mon, 5 Dec 2022 01:21:01 +0100 Subject: add patch externalpipe + st-urlhandler --- config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index 102ff9e..fae6224 100644 --- a/config.h +++ b/config.h @@ -191,6 +191,8 @@ static MouseShortcut mshortcuts[] = { #define MODKEY Mod4Mask #define TERMMOD (ControlMask|ShiftMask) +static char *openurlcmd[] = { "/bin/sh", "-c", "st-urlhandler -o", "externalpipe", NULL }; + static Shortcut shortcuts[] = { /* mask keysym function argument */ { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, @@ -205,6 +207,7 @@ 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 } }, }; /* -- cgit v1.2.3