Re: [dev] automatic tagging on executing a program

From: Kris Maglione <>
Date: Wed, 23 Sep 2009 11:13:43 -0400

On Wed, Sep 23, 2009 at 04:41:24PM +0200, Davide Anchisi wrote:
>I created the tagrule:
> /gimp/ -> gimp
>in rc.wmii.local
>So to tag gimp as gimp when executing it.
>It works, but the program does not begin to start until I open the
>newly created view.
>What is missing?
>Is there a way so that the view switches to the new gimp view when I
>execute gimp?

I've noticed that too. It's quite irritating, and seems to be a
gimp bug. It seems to wait around for its splash screen to be
mapped before it begins initialization, which is clearly absurd.
At any rate, yes, it's possible, with something like this:

focustags = (gimp)
fn Event-CreateTag {
        echo $wmiinormcol $* | wmiir create /lbar/$"*
        if (~ $"* $focustags)
                wmiir xwrite /ctl view $*

Kris Maglione
Testing can only prove the presence of bugs, not their absence.
	--Edsger W. Dijkstra
Received on Wed Sep 23 2009 - 15:13:43 UTC

This archive was generated by hypermail 2.2.0 : Wed Sep 23 2009 - 15:24:02 UTC