Re: [dev] dwm-5.7 Dual head setup

2009-09-27 Thread Anselm R Garbe
2009/9/27 Julien Steinhauser :
> On Sun, Sep 27, 2009 at 12:29:09AM +0200, Julien Steinhauser wrote:
>>
>> With brand new vanilla dwm-5.7, on my laptop with a screen
>> on the vga output, when I open a term from laptop screen
>> and that I shift it on vga screen, the focus goes also to vga.
>> when I open a term on the vga and shift it on the laptop screen,
>> the term is correctly shifted but the focus remains on the vga.
>> Is this different behavior intended?
>>
>> I like the behavior focus follows shift, if it is a bug,
>> it is a good one :) .
>>
>> As I'm writing this mail, I checked on vanilla 5.6.1,
>> it behaves exactly the same.
>
> Actually, it was related to my mouse position, I can revert
> this behavior by moving the mouse between screens. I didn't notice
> it sooner because she's hidden with unclutter and
> I don't often use it.

Yes, dwm sets the input focus to the PointerRoot location if there are
no remaining clients in the focused view. If there is a client window
when this happens, dwm sees an enternotify event and focuses that
client. I can't see a better approach, so I don't consider this as a
bug.

Kind regards,
Anselm



Re: [dev] dwm nmaster_bstack-5.7

2009-09-27 Thread Mate Nagy
Hiho,
On Sun, Sep 27, 2009 at 01:21:51AM +0200, Julien Steinhauser wrote:
> nmaster_bstack patch updated for dwm-5.7.
 the nmaster patch page http://dwm.suckless.org/patches/nmaster actually
has this patch already; actually, a stilistically improved version by nsz.
 (Yeah, I noticed after I updated the patch myself... Now I'm using
nsz's version.)

Regards,
 Mate



[dev] dwm-5.7.1

2009-09-27 Thread Anselm R Garbe
Hi there,

I released a bugfix release that fixes the layout symbol updating
mechanism during setlayout (though in a different way as suggested by
Nibble) and that contains some improvements for the overall drawbar()
and arrange() handling which performed unnecessary execution on
unchanged monitors. It can be downloaded from:

  http://dl.suckless.org/dwm/dwm-5.7.1.tar.gz

Please report any issues.

Kind regards,
Anselm

2009/9/26 Anselm R Garbe :
> Hi there,
>
> I'm glad to announce dwm-5.7 which can be downloaded from:
>
>  http://dl.suckless.org/dwm/dwm-5.7.tar.gz
>
> This release contains various code cleanups and several minor
> improvements, in particular several contributed patches by Neale,
> anydot, Jukka, nsz, and Tony.
> The biggest changes are that the layout symbol can be modified by the
> arrange function of a layout (see monocle() for an example) and that
> the updategeom() algorithm has been rewritten from scratch. Now
> geometry changes do not result in a complete destruction of the
> Monitor struct and broken applications like wine that configure the
> root window do not result in recreating the Monitor struct altogether.
>
> Several patches have been updated to dwm-5.7 already.
>
> Once again many thanks to all contributors!
>
> Please report any issues.
>
> Kind regards,
> Anselm



Re: [dev] dwm pertag_5.7

2009-09-27 Thread Szabolcs Nagy
On 9/26/09, Julien Steinhauser  wrote:
> I've haven't tried it yet in combinaison with nmaster and bstack patch,
> ( I need to update them first, that will be my next duty :) ).

they are already there
http://dwm.suckless.org/patches/nmaster
http://dwm.suckless.org/patches/bottom_stack
both work with 5.7 just fine



Re: [dev] dwm-5.7.1

2009-09-27 Thread Ryan Zheng
Bug still happens on mod-space. Patch attached.

