add homepage, fix downloads, add default CSS

This commit is contained in:
Iris Lightshard 2023-08-02 17:41:21 -06:00
parent f202ea1bcf
commit 95d61ac2c9
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
3 changed files with 9 additions and 3 deletions

View file

@ -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
View 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
View file

@ -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);