[openbox] shortcuts restricted to pattern?

Jorge Almeida jjalmeida at gmail.com
Thu Oct 20 11:52:39 EDT 2011


On Thu, Oct 20, 2011 at 2:56 PM, Mikael Magnusson <mikachu at gmail.com> wrote:
> On 20 October 2011 14:02, 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...
>
> Yes and no. http://openbox.org/wiki/Help:Actions#If lets you match
> against the window title. It's easy to add class matching and i've
> already done that, but it's not in 3.5 yet.
>
My bad. I had missed the "If" action. Matching against title is good
enough. Works flawlessy.

Thanks

J.A.


More information about the openbox mailing list