On Sun, Sep 27, 2009 at 01:38, Anselm R Garbe  wrote:
> Hi there,
>
> I released a bugfix release that fixes the layout symbol updating
> mechanism during setlayout (though in a different way as suggested by
> Nibble) and that contains some improvements for the overall drawbar()
> and arrange() handling which performed unnecessary execution on
> unchanged monitors. It can be downloaded from:
>
>  http://dl.suckless.org/dwm/dwm-5.7.1.tar.gz
>
> Please report any issues.
>
> Kind regards,
> Anselm
>
> 2009/9/26 Anselm R Garbe :
>> Hi there,
>>
>> I'm glad to announce dwm-5.7 which can be downloaded from:
>>
>>  http://dl.suckless.org/dwm/dwm-5.7.tar.gz
>>
>> This release contains various code cleanups and several minor
>> improvements, in particular several contributed patches by Neale,
>> anydot, Jukka, nsz, and Tony.
>> The biggest changes are that the layout symbol can be modified by the
>> arrange function of a layout (see monocle() for an example) and that
>> the updategeom() algorithm has been rewritten from scratch. Now
>> geometry changes do not result in a complete destruction of the
>> Monitor struct and broken applications like wine that configure the
>> root window do not result in recreating the Monitor struct altogether.
>>
>> Several patches have been updated to dwm-5.7 already.
>>
>> Once again many thanks to all contributors!
>>
>> Please report any issues.
>>
>> Kind regards,
>> Anselm
>
>
diff -r 496694696a61 dwm.c
--- a/dwm.c	Sun Sep 27 10:31:20 2009 +0100
+++ b/dwm.c	Sun Sep 27 02:59:56 2009 -0700
@@ -1449,10 +1449,9 @@
 setlayout(const Arg *arg) {
 	if(!arg || !arg->v || arg->v != selmon->lt[selmon->sellt])
 		selmon->sellt ^= 1;
-	if(arg && arg->v) {
+	if(arg && arg->v)
 		selmon->lt[selmon->sellt] = (Layout *)arg->v;
-		strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
-	}
+	strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
 	if(selmon->sel)
 		arrange(selmon);
 	else


Re: [dev] dwm-5.7 Dual head setup

2009-09-27 Thread Stanimir Dragiev
* Julien Steinhauser  [2009-09-27 01:37]:
> On Sun, Sep 27, 2009 at 12:29:09AM +0200, Julien Steinhauser wrote:
> Actually, it was related to my mouse position, I can revert
> this behavior by moving the mouse between screens. I didn't notice
> it sooner because she's hidden with unclutter and
> I don't often use it.
 
This might be related to what is the subject of the following thread?
http://www.mail-archive.com/d...@suckless.org/msg06240.html

-- 
 cheers
 stanio_



[dev] [surf] New flash-preventing patch

2009-09-27 Thread Tadeusz Sośnierz
Hello there,
I've seen a flash-toggling patch some time ago here, though it wasn't
compatibile with the latest hg pull, I've simplified it a bit, and it
now works like a charm. How about adding it to werc? Some javascript
solution will probably be more elegant, but I don't know anything about
it and for me, in today's web, ability to get rid of this silly plugins
is more than obligatory.
Hope You'll like it.
Regards,
Teddiff -r ca6a33025ebd config.def.h
--- a/config.def.h	Mon Sep 21 19:28:39 2009 +0200
+++ b/config.def.h	Sun Sep 27 13:37:38 2009 +0200
@@ -11,6 +11,7 @@
 { 0,GDK_Escape, hidesearch, { 0 },  Any },
 { 0,GDK_Escape, hideurl,{ 0 },  Any },
 { MODKEY|GDK_SHIFT_MASK,GDK_p,  print,  { 0 },  Any },
+{ MODKEY,   GDK_f,  toggleflash,{ 0 },  Any },
 { MODKEY,   GDK_p,  clipboard,  { .b = TRUE },  Browser },
 { MODKEY,   GDK_y,  clipboard,  { .b = FALSE }, Browser },
 { MODKEY|GDK_SHIFT_MASK,GDK_j,  zoom,   { .i = -1 },Browser },
diff -r ca6a33025ebd surf.c
--- a/surf.c	Mon Sep 21 19:28:39 2009 +0200
+++ b/surf.c	Sun Sep 27 13:37:38 2009 +0200
@@ -109,6 +109,7 @@
 static void showurl(Client *c, const Arg *arg);
 static void stop(Client *c, const Arg *arg);
 static void titlechange(WebKitWebView* view, WebKitWebFrame* frame, const gchar* title, Client *c);
+static void toggleflash(Client *c, const Arg *arg);
 static gboolean unfocusbar(GtkWidget *w, GdkEventFocus *e, Client *c);
 static void usage(void);
 static void update(Client *c);
@@ -451,6 +452,7 @@
 	gdk_window_add_filter(GTK_WIDGET(c->win)->window, processx, c);
 	webkit_web_view_set_full_content_zoom(c->view, TRUE);
 	settings = webkit_web_view_get_settings(c->view);
+	g_object_set(G_OBJECT(settings), "enable-plugins", FALSE, NULL);
 	g_object_set(G_OBJECT(settings), "user-agent", "surf", NULL);
 	filename = g_build_filename(workdir, "style.css", NULL);
 	filename = g_strdup_printf("file://%s", filename);
@@ -663,6 +665,15 @@
 	update(c);
 }
 
