89 Commits

Author SHA1 Message Date
Enno Boland (tox) d1eb8253b1 next will be 0.4.1 2010-06-08 09:06:10 +02:00
Enno Boland (tox) 54df460866 reverting sessiontime 2010-06-03 22:50:04 +02:00
Enno Boland (tox) 1005ea0ac9 Added tag 0.4 for changeset ac8e058003ed 2010-05-30 22:05:37 +02:00
Enno Boland (tox) ca1c7f434b Adding Nibbles patch 2010-05-28 13:20:17 +02:00
Enno Boland (tox) 8cc71f8216 typo 2010-05-26 15:34:09 +02:00
Enno Boland (tox) 7330d0e261 Applying Nibbles download patch. Thanks! 2010-05-26 15:33:01 +02:00
Enno Boland (tox) 7d3d996a3d merge 2010-05-25 10:38:23 +02:00
Enno Boland (tox) d46697044e changing user agent string as suggested by Marvin Vek 2010-05-25 10:34:43 +02:00
Enno Boland (tox) 532205d7e7 removing spatial navigation. 2010-05-24 21:35:20 +02:00
Enno Boland (tox) aadcd5b3f0 implementing downloading. 2010-05-24 21:23:39 +02:00
Enno Boland (tox) 7fcf745092 enabling spatial-navigation 2010-05-24 21:23:28 +02:00
Enno Boland (tox) 5878067225 AtomHiLight is set correctly for links. 2010-05-18 14:20:24 +02:00
Enno Boland (tox) 7ce2856194 merge 2010-05-17 23:13:44 +02:00
Enno Boland (tox) 36129338cf changing xprops 2010-05-17 11:45:28 +02:00
Enno Boland (tox) 0a6eafe077 dl is not needed anymore 2010-05-17 11:01:37 +02:00
Enno Boland (tox) 6376a30379 removing context-menu, downloading. 2010-05-17 10:58:08 +02:00
Enno Boland (tox) 3dbf628964 changing sessiontime to 3600 2010-05-15 15:47:47 +02:00
Enno Boland (tox) 91d04b15f0 merge 2010-05-11 14:57:44 +02:00
Enno Boland (tox) b1e9a6e9ab fix download/history bug 2010-05-11 14:57:09 +02:00
pancake 424936e96c Fix NOBACKGROUND meaning 2010-05-09 22:51:26 +02:00
Enno Boland (tox) 8acc31bbde changing default value of NOBACKGROUND 2010-05-09 22:46:22 +02:00
Enno Boland (tox) f304d0af52 merge 2010-05-09 22:41:11 +02:00
Enno Boland (tox) 168da3730f added js-fix by Troels Henriksen. Thanks :) 2010-05-09 19:37:46 +02:00
pancake 11039e5e2b Do not set cookie session time if set to 0
Add NOBACKGROUND config.def.h option
 - requires body {background-color} in style.css
 - fixes white background when loading pages
