X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=config.def.h;h=dce76f8f44efa1a9a934a066ee7d444d010886fb;hp=23fd05a705bb31e4dfa56a21e224ea268c222b27;hb=2940d2bd07325714d5eee5de3877641578c20c95;hpb=75e3fe5b95bc94d5309bd78d9cc98f0034595c3e diff --git a/config.def.h b/config.def.h index 23fd05a..dce76f8 100644 --- a/config.def.h +++ b/config.def.h @@ -8,6 +8,7 @@ static char *cookiefile = "~/.surf/cookies.txt"; /* Webkit default features */ static Parameter defconfig[ParameterLast] = { + SETB(AcceleratedCanvas, 1), SETB(CaretBrowsing, 0), SETV(CookiePolicies, "@Aa"), SETB(DiskCache, 1), @@ -20,14 +21,16 @@ static Parameter defconfig[ParameterLast] = { SETB(JavaScript, 1), SETB(KioskMode, 0), SETB(LoadImages, 1), + SETB(MediaManualPlay, 0), SETB(Plugins, 1), SETV(PreferredLanguages, ((char *[]){ NULL })), SETB(RunInFullscreen, 0), SETB(ScrollBars, 1), SETB(ShowIndicators, 1), + SETB(SiteQuirks, 1), SETB(SpellChecking, 0), SETV(SpellLanguages, ((char *[]){ "en_US", NULL })), - SETB(StrictSSL, 0), + SETB(StrictTLS, 1), SETB(Style, 1), SETF(ZoomLevel, 1.0), }; @@ -39,6 +42,9 @@ static UriParameters uriparams[] = { }, }, }; +/* default window size: width, height */ +static int winsize[] = { 800, 600 }; + static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | WEBKIT_FIND_OPTIONS_WRAP_AROUND; @@ -147,6 +153,7 @@ static Key keys[] = { { MODKEY|GDK_SHIFT_MASK, GDK_KEY_i, toggle, { .i = LoadImages } }, { MODKEY|GDK_SHIFT_MASK, GDK_KEY_v, toggle, { .i = Plugins } }, { MODKEY|GDK_SHIFT_MASK, GDK_KEY_b, toggle, { .i = ScrollBars } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_t, toggle, { .i = StrictTLS } }, { MODKEY|GDK_SHIFT_MASK, GDK_KEY_m, toggle, { .i = Style } }, };