X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=245b952c4109af4c33f20fdb7c1e87c6d1689ea4;hb=c00ee3eb78706a5efdcebcba8569630bdfb214f7;hp=ac6571a964e143e15853c9dd965021b2fc40dade;hpb=c30a95c635bbd6a737096067e000993582ff75cf;p=surf.git diff --git a/config.def.h b/config.def.h index ac6571a..245b952 100644 --- a/config.def.h +++ b/config.def.h @@ -9,7 +9,8 @@ static char *dldir = ".surf/dl"; static time_t sessiontime = 3600; #define SETPROP(p) { .v = (char *[]){ "/bin/sh", "-c", \ - "xprop -id $1 -f $0 8s -set $0 \"`echo -n | dmenu || exit 0`\"", \ + "prop=\"`dmenu < /dev/null`\" &&" \ + "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ p, winid, NULL } } #define MODKEY GDK_CONTROL_MASK static Key keys[] = {