<div dir="ltr">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.<div><br></div><div>It will not stop the macro repeating, but it will stop multiple windows.  It may be better than playing with keyboard settings.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 10, 2017 at 3:36 PM, D.T. <span dir="ltr"><<a href="mailto:danter@openmailbox.org" target="_blank">danter@openmailbox.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#333333" bgcolor="#FFFFCC">
    <div class="m_3207227439817449416moz-cite-prefix">On 08/06/17 13:36, Mikael Magnusson
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>On Thu, Jun 8, 2017 at 11:59 AM,  <a class="m_3207227439817449416moz-txt-link-rfc2396E" href="mailto:sc.marko.toivanen@gmail.com" target="_blank"><sc.marko.toivanen@gmail.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre>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.
</pre>
      </blockquote>
      <pre><a class="m_3207227439817449416moz-txt-link-freetext" href="http://cgit.mika.l3ib.org/cgit/openbox/patch/?id=ee2db440ed419891ef373584963ea5874b62f4a2" target="_blank">http://cgit.mika.l3ib.org/<wbr>cgit/openbox/patch/?id=<wbr>ee2db440ed419891ef373584963ea5<wbr>874b62f4a2</a>

</pre>
    </blockquote>
    <p>recompiling openbox with patches i probably the best solution.</p>
    <p>you can also try to wrap every keyboard shortcut command in a
      script like this:</p>
    <p><br>
    </p>
    <p><tt>#!/bin/sh</tt></p>
    <p><tt>xset r off</tt></p>
    <p><tt>$@</tt></p>
    <p><tt>sleep 3</tt></p>
    <p><tt>xset r on</tt></p>
    <p><tt>exit 0</tt></p>
    <p>where you would pass the complete command you want to execute.</p>
    <p>not tested.</p>
    <p>likely you are going to have to play with double quotes around
      the command line or "$@" or both to get it right.</p>
    <p>you also have to decide what is an acceptable delay before you
      switch the keyboard repeat on again. <br>
    </p>
  </div>

<br>______________________________<wbr>_________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer" target="_blank">http://icculus.org/mailman/<wbr>listinfo/openbox</a><br></blockquote></div><br></div>