+void
+toggleflash(Client *c, const Arg *arg) {
+  static int flash = 0;
+  WebKitWebSettings *settings;
+  settings = webkit_web_view_get_settings(c->view);
+  g_object_set(G_OBJECT(settings), "enable-plugins", !flash, NULL);
+  (flash) ? (flash = 0) : (flash = 1);
+}
+
 gboolean
 unfocusbar(GtkWidget *w, GdkEventFocus *e, Client *c) {
 	hidesearch(c, NULL);


Re: [dev] dwm nmaster_bstack-5.7

2009-09-27 Thread Julien Steinhauser
On Sun, Sep 27, 2009 at 10:12:39AM +0200, Mate Nagy wrote:
> 
> Hiho,
> On Sun, Sep 27, 2009 at 01:21:51AM +0200, Julien Steinhauser wrote:
> > nmaster_bstack patch updated for dwm-5.7.
>  the nmaster patch page http://dwm.suckless.org/patches/nmaster actually
> has this patch already; actually, a stilistically improved version by nsz.
>  (Yeah, I noticed after I updated the patch myself... Now I'm using
> nsz's version.)
> 
> Regards,
>  Mate

Do you mean the nmaster-sym-5.7?
At first glance, I didn't get what the sym stand for,
after reading your mail, I looked at it and saw it has 
also bstack behavior, so the sym stand probably for central symetry,
now I'm also using it.

With it and nmaster=1, I could even remove the tile layout from config.h
and the void tile(Monitor *) from dwm.c and after compile the executable
is smaller than the one I had with my patch.

I don't see any difference in behavior,
I hope the void tile (monitor *) wasn't important for something else,
at the moment it doesn't seem to. 





Re: [dev] dwm nmaster_bstack-5.7

2009-09-27 Thread Mate Nagy
Hiho,
> Do you mean the nmaster-sym-5.7?
> At first glance, I didn't get what the sym stand for,
 I believe 'sym' stands for 'symbol', because this variation rewrites
the layout symbol according to your current nmaster value (to 2]=, 3]=,
or T2T, T3T and so on).
> With it and nmaster=1, I could even remove the tile layout from config.h
> and the void tile(Monitor *) from dwm.c and after compile the executable
> is smaller than the one I had with my patch.
 Yeah, theoretically ntile with nmaster=1 is equivalent to tile.

Best regards,
 Mate



Re: [dev] dwm-5.7 Dual head setup

