X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=config.def.h;h=441ac52da6b38d35a270db58882e0c11b1c5013f;hp=8a3c92475dc7bed953c04b91fc70bd47ce6d9b6b;hb=b1e5693d5b520552c2f683f5b4585a83fb2d4c81;hpb=56729247de9ae123cc08ed1e45097622340388b6 diff --git a/config.def.h b/config.def.h index 8a3c924..441ac52 100644 --- a/config.def.h +++ b/config.def.h @@ -7,6 +7,13 @@ static char *certdir = "~/.surf/certificates/"; static char *cachedir = "~/.surf/cache/"; static char *cookiefile = "~/.surf/cookies.txt"; +static SearchEngine searchengines[] = { + { "g", "https://www.google.com/search?q=%s" }, + { "ji", "https://jisho.org/search/%s" }, + { "aw", "https://wiki.archlinux.org/index.php?search=%s" }, + { "s", "https://searx.danieliu.xyz/?q=%s" } +}; + /* Webkit default features */ /* Highest priority value will be used. * Default parameters are priority 0 @@ -99,7 +106,7 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE | /* VIDEOPLAY(URI) */ #define VIDEOPLAY(u) {\ .v = (const char *[]){ "/bin/sh", "-c", \ - "mpv --really-quiet \"$0\"", u, NULL \ + "notify-send 'Opening video in mpv...' & mpv --really-quiet \"$0\"", u, NULL \ } \ } @@ -147,6 +154,8 @@ static Key keys[] = { { MODKEY, GDK_KEY_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND", PROMPT_FIND) }, { MODKEY, GDK_KEY_m, spawn, BM_ADD("_SURF_URI") }, + { MODKEY, GDK_KEY_w, playexternal, { 0 } }, + { 0, GDK_KEY_Escape, stop, { 0 } }, { MODKEY, GDK_KEY_c, stop, { 0 } }, @@ -207,4 +216,4 @@ static Button buttons[] = { { OnMedia, MODKEY, 1, clickexternplayer, { 0 }, 1 }, }; -#define HOMEPAGE "https://duckduckgo.com/" +#define HOMEPAGE "https://danieliu.xyz/"