From a2b1dfe1ba2309fe6ce615ed02fc6e36efed99e9 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 13 Dec 2018 17:23:38 -0500 Subject: ctrl-l chooses urls with xurls and dmenu --- config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index c4a112e..ba29ff4 100644 --- a/config.h +++ b/config.h @@ -207,6 +207,9 @@ MouseKey mkeys[] = { { Button5, MODKEY|ShiftMask, zoom, {.f = -1} }, }; +static char *openurlcmd[] = { "/bin/sh", "-c", + "xurls | dmenu -l 10 | xargs -r xdg-open", + "externalpipe", NULL }; static Shortcut shortcuts[] = { /* mask keysym function argument */ @@ -239,6 +242,7 @@ static Shortcut shortcuts[] = { { MODKEY|ShiftMask, XK_J, zoom, {.f = -1} }, { MODKEY|ShiftMask, XK_U, zoom, {.f = +2} }, { MODKEY|ShiftMask, XK_D, zoom, {.f = -2} }, + { MODKEY, XK_l, externalpipe, { .v = openurlcmd } }, }; /* -- cgit v1.2.3