aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index e4fc503..7b10d04 100644
--- a/config.def.h
+++ b/config.def.h
@@ -49,7 +49,7 @@ static Parameter defconfig[ParameterLast] = {
[StrictTLS] = { { .i = 1 }, },
[Style] = { { .i = 1 }, },
[WebGL] = { { .i = 0 }, },
- [ZoomLevel] = { { .f = 1.4 }, },
+ [ZoomLevel] = { { .f = 1.2 }, },
};
static UriParameters uriparams[] = {
@@ -67,6 +67,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
#define PROMPT_GO "Go:"
#define PROMPT_GO_TAB "Go(TAB):"
#define PROMPT_SEARCH "Search:"
+#define PROMPT_SEARCH_TAB "Search(TAB):"
#define PROMPT_FIND "Find:"
/* SETPROP(command, current value, prompt) */
@@ -141,6 +142,14 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
} \
}
+#define SEARCH_TAB(u) {\
+ .v = (const char *[]){ "/bin/sh", "-c", \
+ "val=\"$(echo \"\" | wmenu -bi -S aa00aa -s 000000 -M aa00aa -m 000000 -p \"$4\")\" " \
+ "&& surf \"https://www.google.com/search?q=$val\"", \
+ "surf", winid, "uri", winuri, u, NULL \
+ } \
+}
+
/* VIDEOPLAY(URI) */
@@ -185,6 +194,7 @@ static Key keys[] = {
{ 0, GDK_KEY_Escape, stop, { 0 } },
{ MODKEY, GDK_KEY_e, spawn, COPYURL() },
{ MODKEY, GDK_KEY_s, spawn, SEARCH(PROMPT_SEARCH) },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_s, spawn, SEARCH_TAB(PROMPT_SEARCH_TAB) },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_r, reload, { .i = 1 } },
{ MODKEY, GDK_KEY_r, reload, { .i = 0 } },
@@ -214,7 +224,7 @@ static Key keys[] = {
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_n, find, { .i = -1 } },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_p, print, { 0 } },
- { MODKEY, GDK_KEY_t, spawn, GO_TAB(PROMPT_GO_TAB) },
+ { MODKEY|GDK_SHIFT_MASK, GDK_KEY_g, spawn, GO_TAB(PROMPT_GO_TAB) },
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_a, togglecookiepolicy, { 0 } },
{ 0, GDK_KEY_F11, togglefullscreen, { 0 } },