<div dir="ltr">To save the other 0.2 people who might try to do this in future several hours/days of their lives, I'll summarize: don't bother with a kludge and do it properly, namely by patching whatever it is you're trying to desktopify.<div><br></div><div>Attempting to automatically re-map the window with xdotool will work in the sense that it'll remap it, you can then unhide it with wmctrl but you're still going to end up with it iconified unless/until you open another window (beforehand/). This is why it was working from the shell and not from the openbox config. I'm still curious to know why that is. </div><div><br></div><div>Setting the WINDOW_TYPE_DESKTOP hint after the window is first mapped does not work. Not sure exactly why that is either, but it's contrary to spec, so no surprise there. I did not manage to find a way to set it before the window gets mapped in externally, although I've tried.</div><div><br></div><div>In the end, I ended up doing what in hindsight I should've done earlier - patching tilda itself.</div><div><br></div><div>Would a patch for being able to do it from an application config block in openbox make it in? If so, I might have a go as I think that's a more universal solution.</div><div><br></div><div>Cheers,</div><div>-p</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 28, 2015 at 2:36 PM, Dana Jansens <span dir="ltr"><<a href="mailto:danakj@orodu.net" target="_blank">danakj@orodu.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If you can force the window to be marked as TYPE_DESKTOP when it maps, that would prevent it from hiding. Probably requires hacking the terminal or openbox code to do that tho.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Feb 28, 2015 at 9:33 AM, Paul G <span dir="ltr"><<a href="mailto:paulg@perforge.net" target="_blank">paulg@perforge.net</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I'm attempting to arrive at a working config for a transparent terminal window on the desktop. This works well except that it gets hidden with Super-D (ToggleShowDesktop), as one would expect. Having failed to find a way to protect the terminal window from being hidden by this, I moved on to trying to re-map it afterwards with xdotool. I've succeeded - but only partially - and this is where it gets interesting (for me, anyway).<div><br></div><div>I can indeed successfully find the window with xdotool, I can map it again and everything looks great as long as I do so myself from the shell; when I attempt to have it happen automatically by sticking the same shell script into an Execute action (for the Super-D key binding *or* a different one), I get nada. The script runs, the log shows the window is found and xdotool returns 0, but nothing happens. I've tried adding a sleep up to 15s in case there's a race of some sort and still no luck.</div><div><br></div><div>If someone can think of a different way to achieve the desired result I'd be chuffed. With that said, I'm sufficiently curious about why this is happening that I'm now more interested in finding that out than having a transparent desktop terminal ;)</div><div><br></div><div>ForEach would not work for this even if I had it (i don't - using wheezy's 3.5.0-7 currently), since the terminal has two windows, of which only the second one needs to be re-mapped, and there doesn't appear to be a way to persist state across loop iterations.</div><div><br></div><div>The details of my attempted set-up are as follows:</div><div><br></div><div>openbox = 3.5</div><div>tilda = 0.09.6</div><div><br></div><div>relevant rc.xml snippets:</div><div><br></div><div><div><application name="tilda-desktop"></div><div>      <focus>no</focus></div><div>      <layer>below</layer></div><div>      <desktop>All</desktop></div><div>      <skip_taskbar>yes</skip_taskbar></div><div>      <skip_pager>yes</skip_pager></div><div>      <decor>no</decor></div><div></application></div></div><div><br></div><div><div>    <keybind key="W-d"></div><div>      <action name="ToggleShowDesktop"/></div><div>      <action name="Execute"></div><div><span style="white-space:pre-wrap">              </span><command>bash /home/paul/show-tilda-desktop.sh &amp;</command></div><div><span style="white-space:pre-wrap">   </span>  </action></div><div>    </keybind></div><div>    <keybind key="W-A-F5"></div><div><span style="white-space:pre-wrap">         </span><action name="Execute"></div><div><span style="white-space:pre-wrap">                </span><command>bash /home/paul/show-tilda-desktop.sh &amp;</command></div><div><span style="white-space:pre-wrap">   </span>  </action></div><div>    </keybind></div></div><div><br></div><div>show-tilda-desktop.sh:</div><div><br></div><div><div>#!/bin/bash</div><div> </div><div>sleep 15s</div><div>echo -e "woke up..." > /tmp/show.log</div><div>xdotool search --classname Tilda >> /tmp/show.log</div><div>echo -e "running..." >> /tmp/show.log</div><div>xdotool search --classname Tilda | awk 'BEGIN { RS = " "; FS = "\n" } {print $2}' | xargs -l1 xdotool windowmap</div><div>echo -e "$?" >> /tmp/show.log</div></div><div><br></div><div><br></div><div><br></div><div>Is there something obvious that I'm missing, say about the context Execute runs <command>s?</div><div><br></div><div>Cheers,</div><div>-p</div></div>
<br></div></div>_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org" target="_blank">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
<br></blockquote></div><br></div>