commit 3022de3a0c13f21b2eaf6c1b0e123939564e259d
parent c77bee29623fc80e5fe575e0fddf1137cf24a93d
Author: Devin J. Pohly <djpohly@gmail.com>
Date: Sat, 21 Apr 2018 18:49:29 -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.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/st.suckless.org/patches/externalpipe/index.md b/st.suckless.org/patches/externalpipe/index.md
@@ -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 } },