Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define SETPROP(r, s, p) { \
- .v = (const char *[]){ "/bin/sh", "-c", \
- "prop=\"$(printf '%b' \"$(xprop -id $1 $2 " \
- "| sed \"s/^$2(STRING) = //;s/^\\\"\\(.*\\)\\\"$/\\1/\")\" " \
- "| dmenu -p \"$4\" -w $1)\" && xprop -id $1 -f $3 8s -set $3 \"$prop\"", \
- "surf-setprop", winid, r, s, p, NULL \
- } \
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement