X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=8a27a03cdb18eb47130e4f2d89d9fdf1deb732b0;hb=e784d925dfab0405cb4bf2ac7466045d8089a189;hp=789ada4fe7b314f273da05c41b20cd64aad6977b;hpb=0dfdb75804315678fb22e9703b3e48f5c2b8e1cd;p=surf.git diff --git a/config.def.h b/config.def.h index 789ada4..8a27a03 100644 --- a/config.def.h +++ b/config.def.h @@ -16,8 +16,12 @@ static char *cafile = "/etc/ssl/certs/ca-certificates.crt"; static char *strictssl = FALSE; /* Refuse untrusted SSL connections */ static int indicator_thickness = 2; -/* Webkit features */ -static Bool spatialbrowsing = TRUE; +/* Webkit default features */ +static Bool enablespatialbrowsing = TRUE; +static Bool enableplugins = TRUE; +static Bool enablescripts = TRUE; +static Bool enableinspector = TRUE; +static Bool loadimages = TRUE; static Bool hidebackground = FALSE; #define SETPROP(p, q) { \ @@ -31,7 +35,7 @@ static Bool hidebackground = FALSE; /* DOWNLOAD(URI, referer) */ #define DOWNLOAD(d, r) { \ .v = (char *[]){ "/bin/sh", "-c", \ - "xterm -e \"wget '$0'" \ + "st -e /bin/sh -c \"wget '$0'" \ " --load-cookies ~/.surf/cookies.txt" \ " --user-agent '$1'" \ " --referer '$2' ; sleep 5\"", d, useragent, r, NULL \ @@ -69,6 +73,7 @@ static Key keys[] = { { 0, GDK_F11, fullscreen, { 0 } }, { 0, GDK_Escape, stop, { 0 } }, { MODKEY, GDK_o, source, { 0 } }, + { MODKEY|GDK_SHIFT_MASK,GDK_o, inspector, { 0 } }, { MODKEY, GDK_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") }, { MODKEY, GDK_f, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },