static char *stylefile = ".surf/style.css";
static char *scriptfile = ".surf/script.js";
static char *cookiefile = ".surf/cookies.txt";
-static char *dldir = ".surf/dl";
+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=\"`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[] = {
{ "Stop", stop, { 0 } },
{ "Paste URI", clipboard, { .b = TRUE } },
{ "Copy URI", clipboard, { .b = FALSE } },
+ { "Download", download, { 0 } },
};