diff options
| author | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2026-01-22 21:36:00 +0000 |
|---|---|---|
| committer | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2026-01-22 21:36:00 +0000 |
| commit | 5d51b613de66ab2eb312ca4184b8f84e51ecb1fb (patch) | |
| tree | 43da1385e65c8cd7579384cbe0f72e1fcd26f162 /config.h | |
| parent | 33674943e8205d2a08edec4670332350e728124a (diff) | |
add url bindings
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 } }, }; /* |