2009-09-27 Thread Julien Steinhauser
On Sun, Sep 27, 2009 at 08:48:30AM +0100, Anselm R Garbe wrote:
> 
> 2009/9/27 Julien Steinhauser :
> > On Sun, Sep 27, 2009 at 12:29:09AM +0200, Julien Steinhauser wrote:
> >>
> >> With brand new vanilla dwm-5.7, on my laptop with a screen
> >> on the vga output, when I open a term from laptop screen
> >> and that I shift it on vga screen, the focus goes also to vga.
> >> when I open a term on the vga and shift it on the laptop screen,
> >> the term is correctly shifted but the focus remains on the vga.
> >> Is this different behavior intended?
> >>
> >> I like the behavior focus follows shift, if it is a bug,
> >> it is a good one :) .
> >>
> >> As I'm writing this mail, I checked on vanilla 5.6.1,
> >> it behaves exactly the same.
> >
> > Actually, it was related to my mouse position, I can revert
> > this behavior by moving the mouse between screens. I didn't notice
> > it sooner because she's hidden with unclutter and
> > I don't often use it.
> 
> Yes, dwm sets the input focus to the PointerRoot location if there are
> no remaining clients in the focused view. If there is a client window
> when this happens, dwm sees an enternotify event and focuses that
> client. I can't see a better approach, so I don't consider this as a
> bug.
> 
> Kind regards,
> Anselm
> 
> 
That's good so, on the laptop, I just need a thumb stroke on the touchpad
to decide wether focus follows tagmon or not. :)

If someone wants to overide it, he can try something with swarp.





Re: [dev] dwm-5.7 Dual head setup

2009-09-27 Thread Julien Steinhauser
On Sun, Sep 27, 2009 at 12:49:37PM +0200, Stanimir Dragiev wrote:
> 
> * Julien Steinhauser  [2009-09-27 01:37]:
> > On Sun, Sep 27, 2009 at 12:29:09AM +0200, Julien Steinhauser wrote:
> > Actually, it was related to my mouse position, I can revert
> > this behavior by moving the mouse between screens. I didn't notice
> > it sooner because she's hidden with unclutter and
> > I don't often use it.
>  
> This might be related to what is the subject of the following thread?
> http://www.mail-archive.com/d...@suckless.org/msg06240.html
> 
> -- 
>  cheers
>  stanio_
> 
> 
I don't want to stop focus follows pointer, as I'm happy with it
on the laptop. To answer your question on the link, it is xmonad,
you were right. Thanks to Anselm and you for introducing enternotify
to me.





Re: [dev] dwm nmaster_bstack-5.7

2009-09-27 Thread Julien Steinhauser
On Sun, Sep 27, 2009 at 03:35:23PM +0200, Mate Nagy wrote:
>  Yeah, theoretically ntile with nmaster=1 is equivalent to tile.

Sure.
The nmaster value was not so important, I just wanted to point out,
that when using nmaster-sym, people can remove part of core.





Re: [dev] UTF8 text in wmii

2009-09-27 Thread Kris Maglione

On Sun, Sep 27, 2009 at 12:59:29PM +0300, Yuval Hager wrote:
Some non-latin characters are displayed garbled within wmii (windows titles, 
tag names) - attached is Firefox window title I get. I tried using ucs 
fonts (*-ISO10646-1), but then everything is garbled, even latin text.


Unfortunately, Xlib has rather atrocious font support. Your best 
bet is to use Xft:


wmiir xwrite /ctl font xft:terminus-10

--
Kris Maglione

The camel has evolved to be relatively self-sufficient.  On the other
hand, the camel has not evolved to smell good.  Neither has Perl.
--Larry Wall




Re: [dev] UTF8 text in wmii

2009-09-27 Thread Aurélien Aptel
All your non-working pics are actually working.
Your browser is just setting the title in an url-encoded way.

Encoding
▁ ▂   ▃   ▄   ▅   ▆   ▇   █
(from utf8) gives
%E2%96%81%20%20%20%20%20%E2%96%82%20%20%20%20%20%20%20%E2%96%83%20%20%20%20%20%20%20%E2%96%84%20%20%20%20%20%20%20%E2%96%85%20%20%20%20%20%20%20%E2%96%86%20%20%20%20%20%20%20%E2%96%87%20%20%20%20%20%20%20%E2%96%88

 See .

