<pre><font style="font-family: arial,helvetica,sans-serif;" size="2">Bound to W-r:</font><br><br>#!/bin/bash<br>activeWinIdLine=`xprop -root | grep _NET_ACTIVE_WINDOW\(WINDOW\) `<br>activeWinId=&quot;${activeWinIdLine:40}&quot;<br>

echo $activeWinId &gt; ~/activeWinId<br>for id in `wmctrl -l | cut -d &quot; &quot; -f 1`; do<br>        xprop -id $id | grep &quot;_NET_WM_STATE_DEMANDS_ATTENTION&quot; 2&gt;&amp;1 &gt; /dev/null<br>        if [ &quot;$?&quot; = &quot;0&quot; ]; then<br>

                wmctrl -i -a $id<br>                exit 0<br>        fi<br>done<br>exit 1<br></pre><br>Bound to W-S-r:<br><pre>#!/bin/bash<br>if [ -f ~/activeWinId ]; then<br>        origWinId=`cat ~/activeWinId`<br>        wmctrl -i -a $origWinId<br>fi<br></pre><br><br>

<div class="gmail_quote">On 27 February 2010 22:40, John Eikenberry <span dir="ltr">&lt;<a href="mailto:jae@zhar.net">jae@zhar.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">Vaughn Dickson wrote:<br>
<br>
&gt; Thanks, I&#39;ll check them out. The script actually isn&#39;t that slow in daily<br>
&gt; use, so I&#39;m happy with it. Plus I&#39;ve added on some extra tweaks so I can hit<br>
&gt; W-r to go to the window needing attention, and then W-S-r to go back to the<br>
&gt; original, even if I&#39;ve viewed other windows in between.<br>
<br>
</div>Mind posting your set of scripts/bindings? I probably won&#39;t use them at the<br>
moment but I&#39;m curious how you implemented them. Thanks.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5"><br>
John Eikenberry<br>
[<a href="mailto:jae@zhar.net">jae@zhar.net</a> - <a href="http://zhar.net" target="_blank">http://zhar.net</a>]<br>
[PGP public key @ <a href="http://zhar.net/jae_at_zhar_net.gpg" target="_blank">http://zhar.net/jae_at_zhar_net.gpg</a>]<br>
______________________________________________________________<br>
&quot;Perfection is attained, not when no more can be added, but when no more<br>
 can be removed.&quot; -- Antoine de Saint-Exupery<br>
</div></div><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAkuJg04ACgkQMVBeMLjc14Jo2ACg2AllG0TXRmawfr5hgEDN90+X<br>
dAgAoNpCNthnxEBZQuQ3O6CfQvP+WwDu<br>
=ZnuW<br>
-----END PGP SIGNATURE-----<br>
<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>