menu.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE xfdesktop-menu>
  3. <!--
  4. Explanantion of Xfce 4 menu file:
  5. =================================
  6. Here we will try to explain the format of the menu file. Look at the
  7. actual menu below for the real examples. You shouldn't really need to
  8. edit this manually; check out xfce4-menueditor instead.
  9. -->
  10. <!-- Obviously, this is how you make a comment ;-) -->
  11. <!--
  12. + Everything is between exactly one pair of
  13. <xfdesktop-menu></xfdesktop-menu> tags.
  14. + Applications:
  15. <app name="Name in menu" cmd="Command to run" term="false"
  16. icon="iconfile" snotify="false" visible="true" />
  17. The 'term' attribute determines if the program needs a terminal to run,
  18. and 'snotify' sets whether or not the program supports startup
  19. notification. You can set an icon to be displayed next to the item with
  20. the 'icon' attribute. Only 'name' and 'cmd' are required.
  21. + Separators:
  22. <separator visible="true" />
  23. Creates a horizontal separator. The 'visible' attribute is optional.
  24. + Submenus:
  25. <menu name="Name in menu" icon="iconfile" visible="true"></menu>
  26. Only 'name' is required, but you can also set an icon to be displayed using
  27. the 'icon' attribute. Between the menu tags you can define more
  28. applications, separators and menus.
  29. + Titles
  30. <title name="Name in menu" icon="iconfile" visible="true" />
  31. Creates an insensitive menu title. You can even add an optional icon to
  32. the title if you'd like.
  33. + Including other files:
  34. <include type="file" src="menu2.xml" visible="true" />
  35. Includes the file menu2.xml. A relative path is assumed to be rooted at
  36. ~/.config/xfce4/desktop/. An absolute path will be treated as such.
  37. + Including an autogenerated system menu:
  38. <include type="system" style="simple" unique="true" visible="true" />
  39. Includes a system menu. style can be "simple" or "multilevel". If unique
  40. is set to "false", multiple menu items will be generated if the app
  41. appears in multiple categories.
  42. -->
  43. <xfdesktop-menu>
  44. <menu name="Desktop" icon="/usr/local/lib/X11/pixmaps/x24.png">
  45. </menu>
  46. <menu name="System" icon="/usr/local/lib/X11/pixmaps/pc24.png">
  47. </menu>
  48. <menu name="Setup" icon="/usr/local/lib/X11/pixmaps/configuration24.png">
  49. </menu>
  50. <separator/>
  51. <!-- this actually fills in all of the above, leftovers get displayed here... -->
  52. <include type="system" style="simple" unique="true" legacy="true"/>
  53. <separator/>
  54. <app name="Help" cmd="defaulthtmlviewer file:///usr/share/doc/index.html" icon="/usr/local/lib/X11/pixmaps/help24.png" term="false" snotify="false" />
  55. <menu name="Shutdown" style="simple" icon="/usr/local/lib/X11/pixmaps/shutdown24.png">
  56. <app name="Exit to prompt" cmd="wmexit" icon="prompt16.xpm" snotify="false" />
  57. <app name="Reboot computer" cmd="wmreboot" icon="mini-turn.xpm" snotify="false" />
  58. <app name="Power-off computer" cmd="wmpoweroff" icon="mini-stop.xpm" snotify="false" />
  59. <app name="Restart X" cmd="restartwm" icon="mini-x.xpm" snotify="false" />
  60. </menu>
  61. </xfdesktop-menu>