[wiki] [sites] Use $WINDOWID instead of old winid || Devin J. Pohly
commit 3022de3a0c13f21b2eaf6c1b0e123939564e259d
Author: Devin J. Pohly <djpohly_AT_gmail.com>
Date: Sat Apr 21 18:49:29 2018 -0500
Use $WINDOWID instead of old winid
As of 3e44ee5 (or 0.8), $WINDOWID is directly available to spawned
programs and the winid hack is removed. Update the example accordingly.
diff --git a/st.suckless.org/patches/externalpipe/index.md b/st.suckless.org/patches/externalpipe/index.md
index 3795ab07..02c64fca 100644
--- a/st.suckless.org/patches/externalpipe/index.md
+++ b/st.suckless.org/patches/externalpipe/index.md
_AT_@ -13,8 +13,8 @@ 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 };
+ "xurls | dmenu -l 10 -w $WINDOWID | xargs -r open",
+ "externalpipe", NULL };
Shortcut shortcuts[] = {
...
{ TERMMOD, XK_U, externalpipe, { .v = openurlcmd } },
Received on Sun Apr 22 2018 - 02:02:22 CEST
This archive was generated by hypermail 2.3.0
: Sun Apr 22 2018 - 02:12:32 CEST