You are not logged in.

#1 2016-04-09 04:21:36

jivanyatra
New Member
Registered: 2016-03-21
Posts: 2

Openbox chrooted keybindings exit after one keypress

So I wanted to build a vim-like interface in my keybindings. I've checked over my keybindings and I think this is an issue with Openbox, or maybe its implementation, or else something is interfering with it.

When you have a chroot=true for a keybinding, it created a keychain which does not time out and should not exit even after a successful keypress until you press the chain exit keybind. Here is an excerpt of my rc.xml:

    <!-- Keybindings for vim mode -->
    <chainQuitKey>Escape</chainQuitKey>
    <keybind key="W-z" chroot="true">
      <keybind key="j">
        <action name="Execute">
          <command>xdotool key Down</command>
        </action>
      </keybind>
      <keybind key="h">
        <action name="Execute">
          <command>xdotool key Left</command>
        </action>
      </keybind>
      <keybind key="k">
        <action name="Execute">
          <command>xdotool key Up</command>
        </action>
      </keybind>
      <keybind key="l">
        <action name="Execute">
          <command>xdotool key Right</command>
        </action>
      </keybind>
    </keybind>

When I press Win+z, I get the little tooltip kind of thing letting me know I've entered the keychain. I can press unbound keys all day and it won't go away, but the second I press l, it registers that I pressed the right arrow key and breaks out of the chain.

Any ideas on what could be happening, or how to force openbox to respect the chroot="true" option?

Offline

#2 2016-04-09 04:35:01

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: Openbox chrooted keybindings exit after one keypress

Have you tried adding

 <keybind key="Escape-or-Some-Other-Key"><action name="BreakChroot"/></keybind>            

in the nested keybindlist?

Offline

#3 2016-04-10 04:38:22

jivanyatra
New Member
Registered: 2016-03-21
Posts: 2

Re: Openbox chrooted keybindings exit after one keypress

I have, indeed, tried it. Here's the exact code I used:

      <keybind key="Caps_Lock">
        <action name="BreakChroot"></action>
      </keybind>

Of course, that is within the chrooted keybind, so along with the h, j, k, l keys above.

Offline

#4 2016-07-07 09:52:26

demian
New Member
Registered: 2015-10-06
Posts: 1

Re: Openbox chrooted keybindings exit after one keypress

Hi jivanyatra
I love your idia of implementing vim-like-keybinding with xdotool in openbox.
Did you find a solution for the not worikng chrooted-keychain with the xdotool-command?
Or have you found another way to implenet vim-like-keybindings in openbox?

Offline

Board footer

Powered by FluxBB