index.md - sites - public wiki contents of suckless.org | |
git clone git://git.suckless.org/sites | |
Log | |
Files | |
Refs | |
--- | |
index.md (1894B) | |
--- | |
1 externalpipe | |
2 ============ | |
3 | |
4 Description | |
5 ----------- | |
6 Reading and writing st's screen through a pipe. | |
7 | |
8 Example | |
9 ------- | |
10 config.h example, binding `TERMMOD + U` to extract all visible URLs and … | |
11 dmenu to select and open one: | |
12 | |
13 static char *openurlcmd[] = { "/bin/sh", "-c", | |
14 "xurls | dmenu -l 10 -w $WINDOWID | xargs -r open", | |
15 "externalpipe", NULL }; | |
16 Shortcut shortcuts[] = { | |
17 ... | |
18 { TERMMOD, XK_U, externalpipe, { .v = openurlcmd } }, | |
19 }; | |
20 | |
21 ([xurls](https://raw.github.com/bobrippling/perlbin/master/xurls) and | |
22 [open](https://github.com/bobrippling/open) are external scripts) | |
23 | |
24 ### Example Shell Scripts | |
25 | |
26 * [link grabber](linkgrabber.sh) - similar to the function above, but wi… | |
27 xurls dependency | |
28 * [edit screen](editscreen.sh) - open screen in `$EDITOR` for copying t… | |
29 | |
30 Download | |
31 -------- | |
32 * [st-externalpipe-0.4.1.diff](st-externalpipe-0.4.1.diff) | |
33 * [st-externalpipe-0.5.diff](st-externalpipe-0.5.diff) | |
34 * [st-externalpipe-0.6.diff](st-externalpipe-0.6.diff) | |
35 * [st-externalpipe-0.7.diff](st-externalpipe-0.7.diff) | |
36 * [st-externalpipe-20170608-b331da5.diff](st-externalpipe-20170608-b331d… | |
37 * [st-externalpipe-0.8.diff](st-externalpipe-0.8.diff) | |
38 * [st-externalpipe-0.8.1.diff](st-externalpipe-0.8.1.diff) | |
39 * [st-externalpipe-20181016-3be4cf1.diff](st-externalpipe-20181016-3be4c… | |
40 * [st-externalpipe-0.8.2.diff](st-externalpipe-0.8.2.diff) | |
41 * [st-externalpipe-0.8.4.diff](st-externalpipe-0.8.4.diff) | |
42 * [st-externalpipe-0.8.5.diff](st-externalpipe-0.8.5.diff) | |
43 | |
44 When using the scrollback patch, you can apply this patch ontop in order… | |
45 externalpipe onto the entire terminal history: | |
46 | |
47 * [st-externalpipe-eternal-0.8.3.diff](st-externalpipe-eternal-0.8.3.dif… | |
48 | |
49 Authors | |
50 ------- | |
51 * Rob Pilling - <[email protected]> (original, 0.8, git ports) | |
52 * Laslo Hunhold - <[email protected]> (0.4.1, 0.5, 0.6, git ports) | |
53 * Lucas Gabriel Vuotto - <[email protected]> (0.7, git ports) |