Openbox 鍵綁定在 --reconfigure 或重新啟動 X 後未生效

Openbox 鍵綁定在 --reconfigure 或重新啟動 X 後未生效
 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>

我在預設的最後一行</keybind></keyboard>我的~/.config/openbox/rc.xml文件中添加了這些行(行號來自 vim)。但是,重新啟動 X 或發出命令都不會openbox --reconfigure套用這些設定。

我究竟做錯了什麼?我將 Arch 與所有預設的 LXDE 套件一起使用。

答案1

還有

$ openbox --restart

既然還沒提到,那我就去做吧。這會不是也重新啟動 X。大概--restart比 更「強」--reconfigure

答案2

在 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

答案3

確保使用主目錄中的路徑

.config/openbox/rc.xml

不是

~./config/openbox/rc.xml

答案4

我已經在同樣的問題上掙扎了一個小時,恐怕答案是相當愚蠢和直截了當的。您應該在 rc.xml 內的鍵盤區塊中找到按鍵綁定,否則它們將無法運作。

我希望我回答了你的問題:)。

相關內容