externalpipe

Description

Reading and writing st’s screen through a pipe.

Example

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[] = {
    ...
    { TERMMOD, XK_U, externalpipe, { .v = openurlcmd } },
};

(xurls and open are external scripts)

Download

Authors