add homepage, fix downloads, add default CSS
This commit is contained in:
parent
f202ea1bcf
commit
95d61ac2c9
3 changed files with 9 additions and 3 deletions
6
config.h
6
config.h
|
@ -7,6 +7,8 @@ static char *certdir = "~/.surf/certificates/";
|
|||
static char *cachedir = "~/.surf/cache/";
|
||||
static char *cookiefile = "~/.surf/cookies.txt";
|
||||
|
||||
#define HOMEPAGE "http://localhost:9001/bookmarks.html"
|
||||
|
||||
static SearchEngine searchengines[] = {
|
||||
{ " ", "https://kagi.com/search?q=%s" },
|
||||
};
|
||||
|
@ -81,8 +83,8 @@ static WebKitFindOptions findopts = WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
|
|||
|
||||
/* DOWNLOAD(URI, referer) */
|
||||
#define DOWNLOAD(u, r) { \
|
||||
.v = (const char *[]){ "st", "-g", "80x6", "-e", "/bin/sh", "-c",\
|
||||
"curl -g -L -J -O -A \"$1\" -b \"$2\" -c \"$2\"" \
|
||||
.v = (const char *[]){ "st", "-g", "80x3", "-t", "downloading", "-e", "/bin/sh", "-c",\
|
||||
"cd ~/tmp; curl -g -L -J -O -A \"$1\" -b \"$2\" -c \"$2\"" \
|
||||
" -e \"$3\" \"$4\"; read", \
|
||||
"surf-download", useragent, cookiefile, r, u, NULL \
|
||||
} \
|
||||
|
|
4
default.css
Normal file
4
default.css
Normal file
|
@ -0,0 +1,4 @@
|
|||
*::-webkit-scrollbar { width:6px;height:6px; }
|
||||
*::-webkit-scrollbar-track { background:#000; }
|
||||
*::-webkit-scrollbar-thumb { background-color:#1f9b92;border-radius:0;border:none; }
|
||||
*::-webkit-scrollbar-corner { background:#000; }
|
2
surf.c
2
surf.c
|
@ -2138,7 +2138,7 @@ main(int argc, char *argv[])
|
|||
if (argc > 0)
|
||||
arg.v = argv[0];
|
||||
else
|
||||
arg.v = "about:blank";
|
||||
arg.v = HOMEPAGE;
|
||||
|
||||
setup();
|
||||
c = newclient(NULL);
|
||||
|
|
Loading…
Reference in a new issue