aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2026-01-22 21:36:00 +0000
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2026-01-22 21:36:00 +0000
commit5d51b613de66ab2eb312ca4184b8f84e51ecb1fb (patch)
tree43da1385e65c8cd7579384cbe0f72e1fcd26f162 /config.h
parent33674943e8205d2a08edec4670332350e728124a (diff)
add url bindings
Diffstat (limited to 'config.h')
-rw-r--r--config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h b/config.h
index e28d462..9c038f5 100644
--- a/config.h
+++ b/config.h
@@ -216,6 +216,10 @@ static MouseShortcut mshortcuts[] = {
{ XK_ANY_MOD, Button5, ttysend, {.s = "\005"} },
};
+static char *openurlcmd[] = { "/bin/sh", "-c", "st-urlhandler -o", "externalpipe", NULL };
+static char *copyurlcmd[] = { "/bin/sh", "-c", "st-urlhandler -c", "externalpipe", NULL };
+static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL };
+
static Shortcut shortcuts[] = {
/* mask keysym function argument */
{ XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} },
@@ -234,6 +238,9 @@ static Shortcut shortcuts[] = {
{ MODKEY, XK_d, kscrolldown, {.i = -1} },
{ MODKEY, XK_k, kscrollup, {.i = +1} },
{ MODKEY, XK_j, kscrolldown, {.i = +1} },
+ { MODKEY, XK_l, externalpipe, {.v = openurlcmd } },
+ { MODKEY, XK_y, externalpipe, {.v = copyurlcmd } },
+ { MODKEY, XK_o, externalpipe, {.v = copyoutput } },
};
/*