[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbox
Subject:    [openbox] shortcuts restricted to pattern?
From:       jjalmeida () gmail ! com (Jorge Almeida)
Date:       2011-10-20 16:01:56
Message-ID: CAKpSnp+Gs2Xd29sg-1cPAyJdM=MYbvMtDJ6fsEDHBpepXgzgfQ () mail ! gmail ! com
[Download RAW message or body]

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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic