diff options
author | Luke Smith <luke@lukesmith.xyz> | 2018-12-13 17:23:38 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2018-12-13 17:23:38 -0500 |
commit | a2b1dfe1ba2309fe6ce615ed02fc6e36efed99e9 (patch) | |
tree | 78ce831d57869f361815b66aaeac2f1858c28aa0 /config.h | |
parent | 6c93dd4520fc74d0dca7d023b95e8dc946cda214 (diff) |
ctrl-l chooses urls with xurls and dmenu
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } }, }; /* |