Openbox keybindings not taking effect after --reconfigure or restarting X

15,681

Solution 1

There is also

$ openbox --restart

Since it was not mentioned yet, I will do it. This will not restart X as well. Presumably --restart is "more powerful" than --reconfigure.

Solution 2

On LXDE ~/.config/openbox/lxde-rc.xml config is used instead.

To check how openbox was started you can do:

$ ps ax | grep openbox
 2109 ?        S      0:29 openbox --config-file /home/marcin/.config/openbox/lxde-rc.xml
Share:
15,681

Related videos on Youtube

Randall Ma
Author by

Randall Ma

Updated on September 18, 2022

Comments

  • Randall Ma
    Randall Ma almost 2 years
     273     <keybind key="W-Return">
     274       <action name="Execute">
     275         <command>lxterminal</command>
     276       </action>
     277     </keybind>
     278     <keybind key="W-Up">
     279       <action name="ToggleMaximizeFull"/>
     280     </keybind>
     281     <keybind key="W-Left">
     282       <action name="MoveToEdgeWest"/>
     283     </keybind>
     284     <keybind key="W-Right">
     285       <action name="MoveToEdgeEast"/>
     286     </keybind>
    

    I added these lines in between the default last </keybind> and </keyboard> in my ~/.config/openbox/rc.xml file (the line numbers are from vim). However, neither restarting X nor issuing an openbox --reconfigure applies these settings.

    What am I doing wrong? I'm using Arch with all the default LXDE packages.

    • daisy
      daisy almost 12 years
      Did you receive any error dialog ? If so, the configure xml file is malformed
    • jasonwryan
      jasonwryan almost 12 years
      Pastebin and link to the complete rc.xml - a fragment is not that useful...
  • Randall Ma
    Randall Ma almost 12 years
    That is where it is; I made a typo in the OP.
  • pedrosaurio
    pedrosaurio almost 12 years
    Does it work now? If yes, you can mark the answer as the correct one.
  • Randall Ma
    Randall Ma almost 12 years
    Nope. Nevertheless, I've gone ahead and switched to xfwm4, but if this question accumulates more answers I'll go and test them. Thanks for your help.
  • golimar
    golimar over 5 years
    Does this close the running GUI applications?
  • LuxZg
    LuxZg over 3 years
    To answer question in comment, it did not restart my GUI browser on openbox restart.
  • Timo
    Timo about 3 years
    on lxqt it is lxqt-rc.xml. btw you can either use a or x flag with ps