Re: [wmii] Frob columns when window appears?

From: Suraj N. Kurapati <skurapat_AT_ucsc.edu>
Date: Tue, 08 Aug 2006 10:24:49 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kai Grossjohann wrote:
> I've got a mail view which has one column with Thunderbird in it. When
> I hit a key in Thunderbird that causes a compose window to pop up, I
> would like to split the view into two columns, with the right hand
> column containing the compose window.
>
> Is it possible to make this happen automatically?

Add the following code to the event loop:

  when 'CreateClient'
    WM.applyTilingLayout if
WM.read("/client/#{arg}/tags").split('+').include? WM.read('/view/name')

It simply applies the tiling layout whenever a new client is created
 on the current view. Also, it seems this makes tiling layout as the
default for client arrangement.

> I use snk_wmiirc, in case that's relevant.

I have uploaded this change into the snk_wmiirc.tgz my website also.

Cheers.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFE2MjhmV9O7RYnKMcRAqm1AKCBveHXToc+mVR1Hc/PYLy9bc6p7gCgjVwS
AUoC7cVnoEpqbWtRHj+ZFGQ=
=V+/q
-----END PGP SIGNATURE-----
Received on Tue Aug 08 2006 - 19:26:17 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:12:05 UTC