<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#333333" bgcolor="#FFFFCC">
<div class="moz-cite-prefix">On 08/06/17 13:36, Mikael Magnusson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHYJk3QreegfX7mpiOdy7231pAtt2+bbmHf-YdidRrwzPavLcA@mail.gmail.com">
<pre wrap="">On Thu, Jun 8, 2017 at 11:59 AM, <a class="moz-txt-link-rfc2396E" href="mailto:sc.marko.toivanen@gmail.com"><sc.marko.toivanen@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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 wrap="">
<a class="moz-txt-link-freetext" href="http://cgit.mika.l3ib.org/cgit/openbox/patch/?id=ee2db440ed419891ef373584963ea5874b62f4a2">http://cgit.mika.l3ib.org/cgit/openbox/patch/?id=ee2db440ed419891ef373584963ea5874b62f4a2</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>
</body>
</html>