X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=e8e1c50b5ec6e817066f274bfcf2dd100faf14dd;hb=refs%2Fheads%2Fmaster;hp=bb2b4a93c213c0b9915b4174f39b0c95f15758e3;hpb=1f04725ac4e99f377d90b21e487a5d019fafda08;p=surf.git diff --git a/config.def.h b/config.def.h index bb2b4a9..e8e1c50 100644 --- a/config.def.h +++ b/config.def.h @@ -6,6 +6,7 @@ static char *styledir = "~/.surf/styles/"; static char *certdir = "~/.surf/certificates/"; static char *cachedir = "~/.surf/cache/"; static char *cookiefile = "~/.surf/cookies.txt"; +static char *historyfile = "~/.surf/history.txt"; static SearchEngine searchengines[] = { { "g", "https://www.google.com/search?q=%s" }, @@ -121,6 +122,11 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | } \ } +#define SETURI(p) { .v = (char *[]){ "/bin/sh", "-c", \ +"prop=\"`surf_history_dmenu.sh`\" &&" \ +"xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ +p, winid, NULL } } + /* styles */ /* * The iteration will stop at the first match, beginning at the beginning of @@ -202,6 +208,7 @@ static Key keys[] = { { 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 } }, + { MODKEY , GDK_KEY_Return, spawn, SETURI("_SURF_GO") }, }; /* button definitions */ @@ -216,4 +223,4 @@ static Button buttons[] = { { OnMedia, MODKEY, 1, clickexternplayer, { 0 }, 1 }, }; -#define HOMEPAGE "https://searx.danieliu.xyz/" +#define HOMEPAGE "https://danieliu.xyz/"