You are not logged in.

#1 2013-12-08 01:19:23

necbot
Member
Registered: 2013-12-05
Posts: 59

[SOLVED] lxde keybindings not working

I'm trying to setup a keyboard shortcut that will open a terminal when I press Ctrl-Alt-t.  Here is my ~/.config/openbox/lxde-rc.xml file...

<keyboard>
<keybind key="C-A-t">
  <action name="Execute">
    <command>xterm</command>
  </action>
</keybind>
</keyboard>

I edited this and ran openbox --reconfigure but the keybinding does not work.  Any ideas?

Last edited by necbot (2013-12-11 02:40:50)

Offline

#2 2013-12-08 05:34:49

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: [SOLVED] lxde keybindings not working

Why did you call it "lxde-rc.xml"?  It should be "rc.xml".  Is it symlinked?

Offline

#3 2013-12-08 06:18:50

stewie
Member
Registered: 2009-05-16
Posts: 20

Re: [SOLVED] lxde keybindings not working

necbot wrote:

I'm trying to setup a keyboard shortcut that will open a terminal when I press Ctrl-Alt-t.  Here is my ~/.config/openbox/lxde-rc.xml file...

<keyboard>
<keybind key="C-A-t">
  <action name="Execute">
    <command>xterm</command>
  </action>
</keybind>
</keyboard>

I edited this and ran openbox --reconfigure but the keybinding does not work.  Any ideas?

I entered the same commands you did into ~/.config/openbox/lxde-rc.xml and the command worked.

Is it  possible you have another command with the same keybinding overriding this command?

alezost wrote:

Why did you call it "lxde-rc.xml"?  It should be "rc.xml".  Is it symlinked?

I have both lxde-rc.xml and rc.xml and they are not symlinked. When I edited rc.xml with the same
command it did not work. I think lxde uses lxde-rc.xml and not rc.xml.

Maybe lxde will fall back to rc.xml if there is no lxde-rc.xml, but I have not tried that.

I have separate settings in rc.xml when I just want to run openbox standalone.


We wants it, we needs it. Must have the precious. Arch Linux.

Offline

#4 2013-12-08 07:51:54

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: [SOLVED] lxde keybindings not working

stewie wrote:
alezost wrote:

Why did you call it "lxde-rc.xml"?  It should be "rc.xml".  Is it symlinked?

I have both lxde-rc.xml and rc.xml and they are not symlinked. When I edited rc.xml with the same
command it did not work. I think lxde uses lxde-rc.xml and not rc.xml.

Oh yes, i didn't even thought about that.  Apparently LXDE runs

openbox --config-file ...
necbot wrote:

Here is my ~/.config/openbox/lxde-rc.xml file...

It sounds like that's your whole config file (surely not?).

As that keybinding works, the last guess is (sorry for that): do you have xterm installed?

Offline

#5 2013-12-08 18:12:08

necbot
Member
Registered: 2013-12-05
Posts: 59

Re: [SOLVED] lxde keybindings not working

alezost wrote:

Why did you call it "lxde-rc.xml"?  It should be "rc.xml".  Is it symlinked?

Yes rc.xml is symlinked to lxde-rc.xml.  I read that lxde-rc.xml is used by default but that I should symlink to it with a symlink named rc.xml

alezost wrote:

It sounds like that's your whole config file (surely not?).

As that keybinding works, the last guess is (sorry for that): do you have xterm installed?

stewie wrote:

Is it  possible you have another command with the same keybinding overriding this command?

Yes, this is my whole lxde-rc.xml file.  The installation of lxde did not make one so I created a file and added these lines to it.  Xtem is installed.  When I hit Ctrl-Alt-t nothing happens.  I don't think Ctrl-Alt-t is a keybinding to another command because Ctrl-Alt-t appears to do nothing.

Last edited by necbot (2013-12-08 18:13:31)

Offline

#6 2013-12-08 18:31:42

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] lxde keybindings not working

Perhaps you are missing some lines? I would try copying over the default openbox rc.xml from /etc/xdg/openbox/ and try again.

Offline

#7 2013-12-09 10:20:42

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: [SOLVED] lxde keybindings not working

You are dealing with XML files... might help to declare them as such...

<!-- add this header -->
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">

<!-- your keybindings -->
<keyboard>
<keybind key="C-A-t">
  <action name="Execute">
    <command>xterm</command>
  </action>
</keybind>
</keyboard>

<!-- add this footer -->
</openbox_config>

Offline

#8 2013-12-11 02:36:19

necbot
Member
Registered: 2013-12-05
Posts: 59

Re: [SOLVED] lxde keybindings not working

satanselbow wrote:

You are dealing with XML files... might help to declare them as such...

Yup, that was it.  Solved.  I should have copied the example in /etc/xdg/openbox/rc.xml as anonymous_user said, I simply wasn't aware that file existed.  Thanks!

Offline

Board footer

Powered by FluxBB