X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=6c143ae682e2834b34be788fabbb4bfc869e9889;hb=e9c9715f52afd3b4e3d512aea9d021e7e1980f63;hp=47943cb47f46a83a4ed441773478fe4b662f1dc0;hpb=52a9c8ca52569167b49aed071be10fe2e1bb677b;p=surf.git diff --git a/config.def.h b/config.def.h index 47943cb..6c143ae 100644 --- a/config.def.h +++ b/config.def.h @@ -5,11 +5,12 @@ 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 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[] = { @@ -32,7 +33,6 @@ static Key keys[] = { { MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND") }, { MODKEY, GDK_n, find, { .b = TRUE } }, { MODKEY|GDK_SHIFT_MASK,GDK_n, find, { .b = FALSE } }, - { 0, GDK_Return, loaduri, { .v = NULL } }, }; static Item items[] = { @@ -43,4 +43,5 @@ static Item items[] = { { "Stop", stop, { 0 } }, { "Paste URI", clipboard, { .b = TRUE } }, { "Copy URI", clipboard, { .b = FALSE } }, + { "Download", download, { 0 } }, };