On Sun, Sep 27, 2009 at 6:29 PM, Martin Swift  wrote:
> Hi Yuval,
>
> On Sun, Sep 27, 2009 at 12:59:29PM +0300, Yuval Hager wrote:
>> Some non-latin characters are displayed garbled within wmii (windows titles,
>> tag names) - attached is Firefox window title I get. I tried using ucs
>> fonts (*-ISO10646-1), but then everything is garbled, even latin text.
>
> I'm able to get some decent results for most characters using
> something like
>  WMII_FONT=' -*-fixed-medium-r-normal-*-13-*-*-*-*-*-iso10646-1'
> [see attached: wmii-font_example-13-working.png]
>
> For the terminal I've had to use
>  -*-fixed-medium-r-normal-*-18-*-*-*-*-*-iso10646-1
> to get most characters to display, for example block elements such as
>  ▁     ▂       ▃       ▄       ▅       ▆       ▇       █
>
> These, however, still don't show up in the status or title bars.
> [see attached: wmii-font_example-1?-nonwork.png]
>
>> I have no problem displaying non-latin text in applications, like xterm or
>> firefox.
>
> Do you know which font-string the terminal is run with? I've never
> been able to figure out these font lines properly to know which font,
> precisely is being used.
>
> Part of this could be fixed, but I don't know where wmii breaks down.
> Furthermore, I'm running wmii-3.6 which is well dated so if you're
> running a more up to date version you might be able to have all your
> problems fixed. Let's hope someone else who can give better help
> responds as well.
>
> Cheers,
> Martin
>



[dev] dwm-5.7.2

2009-09-27 Thread Anselm R Garbe
Hi there,

Ryan's patch makes dwm-5.7.2:

  http://dl.suckless.org/dwm/dwm-5.7.2.tar.gz

Sorry for any inconvenience, this one should be the final for now ;)

Kind regards,
Anselm

2009/9/27 Ryan Zheng :
> Bug still happens on mod-space. Patch attached.
>
> On Sun, Sep 27, 2009 at 01:38, Anselm R Garbe  wrote:
>> Hi there,
>>
>> I released a bugfix release that fixes the layout symbol updating
>> mechanism during setlayout (though in a different way as suggested by
>> Nibble) and that contains some improvements for the overall drawbar()
>> and arrange() handling which performed unnecessary execution on
>> unchanged monitors. It can be downloaded from:
>>
>>  http://dl.suckless.org/dwm/dwm-5.7.1.tar.gz
>>
>> Please report any issues.
>>
>> Kind regards,
>> Anselm
>>
>> 2009/9/26 Anselm R Garbe :
>>> Hi there,
>>>
>>> I'm glad to announce dwm-5.7 which can be downloaded from:
>>>
>>>  http://dl.suckless.org/dwm/dwm-5.7.tar.gz
>>>
>>> This release contains various code cleanups and several minor
>>> improvements, in particular several contributed patches by Neale,
>>> anydot, Jukka, nsz, and Tony.
>>> The biggest changes are that the layout symbol can be modified by the
>>> arrange function of a layout (see monocle() for an example) and that
>>> the updategeom() algorithm has been rewritten from scratch. Now
>>> geometry changes do not result in a complete destruction of the
>>> Monitor struct and broken applications like wine that configure the
>>> root window do not result in recreating the Monitor struct altogether.
>>>
>>> Several patches have been updated to dwm-5.7 already.
>>>
>>> Once again many thanks to all contributors!
>>>
>>> Please report any issues.
>>>
>>> Kind regards,
>>> Anselm



[dev] [surf] caret browsing

2009-09-27 Thread hailukah
Alright you keyboard junkies:

1. Find the line in surf.c:

g_object_set(G_OBJECT(settings), "user-agent", "surf", NULL);

2. Add this immediately below it:

g_object_set(G_OBJECT(settings), "enable-caret-browsing", 1, NULL);

3. PROFIT!!!

josh



Re: [dev] dwm nmaster_bstack-5.7

2009-09-27 Thread Moritz Wilhelmy
what about putting layouts (in patches) to seperate files where possible and 
then
#include "patches/bstack.c" in config.h and just use the layout in keys/mouse 
configuration?

On Sun, Sep 27, 2009 at 01:21:51AM +0200, Julien Steinhauser wrote:
> nmaster_bstack patch updated for dwm-5.7.



Re: [dev] dwm nmaster_bstack-5.7

