I run 2 instances of gkrellm in ion2, one local, one monitoring a remote 
server.  I ran xprop on each one, revealing the following...

Local gkrellm:

_ION_CWIN_RESTART_CHECKCODE(INTEGER) = 1
_NET_WM_USER_TIME(CARDINAL) = 2838603
<..snip..>
WM_CLASS(STRING) = "gkrellm2", "Gkrellm2"
WM_ICON_NAME(STRING) = "gkrellm"
_NET_WM_ICON_NAME(UTF8_STRING) = 0x67, 0x6b, 0x72, 0x65, 0x6c, 0x6c, 0x6d
WM_NAME(STRING) = "gkrellm"
_NET_WM_NAME(UTF8_STRING) = 0x67, 0x6b, 0x72, 0x65, 0x6c, 0x6c, 0x6d

gkrellm monitoring remote box:

_ION_CWIN_RESTART_CHECKCODE(INTEGER) = 2
<..snip..>
WM_CLASS(STRING) = "gkrellm2", "Gkrellm2"
WM_ICON_NAME(STRING) = "gkrellm_S-embglx1"
_NET_WM_ICON_NAME(UTF8_STRING) = 0x67, 0x6b, 0x72, 0x65, 0x6c, 0x6c, 0x6d, 
0x5f, 0x53, 0x2d, 0x65, 0x6d, 0x62, 0x67, 0x6c, 0x78, 0x31
WM_NAME(STRING) = "gkrellm_S-embglx1"
_NET_WM_NAME(UTF8_STRING) = 0x67, 0x6b, 0x72, 0x65, 0x6c, 0x6c, 0x6d, 0x5f, 
0x53, 0x2d, 0x65, 0x6d, 0x62, 0x67, 0x6c, 0x78, 0x31


I assumed by matching WM_CLASS and WM_NAME I'd be able to distinguish 
between these two in kludges.lua... here's what I got:

winprop{
        class="Gkrellm2",
        name="gkrellm_S-embglx1",
        target="gkrellm_remote",
}
winprop{
        class="Gkrellm2",
        name="gkrellm",
        target="gkrellm_local",
}


But, alas, this isn't working.  Upon launching either, they both target the 
frame named gkrellm_local.

I tried removing class= and matching only on name, but nothing changed.  

It's just been bugging me... any thoughts?


Reply via email to