commit 37ed0e41bd20c9b565b10ef0f8fe0384eca7a10c
Author: Lucas Gabriel Vuotto <lvuotto92_AT_gmail.com>
Date: Thu Jun 8 12:47:59 2017 -0300
[st][externalpipe] adjust docs to new improvements
Signed-off-by: Lucas Gabriel Vuotto <lvuotto92_AT_gmail.com>
diff --git a/st.suckless.org/patches/externalpipe.md b/st.suckless.org/patches/externalpipe.md
index 806e4bb..98f159c 100644
--- a/st.suckless.org/patches/externalpipe.md
+++ b/st.suckless.org/patches/externalpipe.md
_AT_@ -9,12 +9,15 @@ Reading and writing st's screen through a pipe.
Example
-------
-config.h example, binding Mod1+u to extract all visible URLs and present
+config.h example, binding `TERMMOD + U` to extract all visible URLs and present
dmenu to select and open one:
+ static char *openurlcmd[] = { "/bin/sh", "-c",
+ "xurls | dmenu -l 10 -w $1 | xargs -r open",
+ "externalpipe", winid, NULL };
static Shortcut shortcuts[] = {
...
- { MODKEY, 'u', externalpipe, { .v = "xurls | dmenu -l 10 | xargs -r open" } },
+ { TERMMOD, XK_U, externalpipe, { .v = openurlcmd } },
};
([xurls](
https://raw.github.com/bobrippling/perlbin/master/xurls) and
Received on Thu Jun 08 2017 - 17:50:14 CEST