2009-09-27 Thread Tadeusz Sośnierz
Sun, 27 Sep 2009 20:46:41 +0200, Moritz Wilhelmy
:

> what about putting layouts (in patches) to seperate files where
> possible and then #include "patches/bstack.c" in config.h and just
> use the layout in keys/mouse configuration?

It alredy works like this.
Regards



[dev] [surf] is there a way to disable images?

2009-09-27 Thread Moritz Wilhelmy
My internet connection is sometimes very connected and I feel the need to 
disable images sometimes.
Is there a patch?

Regards,
Moritz



Re: [dev] [surf] is there a way to disable images?

2009-09-27 Thread Moritz Wilhelmy
On Sun, Sep 27, 2009 at 11:28:42PM +0200, Moritz Wilhelmy wrote:
> My internet connection is sometimes very connected and I feel the need to 
> disable images sometimes.
> Is there a patch?
> 
> Regards,
> Moritz
> 

Sorry, I meant limited instead of connected
I don't know what's wrong with my brain but I should probably check it -.-




Re: [dev] [surf] is there a way to disable images?

2009-09-27 Thread hailukah
On Sun, 27 Sep 2009 23:35:51 +0200
Moritz Wilhelmy  wrote:

> On Sun, Sep 27, 2009 at 11:28:42PM +0200, Moritz Wilhelmy wrote:
> > My internet connection is sometimes very connected and I feel the
> > need to disable images sometimes. Is there a patch?
> > 
> > Regards,
> > Moritz
> > 
> 
> Sorry, I meant limited instead of connected
> I don't know what's wrong with my brain but I should probably check
> it -.-
> 
> 

Here you go.  Patch your config.h with this.  MODKEY-Shift-i will
disable images auto loading.  This function can be modified with just
about anything from
http://webkitgtk.org/reference/webkitgtk-WebKitWebSettings.html

--- config.def.h	2009-09-11 02:40:39.0 -0500
+++ config.h	2009-09-27 17:27:45.0 -0500
@@ -1,6 +1,9 @@
 /* modifier 0 means no modifier */
 static gchar *progress   = "#FF";
 static gchar *progress_trust = "#00FF00";
+
+static void hideimages(Client *c, const Arg *arg);
+
 #define MODKEY GDK_CONTROL_MASK
 static Key keys[] = {
 /* modifier	keyval  functionarg 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


Re: [dev] [surf] is there a way to disable images?

2009-09-27 Thread Moritz Wilhelmy
Cool, thanks.
I made a toggle-function, just like toggleflash. I just asked because I don't 
know
all the names of webkit-settings. Thanks for the function.

void
toggleimages(Client *c, const Arg *arg)
{
static int images = 0;
WebKitWebSettings *settings;
settings = webkit_web_view_get_settings(c->view);
images = !images;
g_object_set(G_OBJECT(settings), "auto-load-images", images, NULL);
}

void
toggleflash(Client *c, const Arg *arg)
{
static int flash = 0;
WebKitWebSettings *settings;
settings = webkit_web_view_get_settings(c->view);
flash = !flash;
g_object_set(G_OBJECT(settings), "enable-plugins", flash, NULL);
}

Regards,
Moritz

On Sun, Sep 27, 2009 at 05:34:21PM -0500, hailukah wrote:
> Here you go.  Patch your config.h with this.  MODKEY-Shift-i will
> disable images auto loading.  This function can be modified with just
> about anything from
> http://webkitgtk.org/reference/webkitgtk-WebKitWebSettings.html
> 

> --- config.def.h  2009-09-11 02:40:39.0 -0500
> +++ config.h  2009-09-27 17:27:45.0 -0500
> @@ -1,6 +1,9 @@
>  /* modifier 0 means no modifier */
>  static gchar *progress   = "#FF";
>  static gchar *progress_trust = "#00FF00";
> +
> +static void hideimages(Client *c, const Arg *arg);
> +
>  #define MODKEY GDK_CONTROL_MASK
>  static Key keys[] = {
>  /* modifier  keyval  functionarg 
> 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