sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 37ed0e41bd20c9b565b10ef0f8fe0384eca7a10c
parent 1d0a365ac1381b4353461c9bc4d6c2ebfc9976b3
Author: Lucas Gabriel Vuotto <lvuotto92@gmail.com>
Date:   Thu,  8 Jun 2017 12:47:59 -0300

[st][externalpipe] adjust docs to new improvements

Signed-off-by: Lucas Gabriel Vuotto <lvuotto92@gmail.com>

Diffstat:
Mst.suckless.org/patches/externalpipe.md | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/st.suckless.org/patches/externalpipe.md b/st.suckless.org/patches/externalpipe.md @@ -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