Re: Pressing keys assigned in openbox opens too many windows in Ubuntu
Anthony Thyssen <a.thyssen-YlX7AVbyhojX/[email protected]> Sat, 10 Jun 2017 16:58:15 +1000
| Newsgroups | gmane.comp.window-managers.openbox |
|---|---|
| Message-ID | <CABOaSg2qDN_F+K5f88h5+YGyAoPf1wpJX=sgSaAoQv2zYKT2FQ@mail.gmail.com> |
The alternative is for the launching program (or wrapper) to 'touch' some time stamp file, and only execute if the time stamp was older than a a few seconds. It will not stop the macro repeating, but it will stop multiple windows. It may be better than playing with keyboard settings. On Sat, Jun 10, 2017 at 3:36 PM, D.T. <[email protected]> wrote: > On 08/06/17 13:36, Mikael Magnusson wrote: > > On Thu, Jun 8, 2017 at 11:59 AM, <[email protected]> <[email protected]> wrote: > > Is there any way to configure key bindings in openbox so holding down a key > combination would not open more than one instance of a program? E.g. when I > have configured to use Shift + Alt + T keys to open a terminal window, if > holding down the keys too long time, there will be a lot of terminal windows > open. It should open only one terminal window and if pressing Shift + Alt + > T again, then it would open a second etc. > > http://cgit.mika.l3ib.org/cgit/openbox/patch/?id=ee2db440ed419891ef373584963ea5874b62f4a2 > > recompiling openbox with patches i probably the best solution. > > you can also try to wrap every keyboard shortcut command in a script like > this: > > > #!/bin/sh > > xset r off > > $@ > > sleep 3 > > xset r on > > exit 0 > > where you would pass the complete command you want to execute. > > not tested. > > likely you are going to have to play with double quotes around the command > line or "$@" or both to get it right. > > you also have to decide what is an acceptable delay before you switch the > keyboard repeat on again. > > _______________________________________________ > openbox mailing list > [email protected] > http://icculus.org/mailman/listinfo/openbox > _______________________________________________ openbox mailing list [email protected] http://icculus.org/mailman/listinfo/openbox