Compare commits
75 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 606c6e3297 | |||
| 076d9f2350 | |||
| 43840c8528 | |||
| d6a3e28be2 | |||
| 77036565da | |||
| 8c15f0e758 | |||
| 0415175e10 | |||
| e784d925df | |||
| 13b04d8b61 | |||
| a013f0857e | |||
| 6ddc8a80fd | |||
| 3dd006f1c1 | |||
| 96e3ae41dd | |||
| 0dfdb75804 | |||
| 1f30ddf224 | |||
| 760f8f36de | |||
| e96f191088 | |||
| 6cd54e4a31 | |||
| ad794e0f00 | |||
| 5501d75d2c | |||
| a7ea753f93 | |||
| a4e1d552ca | |||
| e7b36f693f | |||
| d6bbef74fe | |||
| ba452c2e13 | |||
| f02e652fa0 | |||
| 6d9d3ca4e1 | |||
| c12b6499fe | |||
| d911219554 | |||
| a283fa4bc9 | |||
| 244dfd3231 | |||
| d44bfb2c31 | |||
| 1bfda445ac | |||
| 6aaaeb7267 | |||
| 4ce3808684 | |||
| 0b885f18e3 | |||
| 25ba840e4d | |||
| 161247eaf4 | |||
| 3d3b105de7 | |||
| 3058d5bf63 | |||
| 5703683638 | |||
| 85d9d92e0b | |||
| de3ed01386 | |||
| 81d23cb76d | |||
| 2e92060efc | |||
| 23def74c98 | |||
| e28d27249e | |||
| 635ed55fda | |||
| bb01475018 | |||
| d4b030eeb4 | |||
| 101f2d6455 | |||
| 3083ef4031 | |||
| cf75bf2777 | |||
| 96041e5ba2 | |||
| 6af15aa636 | |||
| a0e269b6bd | |||
| 3da24a7481 | |||
| 7c7a3b58cf | |||
| e75753775f | |||
| fc31616141 | |||
| b8f45a588d | |||
| 590a9bb19d | |||
| df96fe4171 | |||
| 543d0c77ee | |||
| bc73b48743 | |||
| 2e62372969 | |||
| 3b104416d3 | |||
| 62f54a3745 | |||
| f1299dcfc1 | |||
| a1db4e9bf5 | |||
| db72e066d1 | |||
| 86c230c2bb | |||
| d1eb8253b1 | |||
| 54df460866 | |||
| 1005ea0ac9 |
@@ -5,3 +5,6 @@ d8628fc93353faa411c9fc7eef82d11a84d26ae2 0.1
|
|||||||
bffb0c3c23410ac7f260d167f4b9771497fc1127 0.1.2
|
bffb0c3c23410ac7f260d167f4b9771497fc1127 0.1.2
|
||||||
a5db79d487c85615be2ecf30815c6b4977e88000 0.2
|
a5db79d487c85615be2ecf30815c6b4977e88000 0.2
|
||||||
46d516fd216731adf91740496e6823c1be4f6199 0.3
|
46d516fd216731adf91740496e6823c1be4f6199 0.3
|
||||||
|
ac8e058003ed2c0974529808752e5da7692fd7d8 0.4
|
||||||
|
71388899ac09d21e6c93518cc57a28395034f63c 0.4.1
|
||||||
|
f0cea0f2bfc6a32a0e352b6c69d781f1dbddbcda 0.5
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
MIT/X Consortium License
|
MIT/X Consortium License
|
||||||
|
|
||||||
© 2009 Enno Boland <g s01 de>
|
© 2011-2012 Troels Henriksen <athas@sigkill.at>
|
||||||
|
© 2009-2011 Enno Boland <g s01 de>
|
||||||
|
© 2012 Christoph Lohmann <20h@r-36.net>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -19,3 +21,4 @@ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
DEALINGS IN THE SOFTWARE.
|
DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ dist: clean
|
|||||||
@echo creating dist tarball
|
@echo creating dist tarball
|
||||||
@mkdir -p surf-${VERSION}
|
@mkdir -p surf-${VERSION}
|
||||||
@cp -R LICENSE Makefile config.mk config.def.h README \
|
@cp -R LICENSE Makefile config.mk config.def.h README \
|
||||||
|
surf-open.sh arg.h TODO.md surf.png \
|
||||||
surf.1 ${SRC} surf-${VERSION}
|
surf.1 ${SRC} surf-${VERSION}
|
||||||
@tar -cf surf-${VERSION}.tar surf-${VERSION}
|
@tar -cf surf-${VERSION}.tar surf-${VERSION}
|
||||||
@gzip surf-${VERSION}.tar
|
@gzip surf-${VERSION}.tar
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ surf - simple webkit-based browser
|
|||||||
==================================
|
==================================
|
||||||
surf is a simple Web browser based on WebKit/GTK+.
|
surf is a simple Web browser based on WebKit/GTK+.
|
||||||
|
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
In order to build surf you need GTK+ and Webkit/GTK+ header files.
|
In order to build surf you need GTK+ and Webkit/GTK+ header files.
|
||||||
@@ -18,8 +17,22 @@ necessary as root):
|
|||||||
|
|
||||||
make clean install
|
make clean install
|
||||||
|
|
||||||
|
|
||||||
Running surf
|
Running surf
|
||||||
------------
|
------------
|
||||||
run
|
run
|
||||||
surf [URL]
|
surf [URI]
|
||||||
|
|
||||||
|
See the manpage for further options.
|
||||||
|
|
||||||
|
Running surf in tabbed
|
||||||
|
----------------------
|
||||||
|
For running surf in tabbed[0] there is a script included in the distribution,
|
||||||
|
which is run like this:
|
||||||
|
|
||||||
|
surf-open.sh [URI]
|
||||||
|
|
||||||
|
Further invocations of the script will run surf with the specified URI in this
|
||||||
|
instance of tabbed.
|
||||||
|
|
||||||
|
[0] http://tools.suckless.org/tabbed
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# TODO
|
||||||
|
|
||||||
|
* suckless adblocking
|
||||||
|
* integrate the WebKitWebInspector API
|
||||||
|
* make scrollbars a switch and allow them to be disabled
|
||||||
|
* replace webkit with something sane
|
||||||
|
* add video player options
|
||||||
|
* play in plugin
|
||||||
|
* play in video player
|
||||||
|
* call command with URI (quvi + cclive)
|
||||||
|
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* Copy me if you can.
|
||||||
|
* by 20h
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __ARG_H__
|
||||||
|
#define __ARG_H__
|
||||||
|
|
||||||
|
extern char *argv0;
|
||||||
|
|
||||||
|
#define USED(x) ((void)(x))
|
||||||
|
|
||||||
|
#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\
|
||||||
|
argv[0] && argv[0][1]\
|
||||||
|
&& argv[0][0] == '-';\
|
||||||
|
argc--, argv++) {\
|
||||||
|
char _argc;\
|
||||||
|
char **_argv;\
|
||||||
|
if (argv[0][1] == '-' && argv[0][2] == '\0') {\
|
||||||
|
argv++;\
|
||||||
|
argc--;\
|
||||||
|
break;\
|
||||||
|
}\
|
||||||
|
for (argv[0]++, _argv = argv; argv[0][0];\
|
||||||
|
argv[0]++) {\
|
||||||
|
if (_argv != argv)\
|
||||||
|
break;\
|
||||||
|
_argc = argv[0][0];\
|
||||||
|
switch (_argc)
|
||||||
|
|
||||||
|
#define ARGEND }\
|
||||||
|
USED(_argc);\
|
||||||
|
}\
|
||||||
|
USED(argv);\
|
||||||
|
USED(argc);
|
||||||
|
|
||||||
|
#define EARGF(x) ((argv[1] == NULL)? ((x), abort(), (char *)0) :\
|
||||||
|
(argc--, argv++, argv[0]))
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
+70
-15
@@ -1,40 +1,95 @@
|
|||||||
/* modifier 0 means no modifier */
|
/* modifier 0 means no modifier */
|
||||||
static char *useragent = "Surf/"VERSION" (X11; U; Unix; en-US) AppleWebKit/531.2+ Compatible (Safari)";
|
static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) "
|
||||||
static char *progress = "#FF0000";
|
"AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 "
|
||||||
|
"Safari/537.15 Surf/"VERSION;
|
||||||
|
static char *progress = "#0000FF";
|
||||||
|
static char *progress_untrust = "#FF0000";
|
||||||
static char *progress_trust = "#00FF00";
|
static char *progress_trust = "#00FF00";
|
||||||
static char *stylefile = ".surf/style.css";
|
static char *progress_proxy = "#FFFF00";
|
||||||
static char *scriptfile = ".surf/script.js";
|
static char *progress_proxy_trust = "#66FF00";
|
||||||
static char *cookiefile = ".surf/cookies.txt";
|
static char *progress_proxy_untrust = "#FF6600";
|
||||||
static time_t sessiontime = 0;
|
static char *stylefile = "~/.surf/style.css";
|
||||||
#define NOBACKGROUND 0
|
static char *scriptfile = "~/.surf/script.js";
|
||||||
|
static char *cookiefile = "~/.surf/cookies.txt";
|
||||||
|
static time_t sessiontime = 3600;
|
||||||
|
static char *cafile = "/etc/ssl/certs/ca-certificates.crt";
|
||||||
|
static char *strictssl = FALSE; /* Refuse untrusted SSL connections */
|
||||||
|
static int indicator_thickness = 2;
|
||||||
|
|
||||||
#define SETPROP(p, q) { .v = (char *[]){ "/bin/sh", "-c", \
|
/* Webkit default features */
|
||||||
|
static Bool enablespatialbrowsing = TRUE;
|
||||||
|
static Bool enableplugins = TRUE;
|
||||||
|
static Bool enablescripts = TRUE;
|
||||||
|
static Bool enableinspector = TRUE;
|
||||||
|
static Bool loadimages = TRUE;
|
||||||
|
static Bool hidebackground = FALSE;
|
||||||
|
|
||||||
|
#define SETPROP(p, q) { \
|
||||||
|
.v = (char *[]){ "/bin/sh", "-c", \
|
||||||
"prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \
|
"prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \
|
||||||
"xprop -id $2 -f $1 8s -set $1 \"$prop\"", \
|
"xprop -id $2 -f $1 8s -set $1 \"$prop\"", \
|
||||||
p, q, winid, NULL } }
|
p, q, winid, NULL \
|
||||||
#define DOWNLOAD(d) { \
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* DOWNLOAD(URI, referer) */
|
||||||
|
#define DOWNLOAD(d, r) { \
|
||||||
.v = (char *[]){ "/bin/sh", "-c", \
|
.v = (char *[]){ "/bin/sh", "-c", \
|
||||||
"xterm -e \"wget --load-cookies ~/.surf/cookies.txt '$0';\"", \
|
"st -e /bin/sh -c \"curl -J -O --user-agent '$1'" \
|
||||||
d, NULL } }
|
" --referer '$2'" \
|
||||||
|
" -b ~/.surf/cookies.txt -c ~/.surf/cookies.txt '$0';" \
|
||||||
|
" sleep 5;\"", \
|
||||||
|
d, useragent, r, NULL \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
#define MODKEY GDK_CONTROL_MASK
|
#define MODKEY GDK_CONTROL_MASK
|
||||||
|
|
||||||
|
/* hotkeys */
|
||||||
|
/*
|
||||||
|
* If you use anything else but MODKEY and GDK_SHIFT_MASK, don't forget to
|
||||||
|
* edit the CLEANMASK() macro.
|
||||||
|
*/
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier keyval function arg Focus */
|
/* modifier keyval function arg Focus */
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE } },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE } },
|
||||||
{ MODKEY, GDK_r, reload, { .b = FALSE } },
|
{ MODKEY, GDK_r, reload, { .b = FALSE } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 } },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 } },
|
||||||
|
|
||||||
{ MODKEY, GDK_p, clipboard, { .b = TRUE } },
|
{ MODKEY, GDK_p, clipboard, { .b = TRUE } },
|
||||||
{ MODKEY, GDK_y, clipboard, { .b = FALSE } },
|
{ MODKEY, GDK_y, clipboard, { .b = FALSE } },
|
||||||
|
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_j, zoom, { .i = -1 } },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_j, zoom, { .i = -1 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_k, zoom, { .i = +1 } },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_k, zoom, { .i = +1 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_i, zoom, { .i = 0 } },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_q, zoom, { .i = 0 } },
|
||||||
|
{ MODKEY, GDK_minus, zoom, { .i = -1 } },
|
||||||
|
{ MODKEY, GDK_plus, zoom, { .i = +1 } },
|
||||||
|
|
||||||
{ MODKEY, GDK_l, navigate, { .i = +1 } },
|
{ MODKEY, GDK_l, navigate, { .i = +1 } },
|
||||||
{ MODKEY, GDK_h, navigate, { .i = -1 } },
|
{ MODKEY, GDK_h, navigate, { .i = -1 } },
|
||||||
{ MODKEY, GDK_j, scroll, { .i = +1 } },
|
|
||||||
{ MODKEY, GDK_k, scroll, { .i = -1 } },
|
{ MODKEY, GDK_j, scroll_v, { .i = +1 } },
|
||||||
|
{ MODKEY, GDK_k, scroll_v, { .i = -1 } },
|
||||||
|
{ MODKEY, GDK_b, scroll_v, { .i = -10000 } },
|
||||||
|
{ MODKEY, GDK_space, scroll_v, { .i = +10000 } },
|
||||||
|
{ MODKEY, GDK_i, scroll_h, { .i = +1 } },
|
||||||
|
{ MODKEY, GDK_u, scroll_h, { .i = -1 } },
|
||||||
|
|
||||||
|
{ 0, GDK_F11, fullscreen, { 0 } },
|
||||||
{ 0, GDK_Escape, stop, { 0 } },
|
{ 0, GDK_Escape, stop, { 0 } },
|
||||||
{ MODKEY, GDK_o, source, { 0 } },
|
{ MODKEY, GDK_o, source, { 0 } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK,GDK_o, inspector, { 0 } },
|
||||||
|
|
||||||
{ MODKEY, GDK_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
|
{ MODKEY, GDK_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
|
||||||
|
{ MODKEY, GDK_f, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
|
||||||
{ MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
|
{ MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
|
||||||
|
|
||||||
{ MODKEY, GDK_n, find, { .b = TRUE } },
|
{ MODKEY, GDK_n, find, { .b = TRUE } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_n, find, { .b = FALSE } },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_n, find, { .b = FALSE } },
|
||||||
|
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK,GDK_c, toggle, { .v = "enable-caret-browsing" } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK,GDK_i, toggle, { .v = "auto-load-images" } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK,GDK_s, toggle, { .v = "enable-scripts" } },
|
||||||
|
{ MODKEY|GDK_SHIFT_MASK,GDK_v, toggle, { .v = "enable-plugins" } },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# surf version
|
# surf version
|
||||||
VERSION = 0.4
|
VERSION = 0.6
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
@@ -7,16 +7,18 @@ VERSION = 0.4
|
|||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = ${PREFIX}/share/man
|
MANPREFIX = ${PREFIX}/share/man
|
||||||
|
|
||||||
GTKINC=$(shell pkg-config --cflags gtk+-2.0 webkit-1.0)
|
X11INC = /usr/X11R6/include
|
||||||
GTKLIB=$(shell pkg-config --libs gtk+-2.0 webkit-1.0)
|
X11LIB = /usr/X11R6/lib
|
||||||
|
|
||||||
|
GTKINC = `pkg-config --cflags gtk+-2.0 webkit-1.0`
|
||||||
|
GTKLIB = `pkg-config --libs gtk+-2.0 webkit-1.0`
|
||||||
|
|
||||||
# includes and libs
|
# includes and libs
|
||||||
INCS = -I. -I/usr/include ${GTKINC}
|
INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
|
||||||
LIBS = -L/usr/lib -lc ${GTKLIB} -lgthread-2.0
|
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0
|
||||||
|
|
||||||
# flags
|
# flags
|
||||||
CPPFLAGS = -DVERSION=\"${VERSION}\"
|
CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE
|
||||||
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
||||||
LDFLAGS = -g ${LIBS}
|
LDFLAGS = -g ${LIBS}
|
||||||
|
|
||||||
|
|||||||
Executable
+32
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# See the LICENSE file for copyright and license details.
|
||||||
|
#
|
||||||
|
|
||||||
|
xidfile="$HOME/tmp/tabbed-surf.xid"
|
||||||
|
uri=""
|
||||||
|
|
||||||
|
if [ "$#" -gt 0 ];
|
||||||
|
then
|
||||||
|
uri="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
runtabbed() {
|
||||||
|
tabbed -dn tabbed-surf -r 2 surf -e '' "$uri" >"$xidfile" \
|
||||||
|
2>/dev/null &
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ ! -r "$xidfile" ];
|
||||||
|
then
|
||||||
|
runtabbed
|
||||||
|
else
|
||||||
|
xid=$(cat "$xidfile")
|
||||||
|
xprop -id "$xid" 2>&1 >/dev/null
|
||||||
|
if [ $? -gt 0 ];
|
||||||
|
then
|
||||||
|
runtabbed
|
||||||
|
else
|
||||||
|
surf -e "$xid" "$uri" 2>&1 >/dev/null &
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
@@ -3,12 +3,12 @@
|
|||||||
surf \- simple webkit-based browser
|
surf \- simple webkit-based browser
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B surf
|
.B surf
|
||||||
|
.RB [-ipnsvx]
|
||||||
|
.RB [-c\ cookiefile]
|
||||||
.RB [-e\ xid]
|
.RB [-e\ xid]
|
||||||
.RB [-i]
|
.RB [-r\ scriptfile]
|
||||||
.RB [-p]
|
.RB [-t\ stylefile]
|
||||||
.RB [-s]
|
.RB [-u\ useragent]
|
||||||
.RB [-v]
|
|
||||||
.RB [-x]
|
|
||||||
.RB "URI"
|
.RB "URI"
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
surf is a simple Web browser based on WebKit/GTK+. It is able
|
surf is a simple Web browser based on WebKit/GTK+. It is able
|
||||||
@@ -17,18 +17,33 @@ which makes it possible to embed it in another application. Furthermore,
|
|||||||
one can point surf to another URI by setting its XProperties.
|
one can point surf to another URI by setting its XProperties.
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.TP
|
.TP
|
||||||
|
.B \-c cookiefile
|
||||||
|
Specify the cookiefile to use.
|
||||||
|
.TP
|
||||||
.B \-e xid
|
.B \-e xid
|
||||||
Reparents to window specified by xid.
|
Reparents to window specified by xid.
|
||||||
.TP
|
.TP
|
||||||
.B \-i
|
.B \-i
|
||||||
Disable Images
|
Disable Images
|
||||||
.TP
|
.TP
|
||||||
|
.B \-n
|
||||||
|
Disable the Web Inspector (Developer Tools).
|
||||||
|
.TP
|
||||||
.B \-p
|
.B \-p
|
||||||
Disable Plugins
|
Disable Plugins
|
||||||
.TP
|
.TP
|
||||||
|
.B \-r scriptfile
|
||||||
|
Specify the user scriptfile.
|
||||||
|
.TP
|
||||||
.B \-s
|
.B \-s
|
||||||
Disable Javascript
|
Disable Javascript
|
||||||
.TP
|
.TP
|
||||||
|
.B \-t stylefile
|
||||||
|
Specify the user stylefile.
|
||||||
|
.TP
|
||||||
|
.B \-u useragent
|
||||||
|
Specify the useragent which surf should use.
|
||||||
|
.TP
|
||||||
.B \-v
|
.B \-v
|
||||||
Prints version information to standard output, then exits.
|
Prints version information to standard output, then exits.
|
||||||
.TP
|
.TP
|
||||||
@@ -51,16 +66,34 @@ Scrolls page upwards.
|
|||||||
.B Ctrl\-j
|
.B Ctrl\-j
|
||||||
Scrolls page downwards.
|
Scrolls page downwards.
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-Shift\-k
|
.B Ctrl\-b
|
||||||
|
Scroll up one whole page view.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Space
|
||||||
|
Scroll down one whole page view.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-i
|
||||||
|
Scroll horizontally to the right.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-u
|
||||||
|
Scroll horizontally to the left.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Shift\-k or Ctrl\-+
|
||||||
Zooms page in.
|
Zooms page in.
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-Shift\-j
|
.B Ctrl\-Shift\-j or Ctrl\--
|
||||||
Zooms page out
|
Zooms page out
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-Shift\-i
|
.B Ctrl\-Shift\-q
|
||||||
Resets Zoom
|
Resets Zoom
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-/
|
.B Ctrl\-h
|
||||||
|
Navigate back one step in history.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-l
|
||||||
|
Navigate forward one step in history.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-f and Ctrl\-\\
|
||||||
Opens the search-bar.
|
Opens the search-bar.
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-n
|
.B Ctrl\-n
|
||||||
@@ -75,6 +108,9 @@ Opens the URL-bar.
|
|||||||
.B Ctrl\-p
|
.B Ctrl\-p
|
||||||
Loads URI from primary selection.
|
Loads URI from primary selection.
|
||||||
.TP
|
.TP
|
||||||
|
.B Esc
|
||||||
|
Stop loading the page.
|
||||||
|
.TP
|
||||||
.B Ctrl\-Shift\-p
|
.B Ctrl\-Shift\-p
|
||||||
Calls Printpage Dialog.
|
Calls Printpage Dialog.
|
||||||
.TP
|
.TP
|
||||||
@@ -88,9 +124,46 @@ Reloads the website without using cache.
|
|||||||
Copies current URI to primary selection.
|
Copies current URI to primary selection.
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-o
|
.B Ctrl\-o
|
||||||
show the sourcecode of the current page.
|
Show the sourcecode of the current page.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Shift\-o
|
||||||
|
Open the Web Inspector (Developer Tools) window for the current page.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Shift\-c
|
||||||
|
Toggle caret browsing.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Shift\-i
|
||||||
|
Toggle auto-loading of images.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Shift\-s
|
||||||
|
Toggle script execution.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Shift\-v
|
||||||
|
Toggle the enabling of plugins on that surf instance.
|
||||||
|
.TP
|
||||||
|
.B F11
|
||||||
|
Toggle fullscreen mode.
|
||||||
|
.SH ENVIRONMENT
|
||||||
|
.B SURF_USERAGENT
|
||||||
|
If this variable is set upon startup, surf will use it as the useragent string
|
||||||
|
.TP
|
||||||
|
.B http_proxy
|
||||||
|
If this variable is set and not empty upon startup, surf will use it as the http proxy
|
||||||
|
.SH PLUGINS
|
||||||
|
For using plugins in surf, first determine your running architecture. Then get
|
||||||
|
the appropriate plugin for that architecture and copy it to
|
||||||
|
.BR /usr/lib/browser-plugins
|
||||||
|
or
|
||||||
|
.BR /usr/lib64/browser-plugins.
|
||||||
|
Surf should load them automatically.
|
||||||
|
.BR
|
||||||
|
If you want to use a 32bit plugin on a 64bit system,
|
||||||
|
.BR nspluginwrapper(1)
|
||||||
|
will help you.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR dmenu(1)
|
.BR dmenu(1),
|
||||||
.BR xprop(1)
|
.BR xprop(1),
|
||||||
|
.BR tabbed(1),
|
||||||
|
.BR nspluginwrapper(1)
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Please report them!
|
Please report them!
|
||||||
|
|||||||
Reference in New Issue
Block a user