add homepage, fix downloads, add default CSS
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAmTK6aEACgkQO3+8IhRO Y5jD0g/+PoY2u7WsBIPV3imaSL31Q/E0SrUjbBKR9U6AF5e6xi0KvvwPnBosW+3t 0iK0q2f3hHzvyB9Tz9J6PcNzK9CR1i+210vNbr4seRATpzkzpUXu/DxuwIuE3QGP +JfPYtke6BIpKHWs6aPVicPYUYle93eiBpiscvJm3+e4Dd2EKowLPgpXmCx0NgJM gjngzZK9KqFNl9wNP7hG89XSmI187fbZiaDoB7TaIbdBVevTOAME9t+o0CfGyQNO sWPctswxAhxxQLXc38TWy4VpCHFHZplmNYhmkynQdCA4asVlH1TKor0X+6t//yZm hA81YCT7lS+en+l9zyFPekFVGj8J/UhuIrRgn0ohvk2RAJA3UhBOlsP1IZujcwtZ zbv0Ec2jLEki0Eti6hdZgwlN8H4qWH3hMLSWPMHghbDY8FRBopRAUGE6BfsT9wxH y++bzaQGA6aaYFQY13BvF9uXbRgjUCI3lseBkYZ1viKqKsET3Hswrgrm7M6I3V9Z cCDjIfc9p9IWtH1D7lY44FyB15EWcigKiwXfT3c59DNsLRGiHBSwWn2Wqw6HOoEo yZyJFnxvTxfimnDFFVU8f7ek9vIqk4MuqV0IigGTXbxTXeXFaPyQDsOmS6+jU5rk iCSrnhTvyDUCxXuL6/U1fHZiAvs22cUhwWzqN5KIRImlztnQYN0= =lBm2 -----END PGP SIGNATURE-----
3 files changed,
9 insertions(+),
3 deletions(-)
M
config.h
→
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 @@ }
/* 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 \ } \
A
default.css
@@ -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; }