surf is a simple webbrowser based on webkit/gtk+, the same web engine that powers Google Chrome.
used with dwm and dmenu, it’s a very powerfull, yet simple tool.
here is a patch to apply X geometry hints to surf, so that surf windows behave in dwm.
*** surf.c.orig 2009-08-24 16:41:31.000000000 +0100
--- surf.c 2009-08-24 16:35:02.000000000 +0100
***************
*** 372,377 ****
--- 372,381 ----
gtk_container_add(GTK_CONTAINER(c->vbox), c->searchbar);
gtk_container_add(GTK_CONTAINER(c->vbox), c->urlbar);
+ /* Hints */
+ GdkGeometry hints = { 1, 1 };
+ gtk_window_set_geometry_hints(GTK_WINDOW(c->win), NULL, &hints, GDK_HINT_MIN_SIZE);
+
/* Setup */
gtk_box_set_child_packing(GTK_BOX(c->vbox), c->urlbar, FALSE, FALSE, 0, GTK_PACK_START);
gtk_box_set_child_packing(GTK_BOX(c->vbox), c->searchbar, FALSE, FALSE, 0, GTK_PACK_START);
another hint is to create a script to feed surf with your favorite bookmarks. here it is:
#!/bin/sh
exe="surf -u `cat ~/.bookmarks | dmenu ${1+"$@"}`" && exec $exe
enjoy!
[...] under: programming — Tags: browser, dmenu, surf, webkit — lbolla @ 12:45 pm following yesterday’s post, here is another useful hint about surf’s [...]
Pingback by surf browser hints /2 « lorenzo bolla’s blog — August 25, 2009 @ 12:45 pm
You might want to give uzbl a try
http://www.uzbl.org/
Comment by Emanuelez — September 7, 2009 @ 11:39 am
done already
the config file is too long for my tastes!
Comment by lbolla — October 4, 2009 @ 1:29 pm