Discussion:
automatic tagging on executing a program
Davide Anchisi
2009-09-23 14:41:24 UTC
Permalink
Hi,

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?

Thanks,

Davide
Kris Maglione
2009-09-23 15:13:43 UTC
Permalink
Post by Davide Anchisi
Hi,
/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
Davide Anchisi
2009-09-24 10:50:25 UTC
Permalink
Thanks a lot!
Hi,
 /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,
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
Kris Maglione
2009-10-22 21:35:24 UTC
Permalink
Post by Davide Anchisi
/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.
It turns out that if you run 'gimp -s', this isn't an issue.
--
Kris Maglione

Never attribute to malice that which is adequately explained by
stupidity.
--Hanlon's razor
Loading...