Examples

Two examples of xfwm configuration will be presented: The addition of a new menu to the default user menu and the removal of all default keyboard shortcuts.

Adding items to the user menu

If you wish to add new entries to the existing user menu, you can add something like the following lines to your $HOME/.xfce/xfwmrc file.

 # Adding a menu to the default user menu :
 # (This is just a sample, modify it to fit your need)
 #
 AddToMenu "my_menu"
 + "&Gnome Terminal" Exec gnome-terminal
 + "" Nop
 + "&The GIMP" Exec gimp
 #
 # Menu "user_menu" is the name of the default user menu
 #
 AddToMenu "user_menu"
 + "&My menu" popup "my_menu"

Obviously, this is just an example. The preferred way to customize the user menu is by using a $HOME/.xfce/xfwm.user_menu file. This is always read by xfwm. The menu editor xfumed, which can be started from the default "User Menu", edits this file. The main root menu is named "__builtin_root_menu__".