X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=config.def.h;h=245b952c4109af4c33f20fdb7c1e87c6d1689ea4;hb=7365214bbfd5bddacd0bd00a10104df9d7899c67;hp=e61cf6ac37b515d759acde04cab94fc1cba675a3;hpb=87563c7e9d8a11472791c0e1686ae07bb6aa544d;p=surf.git diff --git a/config.def.h b/config.def.h index e61cf6a..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[] = { @@ -42,4 +43,5 @@ static Item items[] = { { "Stop", stop, { 0 } }, { "Paste URI", clipboard, { .b = TRUE } }, { "Copy URI", clipboard, { .b = FALSE } }, + { "Download", download, { 0 } }, };