153 Commits

Author SHA1 Message Date
Troels Henriksen bb01475018 Change horizontal scrolling to ^u and ^i, remove ^g scrolling. 2012-06-11 17:16:52 +02:00
pancake d4b030eeb4 apply nick's patch removing unused variable and parameters 2012-06-11 16:45:48 +02:00
pancake 101f2d6455 apply nick's patch removing the autoresize functionality 2012-06-11 16:01:03 +02:00
Troels Henriksen 3083ef4031 Keybindings for scrolling left and right; code by stanio. 2012-05-31 11:46:24 +02:00
Troels Henriksen cf75bf2777 Manpage patch from Evan Gates. 2012-03-26 09:33:42 +02:00
Troels Henriksen 96041e5ba2 Close standard output after printing XID, patch due Abby Cedar. 2012-02-21 12:00:01 +01:00
anselm@garbe.us 6af15aa636 making cookie file creation a bit more pedantic 2012-02-11 17:51:48 +01:00
anselm@garbe.us a0e269b6bd applied fix from dev list and debian reviewers 2012-02-11 10:40:32 +01:00
Christoph Lohmann 3da24a7481 Fixing the javascriptcoregtk-1.0 dependency. 2012-02-01 15:23:39 +01:00
Troels Henriksen 7c7a3b58cf Add a variable in config.def.h for configuring spatial browsing. 2012-01-17 13:58:04 +01:00
Troels Henriksen e75753775f Status message patch from Jeremy Jackins and skls. 2012-01-17 13:54:35 +01:00
Connor Lane Smith fc31616141 link Xlib in config.mk 2011-11-20 16:06:38 +01:00
Troels Henriksen b8f45a588d Manual fixes from Nick White. 2011-11-09 15:09:59 +01:00
Troels Henriksen 590a9bb19d Cleanup previous patch. 2011-11-05 12:06:08 +01:00
Troels Henriksen df96fe4171 Use the surf user agent when downloading with wget. 2011-11-05 11:43:46 +01:00
Troels Henriksen 543d0c77ee The ICCCM states that window classes should be capitalised. 2011-11-04 13:57:04 +01:00
Troels Henriksen bc73b48743 Add SSL verification patch by Nick White. 2011-11-04 13:23:57 +01:00
Troels Henriksen 2e62372969 Add eval() function for executing Javascript. Handy for keybindings. 2011-11-03 14:09:19 +01:00
garbeam@gmail.com 3b104416d3 added 20h's patch of 8 Sep 2011 to surf, thanks 2011-10-29 10:59:34 +02:00
pancake 62f54a3745 rename NOBACKGROUND to HIDE_BACKGROUND and use TRUE/FALSE instead of 0/1 2011-03-31 12:52:35 +02:00
Enno Boland (tox) f1299dcfc1 Adding nibbles patch 2010-09-09 11:15:02 +02:00
pancake a1db4e9bf5 fix for segfault when closing window while loading (via nibble) 2010-09-02 14:02:12 +02:00
Enno Boland (tox) db72e066d1 using ctrl-f to find. 2010-06-25 09:42:58 +02:00
Enno Boland (tox) 86c230c2bb Added tag 0.4.1 for changeset 71388899ac09 2010-06-08 09:06:15 +02:00
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
Enno Boland (tox) bdfa30bf33 fixing double calling functions from contextmenu. 2009-10-17 08:57:23 +02:00
Enno Boland (tox) 5ac31995a3 implementing cookie persistance with multiple processes. 2009-10-17 08:38:46 +02:00
Enno Boland (tox) 3657813fec removed builtin unfinished cookie handling. 2009-10-17 07:50:10 +02:00
Enno Boland (tox) 7ffdcd756c small typo 2009-10-16 16:34:05 +02:00
Enno Boland (tox) 2eafff0e8b using char instead of gchar. 2009-10-16 16:33:18 +02:00
Enno Boland (tox) b298d889de implementing user defined context menu 2009-10-16 15:35:11 +02:00
Enno Boland (tox) e3690dffed renaming newproc to newwindow; make it usable within keys; begin implementing contextmenu 2009-10-16 14:19:25 +02:00
Enno Boland (tox) f62505a47a changing char to gchar where possible; unifing WebKitWebView variable naming 2009-10-16 14:03:39 +02:00
Enno Boland (tox) 7e86ea553f improving urlbar hiding. 2009-10-16 10:55:05 +02:00
Enno Boland (tox) 17bbc1a3cc creating new process when opening new window if possible. 2009-10-15 16:31:49 +02:00
Enno Boland (tox) 533c8e5b35 better useragent string (for google-* and stuff) 2009-10-14 19:05:01 +02:00
Enno Boland (tox) d97b8adfde changing useragent. 2009-10-14 16:28:00 +02:00
Enno Boland (tox) 24bbd6be02 uncommenting source() 2009-10-14 15:19:00 +02:00
Enno Boland (tox) fe87a88954 removing loadfile. readding later in a simpler way. 2009-10-13 23:22:25 +02:00
Enno Boland (tox) 95a6bfcc03 removing debug output 2009-10-13 22:02:06 +02:00
Enno Boland (tox) 499a497b4e fixing stupidy bug. 2009-10-13 22:01:19 +02:00
Enno Boland (tox) 029dac1504 fixing memoryleak. 2009-10-13 21:58:35 +02:00
Enno Boland (tox) 0d28cf7458 making config-files configurable in config.h 2009-10-13 21:52:43 +02:00
Enno Boland (tox) 92cb8792e1 small whitespacefix. 2009-10-13 20:10:43 +02:00
Enno Boland (tox) 04173f6661 hooking onloadfunctions should be done by script.js. 2009-10-07 15:00:20 +02:00
Enno Boland (tox) d3d32fd6c7 commenting. 2009-09-21 19:28:39 +02:00
Enno Boland (tox) a3e1e27762 typo 2009-09-21 03:27:20 +02:00
Enno Boland (tox) 2e9af54363 reformating 2009-09-17 13:03:58 +02:00
Enno Boland (tox) 25b9ae3ce4 applied patch from arg. thanks :) 2009-09-17 01:09:00 +02:00
Enno Boland (tox) d2a4436123 next version is 0.2 2009-09-16 10:18:08 +02:00
Enno Boland (tox) 65e09f7b03 auto creation of script.js 2009-09-16 10:12:27 +02:00
Enno Boland (tox) e9d4da3030 adding user.js support. 2009-09-16 10:06:21 +02:00
Enno Boland (tox) 0e3ac7f3b0 usercss works again. 2009-09-13 16:15:28 +02:00
Enno Boland (tox) a2da3b7eef Added tag 0.1.2 for changeset bffb0c3c2341 2009-09-11 09:39:43 +02:00
Enno Boland (tox) 0ece786d3f next will be 0.1.2 2009-09-11 09:39:36 +02:00
Enno Boland (tox) 2f639aede5 Makefile fixing 2009-09-11 09:38:53 +02:00
Enno Boland (tox) f400f0d56f Adding README file. 2009-09-11 08:18:09 +02:00
Enno Boland (tox) 44511e2549 unfocus should return false; renaming cookie-file. 2009-09-11 08:12:08 +02:00
Enno Boland (tox) 38a098c81d surf embeds now itself into another window. 2009-09-11 07:21:18 +02:00
Enno Boland (tox) c023780eda Added tag 0.1.1 for changeset 3ef997607115 2009-09-10 23:36:54 +02:00
Enno Boland (tox) 9d213cec97 bugfix release 2009-09-10 23:36:39 +02:00
Enno Boland (tox) 2d83c719a2 removing unneeded background color. 2009-09-10 23:32:39 +02:00
Enno Boland (tox) 159022e4ef rearranging some source. 2009-09-10 17:51:16 +02:00
Enno Boland (tox) 2fd67f61e7 adding user stylesheets. 2009-09-10 17:41:56 +02:00
Enno Boland (tox) f5ac8546ea Added tag 0.1 for changeset 9c8ebcf54061 2009-09-10 09:49:21 +02:00
9 changed files with 688 additions and 422 deletions
+8
View File
@@ -1 +1,9 @@
d8628fc93353faa411c9fc7eef82d11a84d26ae2 0.1
d8628fc93353faa411c9fc7eef82d11a84d26ae2 0.1
9c8ebcf54061112b5979742b403de26fc94007ff 0.1
3ef997607115303fe93873b592d152f0ec186f77 0.1.1
bffb0c3c23410ac7f260d167f4b9771497fc1127 0.1.2
a5db79d487c85615be2ecf30815c6b4977e88000 0.2
46d516fd216731adf91740496e6823c1be4f6199 0.3
ac8e058003ed2c0974529808752e5da7692fd7d8 0.4
71388899ac09d21e6c93518cc57a28395034f63c 0.4.1
+2 -1
View File
@@ -1,6 +1,7 @@
MIT/X Consortium License
© 2009 Enno Boland <g s01 de>
© 2011-2012 Troels Henriksen <athas@sigkill.at>
© 2009-2011 Enno Boland <g s01 de>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
+1 -1
View File
@@ -35,7 +35,7 @@ clean:
dist: clean
@echo creating dist tarball
@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}
@tar -cf surf-${VERSION}.tar surf-${VERSION}
@gzip surf-${VERSION}.tar
+25
View File
@@ -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]
+44 -28
View File
@@ -1,33 +1,49 @@
/* modifier 0 means no modifier */
static gchar *progress = "#FF0000";
static gchar *progress_trust = "#00FF00";
static gchar *background = "#000000";
static char *useragent = "Surf/"VERSION" (X11; U; Unix; en-US) AppleWebKit/531.2+ Compatible (Safari)";
static char *progress = "#0066FF";
static char *progress_untrust = "#FF6600";
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;
static char *cafile = "/etc/ssl/certs/ca-certificates.crt";
static char *strictssl = FALSE; /* Refuse untrusted SSL connections */
#define HIDE_BACKGROUND FALSE
#define SPATIAL_BROWSING TRUE
#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 '$0' \
--load-cookies ~/.surf/cookies.txt \
--user-agent '$1' ; sleep 5\"", d, useragent, NULL } }
#define MODKEY GDK_CONTROL_MASK
static Key keys[] = {
/* modifier keyval function arg Focus */
{ MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE }, ALWAYS },
{ MODKEY, GDK_r, reload, { .b = FALSE }, ALWAYS },
{ MODKEY, GDK_g, showurl, { 0 }, ALWAYS },
{ MODKEY, GDK_slash, showsearch, { 0 }, ALWAYS },
{ 0, GDK_Escape, hidesearch, { 0 }, ALWAYS },
{ 0, GDK_Escape, hideurl, { 0 }, ALWAYS },
{ MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 }, ALWAYS },
{ MODKEY, GDK_p, clipboard, { .b = TRUE }, BROWSER },
{ MODKEY, GDK_y, clipboard, { .b = FALSE }, BROWSER },
{ MODKEY|GDK_SHIFT_MASK,GDK_j, zoom, { .i = -1 }, BROWSER },
{ MODKEY|GDK_SHIFT_MASK,GDK_k, zoom, { .i = +1 }, BROWSER },
{ MODKEY|GDK_SHIFT_MASK,GDK_i, zoom, { .i = 0 }, BROWSER },
{ MODKEY, GDK_l, navigate, { .i = +1 }, BROWSER },
{ MODKEY, GDK_h, navigate, { .i = -1 }, BROWSER },
{ MODKEY, GDK_j, scroll, { .i = +1 }, BROWSER },
{ MODKEY, GDK_k, scroll, { .i = -1 }, BROWSER },
{ 0, GDK_Escape, stop, { 0 }, BROWSER },
{ MODKEY, GDK_o, source, { 0 }, BROWSER },
{ 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 },
{ MODKEY|GDK_SHIFT_MASK,GDK_r, reload, { .b = TRUE } },
{ MODKEY, GDK_r, reload, { .b = FALSE } },
{ MODKEY|GDK_SHIFT_MASK,GDK_p, print, { 0 } },
{ MODKEY, GDK_p, clipboard, { .b = TRUE } },
{ MODKEY, GDK_y, clipboard, { .b = FALSE } },
{ MODKEY|GDK_SHIFT_MASK,GDK_j, zoom, { .i = -1 } },
{ MODKEY|GDK_SHIFT_MASK,GDK_k, zoom, { .i = +1 } },
{ MODKEY|GDK_SHIFT_MASK,GDK_i, zoom, { .i = 0 } },
{ MODKEY, GDK_l, navigate, { .i = +1 } },
{ MODKEY, GDK_h, navigate, { .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_Escape, stop, { 0 } },
{ MODKEY, GDK_o, source, { 0 } },
{ MODKEY, GDK_g, spawn, SETPROP("_SURF_URI", "_SURF_GO") },
{ MODKEY, GDK_f, spawn, SETPROP("_SURF_FIND", "_SURF_FIND") },
{ MODKEY, GDK_n, find, { .b = TRUE } },
{ MODKEY|GDK_SHIFT_MASK,GDK_n, find, { .b = FALSE } },
};
+10 -9
View File
@@ -1,5 +1,5 @@
# surf version
VERSION = 0.1
VERSION = 0.5
# Customize below to fit your system
@@ -7,20 +7,21 @@ VERSION = 0.1
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
GTKINC=$(shell pkg-config --cflags gtk+-2.0 webkit-1.0)
GTKLIB=$(shell pkg-config --libs gtk+-2.0 webkit-1.0)
X11INC = /usr/X11R6/include
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
INCS = -I. -I/usr/include ${GTKINC}
LIBS = -L/usr/lib -lc ${GTKLIB} -lgthread-2.0
INCS = -I. -I/usr/include -I${X11INC} ${GTKINC}
LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0 \
-ljavascriptcoregtk-1.0
# flags
CPPFLAGS = -DVERSION=\"${VERSION}\"
#CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Werror -O0 ${INCS} ${CPPFLAGS}
#LDFLAGS = -s ${LIBS}
LDFLAGS = ${LIBS}
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
LDFLAGS = -g ${LIBS}
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
+56 -9
View File
@@ -3,7 +3,12 @@
surf \- simple webkit-based browser
.SH SYNOPSIS
.B surf
.RB [ \-ehvx ]
.RB [-e\ xid]
.RB [-i]
.RB [-p]
.RB [-s]
.RB [-v]
.RB [-x]
.RB "URI"
.SH DESCRIPTION
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.
.SH OPTIONS
.TP
.B \-e
Prints xid to standard output and waits until an application reparents the
window.
.B \-e xid
Reparents to window specified by xid.
.TP
.B \-h
Prints usage information to standard output, then exits.
.B \-i
Disable Images
.TP
.B \-p
Disable Plugins
.TP
.B \-s
Disable Javascript
.TP
.B \-v
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
.BR xprop(1).
.SH USAGE
.B Escape
Stops loading current page or stops download.
.TP
.B Ctrl\-h
Walks back the history.
@@ -33,15 +45,39 @@ Walks back the history.
.B Ctrl\-l
Walks forward the history.
.TP
.B Ctrl\-/
.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\-f
Opens the search-bar.
.TP
.B Ctrl\-n
Go to next search result.
.TP
.B Ctrl\-Shift\-n
Go to previous search result.
.TP
.B Ctrl\-g
Opens the URL-bar.
.TP
.B Ctrl\-p
Loads URI from primary selection.
.TP
.B Ctrl\-Shift\-p
Calls Printpage Dialog.
.TP
.B Ctrl\-r
Reloads the website.
.TP
@@ -50,8 +86,19 @@ Reloads the website without using cache.
.TP
.B Ctrl\-y
Copies current URI to primary selection.
.TP
.B Ctrl\-o
show the sourcecode of the current page.
.SH ENVIRONMENT
.TP
.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 SEE ALSO
.BR dmenu(1)
.BR xprop(1)
.BR dmenu(1),
.BR xprop(1),
.BR tabbed(1)
.SH BUGS
Please report them!
+542 -374
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