Re: [wmii] gnome-do multi tagged

2009-04-05 Thread Stefan Pampel
Hello Kris,

On Fri, Apr 03, 2009 at 07:03:07PM -0400, Kris Maglione wrote:
> Actually, it doesn't take the X session down with it, the X session just 
> decides to die when wmii aborts (which it arguably shouldn't). At any 
> rate, sorry, it turns out that the tag rules parsing code (which is 
> ancient, and probably should have been replaced ages ago) doesn't support 
> regex tags, and there was a bug in the code that forbids tags named "." 
> (which happens to mean the current directory).
>
> The wihack -tags /./ variant works fine, though.

Over the weekend I've take the time to try this too, works very well.

Thank you!


-- 
/ polyformal  /
| Kaesenstraße 8 /
| 50677 Köln - Germany  /
| phone: +49 221 3103 122
| fax:   +49 221 9311 9223
| http://www.polyformal.de/
|__/

GPG KEY: 11678845


signature.asc
Description: Digital signature


Re: [wmii] gnome-do multi tagged

2009-04-03 Thread Kris Maglione

to my wmiirc, checked the rule is in /tagrules. But then launching
gnome-do gives a white small window (size like 'regular' gnome-do
box) , less then a second and takes the whole x Session down. Not so
suckless yet ;)


Actually, it doesn't take the X session down with it, the X 
session just decides to die when wmii aborts (which it arguably 
shouldn't). At any rate, sorry, it turns out that the tag rules 
parsing code (which is ancient, and probably should have been 
replaced ages ago) doesn't support regex tags, and there was a 
bug in the code that forbids tags named "." (which happens to 
mean the current directory).


The wihack -tags /./ variant works fine, though.

--
Kris Maglione

Beware of bugs in the above code; I have only proved it correct, not
tried it.
--Donald Knuth




Re: [wmii] gnome-do multi tagged

2009-04-03 Thread Stefan Pampel
Hello Kris,

On Thu, Apr 02, 2009 at 04:08:47PM -0400, Kris Maglione wrote:
> Well, if you want to do it automatically, there are a few possibilities. 
> The first is to find the window's class name and add a tag rule. It might 
> be a bit tricky in this case, but I'd do something like opening a 
> terminal, and running:
>
> sleep 4; xprop | grep CLASS
>
> then running gnome-do, waiting for the crosshairs, and clicking it. If 
> the result were (say):
>
> WM_CLASS(STRING) = "gnome-do", "Gnome-Do"
ok, i got a "Do", "Do"

> you'd add this to your /tagrules (from your wmiirc):
>
> /^gnome-do:Gnome-Do/ -> /./

adding 
^/Do:Do/ -> /./

to my wmiirc, checked the rule is in /tagrules. But then launching
gnome-do gives a white small window (size like 'regular' gnome-do
box) , less then a second and takes the whole x Session down. Not so
suckless yet ;)

Also tested with an other app, also tested on an other system Debian
Lenny too, with wmii-hg.

best regards

Stefan
-- 
/ polyformal  /
| Kaesenstraße 8 /
| 50677 Köln - Germany  /
| phone: +49 221 3103 122
| fax:   +49 221 9311 9223
| http://www.polyformal.de/
|__/

GPG KEY: 11678845


signature.asc
Description: Digital signature


Re: [wmii] gnome-do multi tagged

2009-04-02 Thread Kris Maglione

On Thu, Apr 02, 2009 at 08:42:54PM +0200, Stefan Pampel wrote:

Starting gnome-do via  Mod-p let the box only appear on the screen I
started the app. I read here [2] about get apps sticky (to appear on all
screens? ) , but it's hard to track, because the small window only
appears for typing in commands. How can I apply such as tag in wmiirc
mentioned in [2]?


Well, if you want to do it automatically, there are a few 
possibilities. The first is to find the window's class name and 
add a tag rule. It might be a bit tricky in this case, but I'd 
do something like opening a terminal, and running:


sleep 4; xprop | grep CLASS

then running gnome-do, waiting for the crosshairs, and clicking it. 
If the result were (say):


WM_CLASS(STRING) = "gnome-do", "Gnome-Do"

you'd add this to your /tagrules (from your wmiirc):

/^gnome-do:Gnome-Do/ -> /./

(see wmii(1) for more info).

The alternative is to try wihack (which needs a man page) as such:

wihack -tags /./ gnome-do

But, as the name suggests, it's a hack, so it might not work.

I think maybe for the next release, I'll write a script to automate 
such things. It seems so complicated to describe.


--
Kris Maglione

He who joyfully marches to music in rank and file has already earned
my contempt.  He has been given a large brain by mistake, since for
him the spinal cord would suffice.
--Albert Einstein