--- config.def.h 2009-09-11 02:40:39.000000000 -0500 +++ config.h 2009-09-27 17:27:45.000000000 -0500 @@ -1,6 +1,9 @@ /* modifier 0 means no modifier */ static gchar *progress = "#FF0000"; static gchar *progress_trust = "#00FF00"; + +static void hideimages(Client *c, const Arg *arg); + #define MODKEY GDK_CONTROL_MASK static Key keys[] = { /* modifier keyval function arg Focus */ @@ -28,5 +31,12 @@ static Key keys[] = { { 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_i, hideimages, { 0 }, ALWAYS }, }; +void +hideimages(Client *c, const Arg *arg) { + WebKitWebSettings *settings; + settings = webkit_web_view_get_settings(c->view); + g_object_set(G_OBJECT(settings), "auto-load-images", 0, NULL); +} \ No newline at end of file