X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=1110acc8a288db84e283cd535d5e2838fcd2770a;hb=91d04b15f0bb16d5b31ad92ea1e6a0066e589956;hp=ac6571a964e143e15853c9dd965021b2fc40dade;hpb=c30a95c635bbd6a737096067e000993582ff75cf;p=surf.git diff --git a/config.def.h b/config.def.h index ac6571a..1110acc 100644 --- a/config.def.h +++ b/config.def.h @@ -5,11 +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", \ - "xprop -id $1 -f $0 8s -set $0 \"`echo -n | dmenu || exit 0`\"", \ + "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[] = {