[openbox] script to focus and raise window demanding attention

Vaughn Dickson vaughnd at gmail.com
Sat Feb 27 15:21:26 EST 2010


Thanks, I'll check them out. The script actually isn't that slow in daily
use, so I'm happy with it. Plus I've added on some extra tweaks so I can hit
W-r to go to the window needing attention, and then W-S-r to go back to the
original, even if I've viewed other windows in between.

On 27 February 2010 16:37, John Eikenberry <jae at zhar.net> wrote:

> Vaughn Dickson wrote:
>
> > I'm running Openbox with Gnome and windows demanding attention show
> > in the taskbar with a yellow highlight, usually skype IMs or
> > something. I've created the following bash script that I bind to a
> > hotkey, but it's not very quick. Is there a better way? I'd also
>
> Have you looked at devilspie or winwrangler? They might be able to do
> something like this more efficiently though they are daemons, not something
> that would be bound to a key.
>
> http://burtonini.com/blog/computers/devilspie
> https://launchpad.net/winwrangler
>
> > like to bind it to W-`, but it doesn't work. I've also tried
> > &#x0060; and that chokes too.
> >
> > for id in `wmctrl -l | cut -d " " -f 1`; do
> >    xprop -id $id | grep "_NET_WM_STATE_DEMANDS_ATTENTION" 2>&1 >
> /dev/null
> >    if [ "$?" = "0" ]; then
> >        wmctrl -i -a $id
> >        exit 0
> >    fi
> > done
> > exit 1
> >
> >
> >
> > Thanks,
> > Vaughn
> > _______________________________________________
> > openbox mailing list
> > openbox at icculus.org
> > http://icculus.org/mailman/listinfo/openbox
> >
>
> --
>
> John Eikenberry
> [jae at zhar.net - http://zhar.net]
> [PGP public key @ http://zhar.net/jae_at_zhar_net.gpg]
> ______________________________________________________________
> "Perfection is attained, not when no more can be added, but when no more
>  can be removed." -- Antoine de Saint-Exupery
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAkuJLjEACgkQMVBeMLjc14LoCgCeMiq2sBkquv3x0H4OHksRxpeT
> 5sYAoJyTQ7tPvgFTXFPB2Vvjx7MdAffe
> =+ZGz
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20100227/f62a77ab/attachment.htm>


More information about the openbox mailing list