OpenBox菜单

~/.config/openbox/menu.xml

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openbox_menu xmlns="http://openbox.org/3.4/menu">
  3. <!--根菜单-->
  4. <menu id="root-menu" label="Openbox Root Menu">
  5. <!--分隔符 使用属性"label"显示标题 如果没有则显示为一条分隔线-->
  6. <separator label="Applications" />
  7. <!--菜单中的条目-->
  8. <item label="Emacs">
  9. <action name="Execute">
  10. <command>emacs</command>
  11. <startupnotify>
  12. <enabled>yes</enabled>
  13. <wmclass>Emacs</wmclass>
  14. </startupnotify>
  15. </action>
  16. </item>
  17. <item label="Rxvt Unicode">
  18. <action name="Execute">
  19. <command>urxvt</command>
  20. </action>
  21. </item>
  22. <item label="Firefox">
  23. <action name="Execute">
  24. <command>firefox</command>
  25. <startupnotify>
  26. <enabled>yes</enabled>
  27. <wmclass>Firefox</wmclass>
  28. </startupnotify>
  29. </action>
  30. </item>
  31. <item label="MPlayer">
  32. <action name="Execute">
  33. <command>gmplayer</command>
  34. <startupnotify>
  35. <enabled>yes</enabled>
  36. <wmclass>MPlayer</wmclass>
  37. </startupnotify>
  38. </action>
  39. </item>
  40. <item label="Thunar">
  41. <action name="Execute">
  42. <command>Thunar</command>
  43. <startupnotify>
  44. <enabled>yes</enabled>
  45. </startupnotify>
  46. </action>
  47. </item>
  48. <item label="Squeeze">
  49. <action name="Execute">
  50. <command>squeeze</command>
  51. <startupnotify>
  52. <enabled>yes</enabled>
  53. </startupnotify>
  54. </action>
  55. </item>
  56. <item label="Evince">
  57. <action name="Execute">
  58. <command>evince</command>
  59. <startupnotify>
  60. <enabled>yes</enabled>
  61. </startupnotify>
  62. </action>
  63. </item>
  64. <item label="Gqview">
  65. <action name="Execute">
  66. <command>gqview</command>
  67. <startupnotify>
  68. <enabled>yes</enabled>
  69. </startupnotify>
  70. </action>
  71. </item>
  72. <item label="Sunbird">
  73. <action name="Execute">
  74. <command>sunbird</command>
  75. <startupnotify>
  76. <enabled>yes</enabled>
  77. </startupnotify>
  78. </action>
  79. </item>
  80. <separator />
  81. <!--子菜单 子菜单的内容在后面定义-->
  82. <menu id="alternate"/>
  83. <separator label="System" />
  84. <menu id="system-menu"/>
  85. <separator />
  86. <item label="Log Out">
  87. <action name="SessionLogout">
  88. <prompt>yes</prompt>
  89. </action>
  90. </item>
  91. </menu>
  92. <!--子菜单内容定义 与根菜单同级-->
  93. <menu id="alternate" label="Alternate">
  94. <item label="GVim">
  95. <action name="Execute">
  96. <command>gvim</command>
  97. <startupnotify>
  98. <enabled>yes</enabled>
  99. <wmclass>GVim</wmclass>
  100. </startupnotify>
  101. </action>
  102. </item>
  103. <item label="Opera">
  104. <action name="Execute">
  105. <command>opera</command>
  106. <startupnotify>
  107. <enabled>yes</enabled>
  108. <wmclass>Opera</wmclass>
  109. </startupnotify>
  110. </action>
  111. </item>
  112. <item label="Rox">
  113. <action name="Execute">
  114. <command>rox</command>
  115. <startupnotify>
  116. <enabled>yes</enabled>
  117. <wmclass>ROX-Filer</wmclass>
  118. </startupnotify>
  119. </action>
  120. </item>
  121. <item label="Xterm">
  122. <action name="Execute"><command>xterm</command></action>
  123. </item>
  124. </menu>
  125. <menu id="system-menu" label="System">
  126. <item label="Reconfigure">
  127. <action name="Reconfigure" />
  128. </item>
  129. <item label="Openbox Configuration Manager">
  130. <action name="Execute">
  131. <command>obconf</command>
  132. <startupnotify><enabled>yes</enabled></startupnotify>
  133. </action>
  134. </item>
  135. <item label="Xfce Settings">
  136. <action name="Execute">
  137. <command>xfce-setting-show</command>
  138. <startupnotify><enabled>yes</enabled></startupnotify>
  139. </action>
  140. </item>
  141. <separator />
  142. <item label="Exit Openbox">
  143. <action name="Exit">
  144. <prompt>yes</prompt>
  145. </action>
  146. </item>
  147. </menu>
  148. </openbox_menu>