X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=1110acc8a288db84e283cd535d5e2838fcd2770a;hb=91d04b15f0bb16d5b31ad92ea1e6a0066e589956;hp=245b952c4109af4c33f20fdb7c1e87c6d1689ea4;hpb=c00ee3eb78706a5efdcebcba8569630bdfb214f7;p=surf.git diff --git a/config.def.h b/config.def.h index 245b952..1110acc 100644 --- a/config.def.h +++ b/config.def.h @@ -5,12 +5,13 @@ static char *progress_trust = "#00FF00"; static char *stylefile = ".surf/style.css"; static char *scriptfile = ".surf/script.js"; static char *cookiefile = ".surf/cookies.txt"; -static char *dldir = ".surf/dl"; -static time_t sessiontime = 3600; +static char *dldir = ".surf/dl/"; +static time_t sessiontime = 0; +#define NOBACKGROUND 0 #define SETPROP(p) { .v = (char *[]){ "/bin/sh", "-c", \ - "prop=\"`dmenu < /dev/null`\" &&" \ - "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ + "prop=\"`xprop -id $1 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \ + "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ p, winid, NULL } } #define MODKEY GDK_CONTROL_MASK static Key keys[] = {