New approach to url opening.
This commit is contained in:
parent
5957ed5673
commit
a85fe068bd
4 changed files with 7 additions and 27 deletions
|
@ -191,8 +191,9 @@ static MouseShortcut mshortcuts[] = {
|
|||
#define MODKEY ControlMask
|
||||
#define SHTKEY (ControlMask|ShiftMask)
|
||||
|
||||
static char *openurlcmd[] = { "/bin/sh", "-c", "st-url -o", "externalpipe", NULL };
|
||||
static char *copyurlcmd[] = { "/bin/sh", "-c", "st-url -c", "externalpipe", NULL };
|
||||
//static char *openurlcmd[] = { "/bin/sh", "-c", "st-url -o", "externalpipe", NULL };
|
||||
static char *openurlcmd[] = {"/bin/sh", "-c", "xurls | dmenu -c -l 20 -i | xargs -r $BROWSER",
|
||||
"externalpipe", NULL};
|
||||
|
||||
static Shortcut shortcuts[] = {
|
||||
/* mask keysym function argument */
|
||||
|
@ -203,7 +204,6 @@ static Shortcut shortcuts[] = {
|
|||
{ SHTKEY, XK_V, clippaste, {.i = 0} },
|
||||
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
|
||||
{ MODKEY, XK_o, externalpipe, {.v = openurlcmd } },
|
||||
{ SHTKEY, XK_O, externalpipe, {.v = copyurlcmd } },
|
||||
{ MODKEY, XK_k, kscrollup, {.i = 1} },
|
||||
{ MODKEY, XK_j, kscrolldown, {.i = 1} },
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue