Openbox 键绑定在 --reconfigure 或重新启动 X 后不生效

Ran*_* Ma 14 arch-linux keyboard-shortcuts openbox lxde

 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>
Run Code Online (Sandbox Code Playgroud)

我在默认的 last</keybind></keyboard>我的~/.config/openbox/rc.xml文件之间添加了这些行(行号来自 vim)。但是,无论是重新启动 X 还是发出命令都不会openbox --reconfigure应用这些设置。

我究竟做错了什么?我将 Arch 与所有默认的 LXDE 包一起使用。

syn*_*ror 17

还有

$ openbox --restart
Run Code Online (Sandbox Code Playgroud)

既然还没有提到,我就去做。这也不会重新启动 X。大概--restart--reconfigure.


mar*_*cin 11

在 LXDE~/.config/openbox/lxde-rc.xml配置中使用。

要检查 openbox 是如何启动的,您可以执行以下操作:

$ ps ax | grep openbox
 2109 ?        S      0:29 openbox --config-file /home/marcin/.config/openbox/lxde-rc.xml
Run Code Online (Sandbox Code Playgroud)


ped*_*rio 0

确保使用主目录中的路径

.config/openbox/rc.xml

不是

~./config/openbox/rc.xml