[openbox] per apps auto focus on start
Bernhard Stoeckner
elven at swordcoast.net
Sun May 18 08:01:51 EDT 2008
On Sun, 18 May 2008 09:44:53 +0000
"Benoît Gschwind" <doth.gschwind at gmail.com> wrote:
> Hello
>
> By default I disable auto focus, but I would like re-enable it for
> some apps.
>
> my example is for gmrun that I would like to be focused. gmrun is a
> small apps launcher.
I did this (with gmrun as well) with the following tiny shell glue and
wmctrl:
lythari ~/bin % cat runandfocus.sh
RUN=$1
NAME=$2
exec $RUN &
sleep 0.7 && wmctrl -a $NAME
Usage: runandfocus.sh gmrun "Execute"
By far from perfect, of course.
I long since dropped gmrun and switched to dzens' dmenu, which I highly
recommend as a launcher:
lythari ~/bin % cat mydmenu
#!/bin/sh
exe=`dmenu_path | dmenu` && exec $exe
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://icculus.org/pipermail/openbox/attachments/20080518/b4a02ca9/attachment.pgp>
More information about the openbox
mailing list