Advertisement
Guest User

Untitled

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