sites

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

index.md (1545B)


      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 present
     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 without
     27   xurls dependency
     28 * [edit screen](editscreen.sh) - open screen in `$EDITOR`  for copying text
     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-b331da5.diff)
     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-3be4cf1.diff)
     40 * [st-externalpipe-0.8.2.diff](st-externalpipe-0.8.2.diff)
     41 
     42 Authors
     43 -------
     44 * Rob Pilling - <robpilling@gmail.com>
     45 * Laslo Hunhold - <dev@frign.de> (0.4.1, 0.5, 0.6, git ports)
     46 * Lucas Gabriel Vuotto - <lvuotto92@gmail.com> (0.7, git ports)