2010-05-08 21:43:53 +02:00
Enno Boland (tox) 602eb61623 implementing naive file locking. 2010-05-06 13:58:49 +02:00
Enno Boland (tox) bef892f513 fixing compilerwarning in newer webkit versions 2010-05-06 13:09:54 +02:00
Enno Boland (tox) f9a411f22d fixing config.mk 2010-05-06 13:06:50 +02:00
Enno Boland (tox) e9c9715f52 Adding small fix by Alex Puterbaugh. Thanks. 2010-05-02 10:59:28 +02:00
pancake 4b1b1b8a20 remove empty lines 2010-04-08 20:28:32 +02:00
Enno Boland (tox) 8aabfa5b45 whoops... linking Oo 2010-03-29 17:49:34 +02:00
Enno Boland (tox) 981e52d5a7 typofix. 2010-03-26 21:44:48 +01:00
Enno Boland (tox) a7f2765da4 reimplementing cookies. Now we need some file locking. 2010-03-25 09:59:30 +01:00
Enno Boland (tox) a05bcc653e updating manpage, reformating help output. 2010-03-25 00:05:37 +01:00
Enno Boland (tox) 62dc599a04 fixing argument parsing. 2010-03-24 23:55:41 +01:00
Enno Boland (tox) 3ede103556 fixing downloads 2010-03-24 23:18:03 +01:00
Enno Boland (tox) 19aaa5a74b gotheaders will now be called correctly. 2010-03-24 22:04:36 +01:00
Enno Boland (tox) 3434ccc16a adding surf-logo. 2010-03-24 21:05:11 +01:00
Enno Boland (tox) b8105c64ed working on cookies 2010-03-24 20:56:56 +01:00
Enno Boland (tox) e2cae4d1f5 reformating 2010-03-24 19:16:10 +01:00
Enno Boland (tox) 814bf92565 adding cmd-switches for turning of images/plugins/scripts 2010-03-24 19:11:01 +01:00
Enno Boland (tox) e252a5ec63 now we've got access to cookies before they're sended. Let's start building a cookiehandler. 2010-03-24 18:17:19 +01:00
Enno Boland (tox) b2a970d04d session gets set properly in setup() 2010-03-10 21:38:07 +01:00
Enno Boland (tox) 1cbeab188d fixing progress, beginning new cookie implementation 2010-03-08 10:06:32 +01:00
Enno Boland (tox) 764550e087 small typo. 2010-03-08 09:30:26 +01:00
Enno Boland (tox) 4f7fdd1dfa removed persistent cookies, replaced deprecated eventlisteners 2010-03-08 09:24:55 +01:00
Enno Boland (tox) 94601622a1 _SURF_URI gets initialised as soon as the window opens. 2010-01-29 09:44:14 +01:00
Enno Boland (tox) b18189d016 fixing manpage 2010-01-20 14:46:22 +01:00
Enno Boland (tox) 0fb97666ec dl has to be a directory, not a file. 2010-01-04 14:39:40 +01:00
Enno Boland (tox) 2f9c554f02 adding fixes from thomas_adam. Thanks :) 2009-12-15 17:16:01 +01:00
Enno Boland (tox) f42461c3cc Backed out changeset 260fda70689f 2009-11-09 00:05:45 +01:00
Enno Boland (tox) 1d93bfa9ce changing locking algorythm for setprop. 2009-11-08 23:45:36 +01:00
Enno Boland (tox) b57eca1a2b SETPROP() macro shows now the current value in dwm. 2009-11-08 23:45:11 +01:00
Enno Boland (tox) c0510b0cc9 next version will be 0.4 2009-11-02 09:29:54 +01:00
Enno Boland (tox) f0f3ddce76 adding environment variables for proxy and useragent 2009-11-02 09:27:32 +01:00
Enno Boland (tox) 7365214bbf Added tag 0.3 for changeset 46d516fd2167 2009-10-30 13:40:49 +01:00
Enno Boland (tox) c00ee3eb78 changing SETPROP()-macro 2009-10-30 13:38:14 +01:00
Enno Boland (tox) c30a95c635 quoting fix reported by Evan Gates. 2009-10-28 22:22:20 +01:00
Enno Boland (tox) ae42cfde8f sorting functions alphabetical. 2009-10-28 20:43:30 +01:00
Enno Boland (tox) 9d4953691d some polishing. 2009-10-28 19:27:11 +01:00
Enno Boland (tox) 54c73ca84d removed warning when closing a surf-window. 2009-10-28 17:33:31 +01:00
Enno Boland (tox) 4501408808 displaying progress before pagetitle. 2009-10-28 12:17:15 +01:00
Enno Boland (tox) 742fc7fac1 adding automatic download for not supported files. 2009-10-27 08:26:21 +01:00
Enno Boland (tox) a9d733bd9f fixing downloads based on Evan Gates' patch. 2009-10-27 08:11:44 +01:00
Enno Boland (tox) 1d019cf8af Adding Evan Gates' patch. 2009-10-26 22:02:21 +01:00
Enno Boland (tox) f347b9f336 moving reloadcookie() call 2009-10-26 22:01:44 +01:00
Enno Boland (tox) b29a8f5356 cleaning up config.mk 2009-10-26 16:54:33 +01:00
Enno Boland (tox) 05fbb4ab76 Adding Lorenzo Bollas hints patch. 2009-10-21 15:52:36 +02:00
Enno Boland (tox) c82fff2dd3 using geturi() where possible. 2009-10-21 10:06:55 +02:00
Enno Boland (tox) b483f49b20 next version is 0.3 2009-10-21 10:06:21 +02:00
Enno Boland (tox) 87563c7e9d fixing config.def.h 2009-10-21 09:25:09 +02:00
Enno Boland (tox) 9557e7b769 replacing ignore_once with ignorexprop 2009-10-21 08:35:58 +02:00
Enno Boland (tox) 52a9c8ca52 removing comments. 2009-10-20 23:54:37 +02:00
Enno Boland (tox) e0a8f381b9 forgot to add config.def.h 2009-10-20 23:49:37 +02:00
Enno Boland (tox) 50192577ee replacing gtk-textentrys with dmenu 2009-10-20 23:46:54 +02:00
Enno Boland (tox) 60dd7545d3 small fix 2009-10-20 20:58:18 +02:00
Enno Boland (tox) c38404fd0b small cleanups 2009-10-20 20:52:43 +02:00
Enno Boland (tox) 31441e93f7 adding autozoom lock when site is already zoomed. 2009-10-20 20:49:33 +02:00
Enno Boland (tox) 92afa03d80 adding autozoom for small windows 2009-10-20 20:34:13 +02:00
Enno Boland (tox) f277dbd3d2 using another way to handle cookies. 2009-10-20 19:51:14 +02:00
Enno Boland (tox) 54b93a2dd6 Backed out changeset 7a57a0a8dbc6 2009-10-20 18:57:08 +02:00
Enno Boland (tox) 72e01b2544 reformating 2009-10-20 14:11:08 +02:00
Enno Boland (tox) 0835ea2124 Trying a different cookie handling system. 2009-10-20 14:10:21 +02:00
Enno Boland (tox) 75cc43047f changing some labels in submenu. 2009-10-20 14:09:37 +02:00
Enno Boland (tox) 9dc703aff3 whitespace fix. 2009-10-17 20:54:11 +02:00
Enno Boland (tox) ca10af0783 typo fix 2009-10-17 20:33:27 +02:00
Enno Boland (tox) 2cfbcbdf71 updating manpage. 2009-10-17 15:17:58 +02:00
Enno Boland (tox) 9a3c483893 using events for changing cookies 2009-10-17 13:19:21 +02:00
Enno Boland (tox) e9ee0940b7 Sessioncookies made persistant. 2009-10-17 12:41:40 +02:00
Enno Boland (tox) 8eb2392442 Added tag 0.2 for changeset a5db79d487c8 2009-10-17 09:23:28 +02:00
6 changed files with 417 additions and 380 deletions
+3
View File
@@ -3,3 +3,6 @@ d8628fc93353faa411c9fc7eef82d11a84d26ae2 0.1
9c8ebcf54061112b5979742b403de26fc94007ff 0.1 9c8ebcf54061112b5979742b403de26fc94007ff 0.1
3ef997607115303fe93873b592d152f0ec186f77 0.1.1 3ef997607115303fe93873b592d152f0ec186f77 0.1.1
bffb0c3c23410ac7f260d167f4b9771497fc1127 0.1.2 bffb0c3c23410ac7f260d167f4b9771497fc1127 0.1.2
a5db79d487c85615be2ecf30815c6b4977e88000 0.2
46d516fd216731adf91740496e6823c1be4f6199 0.3
ac8e058003ed2c0974529808752e5da7692fd7d8 0.4
+31 -35
View File
@@ -1,44 +1,40 @@
/* modifier 0 means no modifier */ /* modifier 0 means no modifier */
static char *useragent = "Mozilla/5.0 (X11; U; Linux; en-us) AppleWebKit/531.2+ (KHTML, like Gecko, surf-"VERSION") Safari/531.2+"; static char *useragent = "Surf/"VERSION" (X11; U; Unix; en-US) AppleWebKit/531.2+ Compatible (Safari)";
static char *progress = "#FF0000"; static char *progress = "#FF0000";
static char *progress_trust = "#00FF00"; static char *progress_trust = "#00FF00";
static char *stylefile = ".surf/style.css"; static char *stylefile = ".surf/style.css";
static char *scriptfile = ".surf/script.js"; static char *scriptfile = ".surf/script.js";
static char *cookiefile = ".surf/cookie.txt"; static char *cookiefile = ".surf/cookies.txt";
static char *dldir = ".surf/dl"; 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 }, Any }, { MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE } },
{ MODKEY, GDK_r, reload, { .b = FALSE }, Any }, { MODKEY, GDK_r, reload, { .b = FALSE } },
{ MODKEY, GDK_g, showuri, { 0 }, Any }, { MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 } },
{ MODKEY, GDK_slash, showsearch, { 0 }, Any }, { MODKEY, GDK_p, clipboard, { .b = TRUE } },
{ 0, GDK_Escape, hidesearch, { 0 }, Any }, { MODKEY, GDK_y, clipboard, { .b = FALSE } },
{ 0, GDK_Escape, hideuri, { 0 }, Any }, { MODKEY|GDK_SHIFT_MASK,GDK_j, zoom, { .i = -1 } },
{ MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 }, Any }, { 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 }, UriBar },
{ 0, GDK_Return, hideuri, { 0 }, UriBar },
};
static Item items[] = {
{ "New Window", newwindow, { .v = NULL } },
{ "Reload", reload, { .b = FALSE } },
{ "Stop", stop, { 0 } },
{ "<===", navigate, { .i = -1 } },
{ "===>", navigate, { .i = +1 } },
}; };
+3 -5
View File
@@ -1,5 +1,5 @@
# surf version # surf version
VERSION = 0.2 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}\"
+45 -6
View File
@@ -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)
+326 -325
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B