<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="${activeWinIdLine:40}"<br>
echo $activeWinId > ~/activeWinId<br>for id in `wmctrl -l | cut -d " " -f 1`; do<br>        xprop -id $id | grep "_NET_WM_STATE_DEMANDS_ATTENTION" 2>&1 > /dev/null<br>        if [ "$?" = "0" ]; 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"><<a href="mailto:jae@zhar.net">jae@zhar.net</a>></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>
> Thanks, I'll check them out. The script actually isn't that slow in daily<br>
> use, so I'm happy with it. Plus I've added on some extra tweaks so I can hit<br>
> W-r to go to the window needing attention, and then W-S-r to go back to the<br>
> original, even if I've viewed other windows in between.<br>
<br>
</div>Mind posting your set of scripts/bindings? I probably won't use them at the<br>
moment but I'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>
"Perfection is attained, not when no more can be added, but when no more<br>
can be removed." -- 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>