Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1eb8253b1 | ||
|
|
54df460866 | ||
|
|
1005ea0ac9 | ||
|
|
ca1c7f434b | ||
|
|
8cc71f8216 | ||
|
|
7330d0e261 | ||
|
|
7d3d996a3d | ||
|
|
d46697044e | ||
|
|
532205d7e7 | ||
|
|
aadcd5b3f0 | ||
|
|
7fcf745092 | ||
|
|
5878067225 | ||
|
|
7ce2856194 | ||
|
|
36129338cf | ||
|
|
0a6eafe077 | ||
|
|
6376a30379 | ||
|
|
3dbf628964 | ||
|
|
91d04b15f0 | ||
|
|
b1e9a6e9ab | ||
|
|
424936e96c | ||
|
|
8acc31bbde | ||
|
|
f304d0af52 | ||
|
|
168da3730f | ||
|
|
11039e5e2b | ||
|
|
602eb61623 | ||
|
|
bef892f513 | ||
|
|
f9a411f22d | ||
|
|
e9c9715f52 | ||
|
|
4b1b1b8a20 | ||
|
|
8aabfa5b45 | ||
|
|
981e52d5a7 | ||
|
|
a7f2765da4 | ||
|
|
a05bcc653e | ||
|
|
62dc599a04 | ||
|
|
3ede103556 | ||
|
|
19aaa5a74b | ||
|
|
3434ccc16a | ||
|
|
b8105c64ed | ||
|
|
e2cae4d1f5 | ||
|
|
814bf92565 | ||
|
|
e252a5ec63 | ||
|
|
b2a970d04d | ||
|
|
1cbeab188d | ||
|
|
764550e087 | ||
|
|
4f7fdd1dfa | ||
|
|
94601622a1 | ||
|
|
b18189d016 | ||
|
|
0fb97666ec | ||
|
|
2f9c554f02 | ||
|
|
f42461c3cc | ||
|
|
1d93bfa9ce | ||
|
|
b57eca1a2b | ||
|
|
c0510b0cc9 | ||
|
|
f0f3ddce76 | ||
|
|
7365214bbf | ||
|
|
c00ee3eb78 | ||
|
|
c30a95c635 | ||
|
|
ae42cfde8f | ||
|
|
9d4953691d | ||
|
|
54c73ca84d | ||
|
|
4501408808 | ||
|
|
742fc7fac1 | ||
|
|
a9d733bd9f | ||
|
|
1d019cf8af | ||
|
|
f347b9f336 | ||
|
|
b29a8f5356 | ||
|
|
05fbb4ab76 | ||
|
|
c82fff2dd3 | ||
|
|
b483f49b20 | ||
|
|
87563c7e9d | ||
|
|
9557e7b769 | ||
|
|
52a9c8ca52 | ||
|
|
e0a8f381b9 | ||
|
|
50192577ee | ||
|
|
60dd7545d3 | ||
|
|
c38404fd0b | ||
|
|
31441e93f7 | ||
|
|
92afa03d80 | ||
|
|
f277dbd3d2 | ||
|
|
54b93a2dd6 | ||
|
|
72e01b2544 | ||
|
|
0835ea2124 | ||
|
|
75cc43047f | ||
|
|
9dc703aff3 | ||
|
|
ca10af0783 | ||
|
|
2cfbcbdf71 | ||
|
|
9a3c483893 | ||
|
|
e9ee0940b7 | ||
|
|
8eb2392442 | ||
|
|
bdfa30bf33 | ||
|
|
5ac31995a3 | ||
|
|
3657813fec | ||
|
|
7ffdcd756c | ||
|
|
2eafff0e8b | ||
|
|
b298d889de | ||
|
|
e3690dffed | ||
|
|
f62505a47a | ||
|
|
7e86ea553f | ||
|
|
17bbc1a3cc | ||
|
|
533c8e5b35 | ||
|
|
d97b8adfde | ||
|
|
24bbd6be02 | ||
|
|
fe87a88954 | ||
|
|
95a6bfcc03 | ||
|
|
499a497b4e | ||
|
|
029dac1504 | ||
|
|
0d28cf7458 | ||
|
|
92cb8792e1 | ||
|
|
04173f6661 | ||
|
|
d3d32fd6c7 | ||
|
|
a3e1e27762 | ||
|
|
2e9af54363 | ||
|
|
25b9ae3ce4 | ||
|
|
d2a4436123 | ||
|
|
65e09f7b03 | ||
|
|
e9d4da3030 | ||
|
|
0e3ac7f3b0 | ||
|
|
a2da3b7eef | ||
|
|
0ece786d3f | ||
|
|
2f639aede5 | ||
|
|
f400f0d56f | ||
|
|
44511e2549 | ||
|
|
38a098c81d | ||
|
|
c023780eda |
No files matched your search
@@ -1,3 +1,8 @@
|
|||||||
d8628fc93353faa411c9fc7eef82d11a84d26ae2 0.1
|
d8628fc93353faa411c9fc7eef82d11a84d26ae2 0.1
|
||||||
d8628fc93353faa411c9fc7eef82d11a84d26ae2 0.1
|
d8628fc93353faa411c9fc7eef82d11a84d26ae2 0.1
|
||||||
9c8ebcf54061112b5979742b403de26fc94007ff 0.1
|
9c8ebcf54061112b5979742b403de26fc94007ff 0.1
|
||||||
|
3ef997607115303fe93873b592d152f0ec186f77 0.1.1
|
||||||
|
bffb0c3c23410ac7f260d167f4b9771497fc1127 0.1.2
|
||||||
|
a5db79d487c85615be2ecf30815c6b4977e88000 0.2
|
||||||
|
46d516fd216731adf91740496e6823c1be4f6199 0.3
|
||||||
|
ac8e058003ed2c0974529808752e5da7692fd7d8 0.4
|
||||||
@@ -35,7 +35,7 @@ clean:
|
|||||||
dist: clean
|
dist: clean
|
||||||
@echo creating dist tarball
|
@echo creating dist tarball
|
||||||
@mkdir -p surf-${VERSION}
|
@mkdir -p surf-${VERSION}
|
||||||
@cp -R LICENSE Makefile config.mk \
|
@cp -R LICENSE Makefile config.mk config.def.h README \
|
||||||
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
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
surf - simple webkit-based browser
|
||||||
|
==================================
|
||||||
|
surf is a simple Web browser based on WebKit/GTK+.
|
||||||
|
|
||||||
|
|
||||||
|
Requirements
|
||||||
|
------------
|
||||||
|
In order to build surf you need GTK+ and Webkit/GTK+ header files.
|
||||||
|
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
Edit config.mk to match your local setup (surf is installed into
|
||||||
|
the /usr/local namespace by default).
|
||||||
|
|
||||||
|
Afterwards enter the following command to build and install surf (if
|
||||||
|
necessary as root):
|
||||||
|
|
||||||
|
make clean install
|
||||||
|
|
||||||
|
|
||||||
|
Running surf
|
||||||
|
------------
|
||||||
|
run
|
||||||
|
surf [URL]
|
||||||
+35
-27
@@ -1,32 +1,40 @@
|
|||||||
/* modifier 0 means no modifier */
|
/* modifier 0 means no modifier */
|
||||||
static gchar *progress = "#FF0000";
|
static char *useragent = "Surf/"VERSION" (X11; U; Unix; en-US) AppleWebKit/531.2+ Compatible (Safari)";
|
||||||
static gchar *progress_trust = "#00FF00";
|
static char *progress = "#FF0000";
|
||||||
|
static char *progress_trust = "#00FF00";
|
||||||
|
static char *stylefile = ".surf/style.css";
|
||||||
|
static char *scriptfile = ".surf/script.js";
|
||||||
|
static char *cookiefile = ".surf/cookies.txt";
|
||||||
|
static time_t sessiontime = 3600;
|
||||||
|
#define NOBACKGROUND 0
|
||||||
|
|
||||||
|
#define SETPROP(p, q) { .v = (char *[]){ "/bin/sh", "-c", \
|
||||||
|
"prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \
|
||||||
|
"xprop -id $2 -f $1 8s -set $1 \"$prop\"", \
|
||||||
|
p, q, winid, NULL } }
|
||||||
|
#define DOWNLOAD(d) { \
|
||||||
|
.v = (char *[]){ "/bin/sh", "-c", \
|
||||||
|
"xterm -e \"wget --load-cookies ~/.surf/cookies.txt '$0';\"", \
|
||||||
|
d, NULL } }
|
||||||
#define MODKEY GDK_CONTROL_MASK
|
#define MODKEY GDK_CONTROL_MASK
|
||||||
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 }, ALWAYS },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE } },
|
||||||
{ MODKEY, GDK_r, reload, { .b = FALSE }, ALWAYS },
|
{ MODKEY, GDK_r, reload, { .b = FALSE } },
|
||||||
{ MODKEY, GDK_g, showurl, { 0 }, ALWAYS },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 } },
|
||||||
{ MODKEY, GDK_slash, showsearch, { 0 }, ALWAYS },
|
{ MODKEY, GDK_p, clipboard, { .b = TRUE } },
|
||||||
{ 0, GDK_Escape, hidesearch, { 0 }, ALWAYS },
|
{ MODKEY, GDK_y, clipboard, { .b = FALSE } },
|
||||||
{ 0, GDK_Escape, hideurl, { 0 }, ALWAYS },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_j, zoom, { .i = -1 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 }, ALWAYS },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_k, zoom, { .i = +1 } },
|
||||||
{ MODKEY, GDK_p, clipboard, { .b = TRUE }, BROWSER },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_i, zoom, { .i = 0 } },
|
||||||
{ MODKEY, GDK_y, clipboard, { .b = FALSE }, BROWSER },
|
{ MODKEY, GDK_l, navigate, { .i = +1 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_j, zoom, { .i = -1 }, BROWSER },
|
{ MODKEY, GDK_h, navigate, { .i = -1 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_k, zoom, { .i = +1 }, BROWSER },
|
{ MODKEY, GDK_j, scroll, { .i = +1 } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_i, zoom, { .i = 0 }, BROWSER },
|
{ MODKEY, GDK_k, scroll, { .i = -1 } },
|
||||||
{ MODKEY, GDK_l, navigate, { .i = +1 }, BROWSER },
|
{ 0, GDK_Escape, stop, { 0 } },
|
||||||
{ MODKEY, GDK_h, navigate, { .i = -1 }, BROWSER },
|
{ MODKEY, GDK_o, source, { 0 } },
|
||||||
{ MODKEY, GDK_j, scroll, { .i = +1 }, BROWSER },
|
{ MODKEY, GDK_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
|
||||||
{ MODKEY, GDK_k, scroll, { .i = -1 }, BROWSER },
|
{ MODKEY, GDK_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
|
||||||
{ 0, GDK_Escape, stop, { 0 }, BROWSER },
|
{ MODKEY, GDK_n, find, { .b = TRUE } },
|
||||||
{ MODKEY, GDK_o, source, { 0 }, BROWSER },
|
{ MODKEY|GDK_SHIFT_MASK,GDK_n, find, { .b = FALSE } },
|
||||||
{ MODKEY, GDK_n, searchtext, { .b = TRUE }, BROWSER|SEARCHBAR },
|
|
||||||
{ MODKEY|GDK_SHIFT_MASK,GDK_n, searchtext, { .b = FALSE }, BROWSER|SEARCHBAR },
|
|
||||||
{ 0, GDK_Return, searchtext, { .b = TRUE }, SEARCHBAR },
|
|
||||||
{ GDK_SHIFT_MASK, GDK_Return, searchtext, { .b = FALSE }, SEARCHBAR },
|
|
||||||
{ 0, GDK_Return, loaduri, { .v = NULL }, URLBAR },
|
|
||||||
{ 0, GDK_Return, hideurl, { 0 }, URLBAR },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
# surf version
|
# surf version
|
||||||
VERSION = 0.1.1
|
VERSION = 0.4.1
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
@@ -17,10 +17,8 @@ LIBS = -L/usr/lib -lc ${GTKLIB} -lgthread-2.0
|
|||||||
|
|
||||||
# flags
|
# flags
|
||||||
CPPFLAGS = -DVERSION=\"${VERSION}\"
|
CPPFLAGS = -DVERSION=\"${VERSION}\"
|
||||||
#CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
||||||
CFLAGS = -std=c99 -pedantic -Wall -Werror -O0 ${INCS} ${CPPFLAGS}
|
LDFLAGS = -g ${LIBS}
|
||||||
#LDFLAGS = -s ${LIBS}
|
|
||||||
LDFLAGS = ${LIBS}
|
|
||||||
|
|
||||||
# Solaris
|
# Solaris
|
||||||
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
||||||
|
|||||||
@@ -3,7 +3,12 @@
|
|||||||
surf \- simple webkit-based browser
|
surf \- simple webkit-based browser
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B surf
|
.B surf
|
||||||
.RB [ \-ehvx ]
|
.RB [-e\ xid]
|
||||||
|
.RB [-i]
|
||||||
|
.RB [-p]
|
||||||
|
.RB [-s]
|
||||||
|
.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
|
||||||
@@ -12,12 +17,17 @@ 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 \-e
|
.B \-e xid
|
||||||
Prints xid to standard output and waits until an application reparents the
|
Reparents to window specified by xid.
|
||||||
window.
|
|
||||||
.TP
|
.TP
|
||||||
.B \-h
|
.B \-i
|
||||||
Prints usage information to standard output, then exits.
|
Disable Images
|
||||||
|
.TP
|
||||||
|
.B \-p
|
||||||
|
Disable Plugins
|
||||||
|
.TP
|
||||||
|
.B \-s
|
||||||
|
Disable Javascript
|
||||||
.TP
|
.TP
|
||||||
.B \-v
|
.B \-v
|
||||||
Prints version information to standard output, then exits.
|
Prints version information to standard output, then exits.
|
||||||
@@ -26,6 +36,8 @@ Prints version information to standard output, then exits.
|
|||||||
Prints xid to standard output. This can be used to script the browser by using
|
Prints xid to standard output. This can be used to script the browser by using
|
||||||
.BR xprop(1).
|
.BR xprop(1).
|
||||||
.SH USAGE
|
.SH USAGE
|
||||||
|
.B Escape
|
||||||
|
Stops loading current page or stops download.
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-h
|
.B Ctrl\-h
|
||||||
Walks back the history.
|
Walks back the history.
|
||||||
@@ -33,15 +45,39 @@ Walks back the history.
|
|||||||
.B Ctrl\-l
|
.B Ctrl\-l
|
||||||
Walks forward the history.
|
Walks forward the history.
|
||||||
.TP
|
.TP
|
||||||
|
.B Ctrl\-k
|
||||||
|
Scrolls page upwards.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-j
|
||||||
|
Scrolls page downwards.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Shift\-k
|
||||||
|
Zooms page in.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Shift\-j
|
||||||
|
Zooms page out
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Shift\-i
|
||||||
|
Resets Zoom
|
||||||
|
.TP
|
||||||
.B Ctrl\-/
|
.B Ctrl\-/
|
||||||
Opens the search-bar.
|
Opens the search-bar.
|
||||||
.TP
|
.TP
|
||||||
|
.B Ctrl\-n
|
||||||
|
Go to next search result.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-Shift\-n
|
||||||
|
Go to previous search result.
|
||||||
|
.TP
|
||||||
.B Ctrl\-g
|
.B Ctrl\-g
|
||||||
Opens the URL-bar.
|
Opens the URL-bar.
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-p
|
.B Ctrl\-p
|
||||||
Loads URI from primary selection.
|
Loads URI from primary selection.
|
||||||
.TP
|
.TP
|
||||||
|
.B Ctrl\-Shift\-p
|
||||||
|
Calls Printpage Dialog.
|
||||||
|
.TP
|
||||||
.B Ctrl\-r
|
.B Ctrl\-r
|
||||||
Reloads the website.
|
Reloads the website.
|
||||||
.TP
|
.TP
|
||||||
@@ -50,6 +86,9 @@ Reloads the website without using cache.
|
|||||||
.TP
|
.TP
|
||||||
.B Ctrl\-y
|
.B Ctrl\-y
|
||||||
Copies current URI to primary selection.
|
Copies current URI to primary selection.
|
||||||
|
.TP
|
||||||
|
.B Ctrl\-o
|
||||||
|
show the sourcecode of the current page.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR dmenu(1)
|
.BR dmenu(1)
|
||||||
.BR xprop(1)
|
.BR xprop(1)
|
||||||
|
|||||||
Reference in new issue
Block a user