tconfig.h: fix macros for external processes - surf - [fork] customized build of surf, the suckless webkit browser
(HTM) git clone git://src.adamsgaard.dk/surf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 46d2270f12175cd474f0d45ca0111edcafba768f
(DIR) parent d6c0c879c5b7bf826fe962c6d21ab3c01b514465
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 25 Sep 2020 16:34:52 +0200
config.h: fix macros for external processes
Diffstat:
M config.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/config.h b/config.h
t@@ -112,7 +112,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
/* VIDEOPLAYTABBED(URI) */
#define VIDEOPLAYTABBED(u) {\
- .v = (const char *[]){ "/bin/sh", "-c", \
+ .v = (const char *[]){ "/bin/sh", "-c", "-x", \
"mpv --really-quiet \"$(echo $(xprop -id $0 $1 | \
cut -d '\"' -f2) )\"",\
winid, u, NULL \
t@@ -121,10 +121,10 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
/* BOOKMARK(URI) */
#define BOOKMARKURI(r) {\
- .v = (const char *[]){ "st", "-e", "/bin/sh", "-c", \
+ .v = (const char *[]){ "st", "-e", "/bin/sh", "-c", "-x", \
"bookmark \"$(echo $(xprop -id $0 $1) | cut -d '\"' -f2)\" " \
- "\"$(echo $(xprop -id $0 $1) | cut -d '\"' -f2 " \
- "| sed 's/.*https*:\\/\\/\\(www\\.\\)\\?//')\" ",\
+ "\"$(echo $(xprop -id $0 _NET_WM_NAME) | cut -d '\"' -f2 " \
+ "| sed 's,.* | ,,')\" ",\
winid, r, NULL \
} \
}