Embed dmenu into the surf window by default

This commit is contained in:
Quentin Rameau 2017-05-08 10:20:28 +02:00
parent dca4264863
commit b8b0c05035

View File

@ -55,7 +55,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
.v = (const char *[]){ "/bin/sh", "-c", \ .v = (const char *[]){ "/bin/sh", "-c", \
"prop=\"$(printf '%b' \"$(xprop -id $1 $2 " \ "prop=\"$(printf '%b' \"$(xprop -id $1 $2 " \
"| sed \"s/^$2(STRING) = //;s/^\\\"\\(.*\\)\\\"$/\\1/\")\" " \ "| sed \"s/^$2(STRING) = //;s/^\\\"\\(.*\\)\\\"$/\\1/\")\" " \
"| dmenu)\" && xprop -id $1 -f $3 8s -set $3 \"$prop\"", \ "| dmenu -w $1)\" && xprop -id $1 -f $3 8s -set $3 \"$prop\"", \
"surf-setprop", winid, r, s, NULL \ "surf-setprop", winid, r, s, NULL \
} \ } \
} }