Here's a config.h macro if anyone wants it.
#define INC_SEARCH { .v = (char *[]){ "/bin/sh", "-c", \
"dmenu -r < /dev/null | while read -r find;do xprop -id $0 -f _SURF_FIND 8s "\
"-set _SURF_FIND \"$find\";done", \
winid, NULL } }
On 5 May 2010 20:11, Troels Henriksen wrote:
> The at
The attached match makes dmenu print out the input text as it is
entered, rather than just the final selection.
This is useful if you make surf run the following shell
script snippet...
dmenu -r -p find: |\
while read -r find; do
xprop -id $xid -f _SURF_FIND 8s -set _SURF_FIND "$find"
done
.