You are not logged in.

#1 2013-01-13 17:32:38

ciembor
Member
Registered: 2008-03-30
Posts: 57

[Solved] [Openbox] Grave key binding stoped working

Hi. I have (had) a terminal under C-` shortcut. It stoped working some time ago. I tried to replace it with C-grave and C-0xXX (don't remember value), no result. Anyone know how to get it work again?

Last edited by ciembor (2013-01-15 03:23:59)

Offline

#2 2013-01-13 18:49:34

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [Solved] [Openbox] Grave key binding stoped working

Post the configs that don't work – the problem could be something simple that you just can't see.  With xml, the problem can sometimes originate many lines before the malfunctioning code.  Syntax highlighting and xml validators have sometimes caught problems that I couldn't find.

Have you tried binding a different app to the Ctrl+` keystrokes?

Also, have you tried xev to see what keystrokes are being registered?

Offline

#3 2013-01-13 19:14:06

ciembor
Member
Registered: 2008-03-30
Posts: 57

Re: [Solved] [Openbox] Grave key binding stoped working

Yes, it works with different keystrokes. Here is part with keybindings:

  <keyboard>
    <chainQuitKey>C-g</chainQuitKey>
    <!-- Keybindings for desktop switching -->
    <keybind key="C-A-Left">
      <action name="DesktopLeft">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="C-A-Right">
      <action name="DesktopRight">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="C-A-Up">
      <action name="DesktopUp">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="C-A-Down">
      <action name="DesktopDown">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Left">
      <action name="SendToDesktopLeft">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Right">
      <action name="SendToDesktopRight">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Up">
      <action name="SendToDesktopUp">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="S-A-Down">
      <action name="SendToDesktopDown">
        <dialog>no</dialog>
        <wrap>no</wrap>
      </action>
    </keybind>
    <keybind key="W-F1">
      <action name="Desktop">
        <desktop>1</desktop>
      </action>
    </keybind>
    <keybind key="W-F2">
      <action name="Desktop">
        <desktop>2</desktop>
      </action>
    </keybind>
    <keybind key="W-F3">
      <action name="Desktop">
        <desktop>3</desktop>
      </action>
    </keybind>
    <keybind key="W-F4">
      <action name="Desktop">
        <desktop>4</desktop>
      </action>
    </keybind>
    <keybind key="W-d">
      <action name="ToggleShowDesktop"/>
    </keybind>
    <!-- Keybindings for windows -->
    <keybind key="C-Escape">
      <action name="Close"/>
    </keybind>
    <keybind key="F11">
      <action name="ToggleMaximizeFull"/>
    </keybind>
    <keybind key="A-Escape">
      <action name="Lower"/>
      <action name="FocusToBottom"/>
      <action name="Unfocus"/>
    </keybind>
    <keybind key="A-space">
      <action name="ShowMenu">
        <menu>client-menu</menu>
      </action>
    </keybind>
    <!-- Keybindings for window switching -->
    <keybind key="A-Tab">
      <action name="NextWindow"/>
    </keybind>
    <keybind key="A-S-Tab">
      <action name="PreviousWindow"/>
    </keybind>
    <keybind key="C-A-Tab">
      <action name="NextWindow">
        <panels>yes</panels>
        <desktop>yes</desktop>
      </action>
    </keybind>
    <!-- Keybindings for running applications -->
    <keybind key="C-Tab">
      <action name="Execute">
        <startupnotify>
          <enabled>false</enabled>
          <name>gmrun</name>
        </startupnotify>
        <command>gmrun</command>
      </action>
    </keybind>
    <keybind key="C-0x60">
      <action name="Execute">
        <startupnotify>
          <enabled>false</enabled>
          <name>xfce4-terminal</name>
        </startupnotify>
        <command>xfce4-terminal</command>
      </action>
    </keybind>
  </keyboard>

0x60 is a grave code.

Last edited by ciembor (2013-01-13 19:14:42)

Offline

#4 2013-01-14 10:51:27

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [Solved] [Openbox] Grave key binding stoped working

Trying to use the character ` or the name "Grave" shows this:

Openbox-Message: Invalid key name "`" in key binding
Openbox-Message: Invalid key name "Grave" in key binding

I tried using the hex code. "0x60" and it does not work here, but no message is given.

Other punctuation and symbol characters do not work either: for example, the period, 0x2E, or the left-bracket, 0x5B.  But they give the invalid key name message even for the hex code.

Openbox-Message: Invalid key name "0x5B" in key binding

I believe the problem is within Openbox, not your installation of it or your hardware.

Last edited by thisoldman (2013-01-14 10:52:40)

Offline

#5 2013-01-14 18:26:22

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 326

Re: [Solved] [Openbox] Grave key binding stoped working

I just tried to use "`" in combination with "super" to execute terminator & it works BUT openbox refers to ` as "dead_grave"
thus:

 <keybind key="W-dead_grave">
      <action name="Execute">
        <command>terminator</command>
      </action>

my openbox version:

┌─[t0m5k1@b0x] 
└─[~]> openbox --version
Openbox 3.5.0
Copyright (c) 2008        Mikael Magnusson
Copyright (c) 2003-2006   Dana Jansens

This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

Aurora R10 (0TYR0X) - Ryzen 7 5800X - 16GB - RX6700XT 12GB - Hyprland (occasionally XFCE) - AOC Q27G3XMN 1440P
EFI Stub Boot
PROUD XLIBRE USER
Linux User: 401820  Steam-Reddit

Offline

#6 2013-01-15 01:40:41

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [Solved] [Openbox] Grave key binding stoped working

Oh, heck! It seems too easy.

Reading t0m5k1's post showed me the solution.  Do not capitalize the keyname:

<keybind key="C-grave">

It works here.

Offline

#7 2013-01-15 03:23:37

ciembor
Member
Registered: 2008-03-30
Posts: 57

Re: [Solved] [Openbox] Grave key binding stoped working

Solved:).

Offline

Board footer

Powered by FluxBB