ctrl-l chooses urls with xurls and dmenu

This commit is contained in:
Luke Smith
2018-12-13 17:23:38 -05:00
parent 6c93dd4520
commit a2b1dfe1ba
5 changed files with 66 additions and 1 deletions

View File

@@ -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 } },
};
/*