[openbox] shortcuts restricted to pattern?

Jorge Almeida jjalmeida at gmail.com
Thu Oct 20 12:01:56 EDT 2011


On Thu, Oct 20, 2011 at 2:58 PM, Dana Jansens <dana at orodu.net> wrote:
> On Thu, Oct 20, 2011 at 8:02 AM, Jorge Almeida <jjalmeida at gmail.com> wrote:
>> Is there some way to have window shortcuts subject to matching some
>> condition?  For example, set up a key combination to close the current
>> window, but only if the window belongs to a certain class, or has a
>> certain name?  I've been reading the documentation of wmctrl and xdotool
>> and it doesn't seem possible...
>
> wmctrl will check name (and class i believe) with -x.


It doesn't do what I need: It matches against name, but I need it to
match against both name and :ACTIVE: (it must satisfy both conditions
simultaneously, in other words, minimize the window if it has a certain
title _and_   it is focused.)

The suggestion of Mikael did it.

Thanks

J.A.


More information about the openbox mailing list