| 1 |
.\" t |
| 2 |
.\" @(#)@PACKAGE@-@VERSION@ @RELDATELONG@ |
| 3 |
.de EX \"Begin example |
| 4 |
.ne 5 |
| 5 |
.if n .sp 1 |
| 6 |
.if t .sp .5 |
| 7 |
.nf |
| 8 |
.in +.5i |
| 9 |
.. |
| 10 |
.de EE |
| 11 |
.fi |
| 12 |
.in -.5i |
| 13 |
.if n .sp 1 |
| 14 |
.if t .sp .5 |
| 15 |
.. |
| 16 |
.ta .3i .6i .9i 1.2i 1.5i 1.8i |
| 17 |
.TH fvwm-menu-desktop 1 "@RELDATELONG@ (@VERSION@)" Fvwm "Fvwm Modules" |
| 18 |
.UC |
| 19 |
.SH NAME |
| 20 |
fvwm-menu-desktop \- Reads XDG menu files and creates Fvwm menus |
| 21 |
|
| 22 |
.SH SYNOPSIS |
| 23 |
fvwm-menu-desktop |
| 24 |
[ \fB\-\-help\fR|\fB\-h\fR ] |
| 25 |
[ \fB\-\-version\fR ] |
| 26 |
[ \fB\-\-install\-prefix\fR \fIDIR\fR ] |
| 27 |
[ \fB\-\-desktop\fR \fINAME\fR ] |
| 28 |
[ \fB\-\-menu\-type\fR \fINAME\fR ] |
| 29 |
[ \fB\-\-theme\fR \fINAME\fR ] |
| 30 |
[ \fB\-\-with\-titles\fR|\fB\-w\fR ] |
| 31 |
[ \fB\-\-without\-titles\fR ] |
| 32 |
[ \fB\-\-enable\-mini\-icons\fR ] |
| 33 |
[ \fB\-\-size\fR|\fB\-s\fR \fINUM\fR ] |
| 34 |
[ \fB\-\-mini\-icon\-dir\fR \fIDIR\fR ] |
| 35 |
[ \fB\-\-app\-icon\fR \fINAME\fR ] |
| 36 |
[ \fB\-\-dir\-icon\fR \fINAME\fR ] |
| 37 |
[ \fB\-\-title\fR|\fB\-t\fR \fINAME\fR ] |
| 38 |
[ \fB\-\-insert\-in\-menu\fR \fINAME\fR ] |
| 39 |
[ \fB\-\-get\-menus\fR \fIall\fR|\fIdesktop\fR ] |
| 40 |
[ \fB\-\-set\-menus\fR \fImenu_paths\fR ] |
| 41 |
[ \fB\-\-all\-menus\fR ] |
| 42 |
[ \fB\-\-include\-items\fR \fINAME\fR ] |
| 43 |
[ \fB\-\-regen\-cmd\fR \fICMD\fR ] |
| 44 |
[ \fB\-\-term\-cmd\fR \fICMD\fR ] |
| 45 |
[ \fB\-\-dynamic\fR ] |
| 46 |
[ \fB\-\-menu-error\fR|\fB\-e\fR ] |
| 47 |
[ \fB\-\-verbose\fR|\fB\-v\fR ] |
| 48 |
|
| 49 |
|
| 50 |
.SH DESCRIPTION |
| 51 |
This is a python script which parses XDG menus definitions to build |
| 52 |
corresponding fvwm menus. This script depends on python-xdg to run. |
| 53 |
|
| 54 |
|
| 55 |
.SH OPTIONS |
| 56 |
|
| 57 |
.IP "Main Options" |
| 58 |
|
| 59 |
.IP "\fB\-\-help\fR" |
| 60 |
Show the help and exit. |
| 61 |
|
| 62 |
.IP "\fB\-\-version\fR" |
| 63 |
Show the version and exit. |
| 64 |
|
| 65 |
.IP "\fB\-\-get\-menus\fR \fIall\fR|\fIdesktop\fR" |
| 66 |
Prints a space separated list of full menu paths found on the system. |
| 67 |
\fIall\fR will print all menus found on the system except empty ones. |
| 68 |
\fIdesktop\fR will print the menu(s) that would be generated by the script. |
| 69 |
|
| 70 |
No menu generation is done. |
| 71 |
|
| 72 |
.IP "\fB\-\-desktop\fR \fINAME\fR" |
| 73 |
Optional parameter to set the \fINAME\fR of the desktop XDG .menu |
| 74 |
file(s) to use. This option will override any default menus |
| 75 |
set via \fBFvwmForm-XDGMenu-Config\fR and cause the script |
| 76 |
to find menus in which \fINAME\fR is a part of the file name. |
| 77 |
Possible names are: \fIgnome\fR, \fIkde\fR, \fIxfce\fR, \fIlxde\fR, |
| 78 |
\fIdebian\fR, etc. |
| 79 |
|
| 80 |
This option can be used in conjunction with \fB\-\-menu\-type\fR |
| 81 |
to control which .menu file(s) are used. |
| 82 |
|
| 83 |
.IP "\fB\-\-menu\-type\fR \fINAME\fR" |
| 84 |
Optional parameter to set the \fINAME\fR of the XDG menu type |
| 85 |
to use. This option will override any default menus |
| 86 |
set via \fBFvwmForm-XDGMenu-Config\fR and cause the script |
| 87 |
to find menus in which \fINAME\fR is a part of the file name. |
| 88 |
Possible \fINAME\fR types could be: \fIapplications\fR, \fIsettings\fR, |
| 89 |
\fIpreferences\fR, etc. |
| 90 |
|
| 91 |
When used in conjunction with \fB\-\-desktop\fR, only menus whose file |
| 92 |
name matches '*destkop*menutype*' are found. If no menus are found, |
| 93 |
the script exits with an error. |
| 94 |
|
| 95 |
.IP "\fB\-\-all\-menus\fR" |
| 96 |
This option will build all menus found on the system. If used in |
| 97 |
conjunction with \fB\-\-desktop\fR or \fB\-\-menu\-type\fR this will |
| 98 |
build all menus matching those settings. |
| 99 |
|
| 100 |
.IP "\fB\-\-install-prefix\fR \fIDIR\fR" |
| 101 |
Optional parameter to override the standard locations for XDG menu |
| 102 |
definitions. Tells \fBfvwm-menu-desktop\fR to look in \fIDIR\fR for .menu |
| 103 |
files instead of the standard locations /etc/xdg/menus (and |
| 104 |
$HOME/.config/menus if it exists). |
| 105 |
|
| 106 |
.IP "\fB\-\-with\-titles\fR|\fB\-w\fR" |
| 107 |
If this option is set menus are generated with titles. This is the default. |
| 108 |
This option can be used to override the \fBFvwmForm-XDGMenu-Config\fR |
| 109 |
default setting. |
| 110 |
|
| 111 |
.IP "\fB\-\-without\-titles\fR" |
| 112 |
If this option is set menus are generated without titles. The default |
| 113 |
is to generate with titles. |
| 114 |
|
| 115 |
.IP "\fB\-\-title\fR|\fB\-t\fR \fINAME\fR " |
| 116 |
Option to define the menu title \fINAME\fR of the top menu used by Fvwm's |
| 117 |
\fBMenu\fR or \fBPopup\fR commands. Default is "XDGMenu". |
| 118 |
|
| 119 |
.IP "\fB\-\-include\-items\fR \fINAME\fR " |
| 120 |
This option controls if the additional menu items 'Regenerate' and 'Configure' |
| 121 |
are included in the top level menu. \fINAME\fR can be one of \fIregenerate\fR, |
| 122 |
\fIconfig\fR, \fIboth\fR, or \fInone\fR. The default is \fIboth\fR. |
| 123 |
|
| 124 |
.IP "\fB\-\-regen\-cmd\fR \fICMD\fR " |
| 125 |
This option sets the fvwm command \fICMD\fR that is run when the menu item |
| 126 |
\&'Regenerate' is selected. The default is "PipeRead `fvwm-menu-desktop`". |
| 127 |
|
| 128 |
.IP "\fB\-\-term\-cmd\fR \fICMD\fR " |
| 129 |
This option sets the terminal emulator command \fICMD\fR that is used to |
| 130 |
to run terminal applications in. \fICMD\fR needs to end with an execute |
| 131 |
option, such as xterm's -e option, which will run the command that is |
| 132 |
appended to \fICMD\fR. The default is "xterm -e". |
| 133 |
|
| 134 |
Debian specific: Per Debian policy, default changed to "x-terminal-emulator -e" |
| 135 |
|
| 136 |
.IP "\fB\-\-dynamic\fR " |
| 137 |
This option is to be used with creating dynamic menus using |
| 138 |
\fBDynamicPopUpAction\fR and \fBDynamicPopDownAction\fR. This adds |
| 139 |
a 'recreate' to the \fBDestroyMenu\fR command on the top level menu |
| 140 |
so those actions are not Destroyed when the menu is regenerated. |
| 141 |
|
| 142 |
.IP "\fB\-\-insert\-in\-menu\fR \fINAME\fR" |
| 143 |
Option to insert generated menu(s) \fBIN\fR a menu \fINAME\fR (its |
| 144 |
top title). This option makes it so the top level menu is not |
| 145 |
Destroyed and the items are added to the end. |
| 146 |
|
| 147 |
Note menus regenerated with this option will append the menu items |
| 148 |
at the end of the existing menu. Each time the menu is regenerated |
| 149 |
new menu items appear giving a growing menu of duplicate items. |
| 150 |
You have to regenerate the whole menu via a function or restart |
| 151 |
fvwm. See \fBEXAMPLES\fR below for some solutions. |
| 152 |
|
| 153 |
.IP "\fB\-\-set\-menus\fR \fImenu_paths\fR" |
| 154 |
Generates all menus listed in a space separated list of full menu paths. |
| 155 |
This option overrides any defaults and \fB\-\-desktop\fR|\fB\-\-menu\-type\fR |
| 156 |
settings. |
| 157 |
|
| 158 |
.IP "\fB\-\-menu-error\fR |\fB\-t\fR" |
| 159 |
If this option is present and python-xdg is not found, the script |
| 160 |
will print the error in the generated menu. Used in the default-config. |
| 161 |
|
| 162 |
.IP "\fB\-\-verbose\fR" |
| 163 |
Enables additional information printouts on STDERR. |
| 164 |
|
| 165 |
.IP "Icons Options" |
| 166 |
|
| 167 |
By default, fvwm-menu-desktop builds menus without mini\-icons. To enable |
| 168 |
mini\-icons use the following options. |
| 169 |
|
| 170 |
If ImageMagick is installed on the system, the script will resize and copy |
| 171 |
the icons to $FVWM_USERDIR/.icons. This can take awhile. You should be |
| 172 |
prepared to wait the first time you generate the icons. Once the icons |
| 173 |
have been generated the script should run faster. If it is still to slow |
| 174 |
using icons, see \fBEXAMPLES\fR for ways to limit how often |
| 175 |
the menu is generated to speed things up. |
| 176 |
|
| 177 |
.IP "\fB\-\-enable\-mini\-icons\fR" |
| 178 |
This option enables mini\-icons in the menus. If set, 24x24 mini-icons |
| 179 |
are used. If the specified icon isn't that size it will be converted |
| 180 |
if \fBImageMagick\fR is installed and saved in $HOME/.fvwm/icons or to |
| 181 |
the directory specified with \-\-mini\-icon\-dir option. Otherwise no icon |
| 182 |
appears in the menu for that entry. |
| 183 |
With most distributions, all the menu entries will have mini-icons |
| 184 |
appropriate to the application. |
| 185 |
|
| 186 |
.IP "\fB\-\-theme\fR \fINAME\fR" |
| 187 |
Defines the used icon theme. Default is \fIgnome\fR but all others |
| 188 |
found in /usr/share/icons could be used except the \fIhicolor\fR theme |
| 189 |
because it's the default fallback theme if no icon is found. |
| 190 |
|
| 191 |
.IP "\fB\-\-size\fR|\fB\-s\fR \fINUM\fR" |
| 192 |
If \-\-enable\-mini\-icons is used the \fIsize\fR of the icons can |
| 193 |
changed with this parameter. Default is 24. |
| 194 |
|
| 195 |
.IP "\fB\-\-mini\-icon\-dir\fR \fIDIR\fR" |
| 196 |
When the right size mini-icon isn't available, |
| 197 |
fvwm-menu-desktop creates icons with the right size in $HOME/.fvwm/icons. |
| 198 |
If you don't want to use the default directory, $HOME/.fvwm/icons, |
| 199 |
use this option to specify a different folder. |
| 200 |
|
| 201 |
.IP "\fB\-\-app\-icon\fR \fINAME\fR" |
| 202 |
Sets the default application icon if no others are found. Default is |
| 203 |
\&'gnome-applications'. |
| 204 |
|
| 205 |
.IP "\fB\-\-dir\-icon\fR \fINAME\fR" |
| 206 |
Sets the default directory icon if no others are found. Default is |
| 207 |
\&'gnome-fs-directory'. |
| 208 |
|
| 209 |
.SH USAGE |
| 210 |
\fBfvwm-menu-desktop\fR outputs XDG .menu files in the syntax of fvwm |
| 211 |
menus. When \fBfvwm-menu-desktop\fR is run with no options, it will load |
| 212 |
defaults from the \fBFvwmForm-XDGMenu-Config\fR file (see below) then |
| 213 |
search your system for suitable menu file(s). To see which menus are |
| 214 |
available on your system run: |
| 215 |
|
| 216 |
.RS |
| 217 |
.EX |
| 218 |
fvwm-menu-desktop --get-menus all |
| 219 |
.EE |
| 220 |
.RE |
| 221 |
|
| 222 |
If no menus are found you may not have any installed on your |
| 223 |
system. By default menus are stored as *.menu files in /etc/xdg/menus, |
| 224 |
$HOME/.config/menus or the location set in $XDG_MENU_PREFIX. You can |
| 225 |
use \fB\-\-install\-prefix\fR to specify another location search for menus. |
| 226 |
|
| 227 |
Though a combination of command line options and the \fBFvwmForm-XDGMenu-Config\fR |
| 228 |
settings, \fBfvwm-menu-desktop\fR can generate any combination of the menus |
| 229 |
found. To get a list of what menu(s) would be generated use the |
| 230 |
\fB--get-menus\fR \fIdesktop\fR option. The following will list all menus |
| 231 |
generated if \fBfvwm-menu-desktop\fR was run with no options. |
| 232 |
|
| 233 |
.RS |
| 234 |
.EX |
| 235 |
fvwm-menu-desktop --get-menus desktop |
| 236 |
.EE |
| 237 |
.RE |
| 238 |
|
| 239 |
\fBfvwm-menu-desktop\fR determines which menu(s) to generate as follows |
| 240 |
|
| 241 |
.RS |
| 242 |
If no config file is found, all menus will be weighted and the script |
| 243 |
will generate the best (highest weight) menu found. |
| 244 |
|
| 245 |
If a config file is found (and override options are not used) the script |
| 246 |
will generate all menus selected in \fBFvwmForm-XDGMenu-Config\fR. |
| 247 |
|
| 248 |
\fB--desktop\fR, \fB--menu-type\fR, \fB--set-menus\fR and \fB--all-menus\fR |
| 249 |
will override any menus selected in \fBFvwmForm-XDGMenu-Config\fR. |
| 250 |
|
| 251 |
\fB--desktop\fR and \fB--menu-type\fR will only include menus whose name |
| 252 |
matches '*desktop*menutype*'. If used with \fB--all-menus\fR, all matching |
| 253 |
menus are generated. If used without \fB--all-menus\fR, only the highest |
| 254 |
weighted menu is generated. |
| 255 |
|
| 256 |
\fB--set-menus\fR generates menus from the list of full path menu file names. |
| 257 |
|
| 258 |
\fB--all-menus\fR by itself will generate all menus found. |
| 259 |
.RE |
| 260 |
|
| 261 |
By default \fBfvwm-menu-desktop\fR will generate a menu whose |
| 262 |
top level name is "XDGMenu". To tell fvwm to read the output |
| 263 |
of \fBfvwm-menu-desktop\fR to create the menu XDGMenu add the following |
| 264 |
to your fvwm config file: |
| 265 |
|
| 266 |
.RS |
| 267 |
.EX |
| 268 |
PipeRead 'fvwm-menu-desktop' |
| 269 |
.EE |
| 270 |
.RE |
| 271 |
|
| 272 |
\fBWarning:\fR Depending on the options used this command may be |
| 273 |
slow and fvwm will pause until this command is complete. See |
| 274 |
\fBEXAMPLES\fR below for more details and possible workarounds. |
| 275 |
|
| 276 |
Once the menu is generated you can open the menu by using the |
| 277 |
command "Menu XDGMenu". You can also include this in the MenuFvwmRoot |
| 278 |
menu by: |
| 279 |
|
| 280 |
.RS |
| 281 |
.EX |
| 282 |
AddToMenu MenuFvwmRoot "XDG Menu" Popup XDGMenu |
| 283 |
.EE |
| 284 |
.RE |
| 285 |
|
| 286 |
\fBfvwm-menu-desktop\fR can be configured though both command line |
| 287 |
options and a \fBFvwmForm\fR GUI to customize the menu(s) that get |
| 288 |
generated. |
| 289 |
|
| 290 |
.SH GUI |
| 291 |
\fBFvwmForm-XDGMenu-Config\fR is a \fBFvwmForm\fR interface that can |
| 292 |
be used to configure the defaults for \fBfvwm-menu-desktop\fR. You |
| 293 |
can access this from the "Configure" item in the top level menu that |
| 294 |
is generated or run the following from within \fBFvwmConsole\fR |
| 295 |
|
| 296 |
.RS |
| 297 |
.EX |
| 298 |
Module FvwmPerl -l fvwm-menu-desktop-config.fpl |
| 299 |
.EE |
| 300 |
.RE |
| 301 |
|
| 302 |
This form can be used to select which menu(s) get generated by default |
| 303 |
along with setting many (but not all) of the available options. When |
| 304 |
you click "Save Settings" the form will write a config file located at |
| 305 |
$FVWM_USERDIR/.FvwmForm-XDGMenu-Config that \fBfvwm-menu-desktop\fR |
| 306 |
will parse for defaults when run. |
| 307 |
|
| 308 |
See the help inside of \fBFvwmForm-XDGMenu-Config\fR for more information. |
| 309 |
|
| 310 |
|
| 311 |
.SH EXAMPLES |
| 312 |
There are many ways to setup when fvwm runs \fBfvwm-menu-desktop\fR |
| 313 |
to generate the menu. One method is to just generate the menu when |
| 314 |
fvwm loads and then use the GUI config tool to change any options. |
| 315 |
To do this you only need to add the following to the fvwm config file: |
| 316 |
|
| 317 |
.RS |
| 318 |
.EX |
| 319 |
AddToMenu MenuFvwmRoot "XDG Menu" Popup XDGMenu |
| 320 |
PipeRead 'fvwm-menu-desktop' |
| 321 |
.EE |
| 322 |
.RE |
| 323 |
|
| 324 |
The menu is created once when fvwm loads. Since menu creation can |
| 325 |
sometimes be slow, this could cause fvwm to take longer to load than |
| 326 |
one wants. |
| 327 |
|
| 328 |
The menu is only generated when fvwm starts. If software |
| 329 |
is installed or removed you will have to select the 'Regenerate' option |
| 330 |
to rebuild the menu. |
| 331 |
|
| 332 |
One way to speed things up is to save the menu in a file and only generate |
| 333 |
the menu when 'Regenerate' is selected. To do this use \fB--regen-cmd\fR |
| 334 |
to call a custom function and write the menu to a file using a command like |
| 335 |
|
| 336 |
.RS |
| 337 |
.EX |
| 338 |
fvwm-menu-desktop --regen-cmd XDGRegen > $FVWM_USERDIR/.XDGMenu |
| 339 |
.EE |
| 340 |
.RE |
| 341 |
|
| 342 |
Then add the following to the fvwm config file to define the function |
| 343 |
XDGRegen. The second to last line will generate the menu if the menu |
| 344 |
file doesn't exist when fvwm starts. |
| 345 |
|
| 346 |
.RS |
| 347 |
.EX |
| 348 |
DestroyFunc XDGRegen |
| 349 |
AddToFunc XDGRegen |
| 350 |
+ I PipeRead 'fvwm-menu-desktop --regen-cmd XDGRegen > \\ |
| 351 |
$[FVWM_USERDIR]/.XDGMenu; echo "Nop"' |
| 352 |
+ I Read $[FVWM_USERDIR]/.XDGMenu |
| 353 |
|
| 354 |
Test (!f $[FVWM_USERDIR]/.XDGMenu) XDGRegen |
| 355 |
Read $[FVWM_USERDIR]/.XDGMenu |
| 356 |
.EE |
| 357 |
.RE |
| 358 |
|
| 359 |
Besides creating a top level menu, \fBfvwm-menu-desktop\fR can insert the |
| 360 |
menu into an existing menu using the \fB--insert-in-menu\fR option. For example |
| 361 |
one could create the menu MenuFvwmRoot and include the XDG items at the end. |
| 362 |
|
| 363 |
.RS |
| 364 |
.EX |
| 365 |
DestroyMenu MenuFvwmRoot |
| 366 |
AddToMenu MenuFvwmRoot "Fvwm" Title |
| 367 |
+ "Item1" Action1 |
| 368 |
... |
| 369 |
+ "ItemN" ActionN |
| 370 |
+ "" Nop |
| 371 |
PipeRead 'fvwm-menu-desktop --insert-in-menu MenuFvwmRoot' |
| 372 |
.EE |
| 373 |
.RE |
| 374 |
|
| 375 |
In this case the menu items are inserted at the end of the MenuFvwmRoot menu. |
| 376 |
If no items are in the menu, this menu becomes MenuFvwmRoot. The problem |
| 377 |
here is, that you have to restart fvwm or rebuild the whole menu |
| 378 |
to Regenerate it because menu items cannot be removed. |
| 379 |
To do this you could use a function like |
| 380 |
|
| 381 |
.RS |
| 382 |
.EX |
| 383 |
DestroyFunc XDGRegen |
| 384 |
AddToFunc XDGRegen |
| 385 |
+ I DestroyMenu MenuFvwmRoot |
| 386 |
+ I AddToMenu MenuFvwmRoot "Fvwm" Title |
| 387 |
+ I AddToMenu MenuFvwmRoot "Item1" Action1 |
| 388 |
... |
| 389 |
+ I AddToMenu MenuFvwmRoot "ItemN" ActionN |
| 390 |
+ I AddToMenu MenuFvwmRoot "" Nop |
| 391 |
+ I PipeRead 'fvwm-menu-desktop --insert-in-menu MenuFvwmRoot \\ |
| 392 |
--regen-cmd XDGRegen' |
| 393 |
.EE |
| 394 |
.RE |
| 395 |
|
| 396 |
Fvwm can also create menus dynamically by using \fBDynamicPopUpAction\fR |
| 397 |
and/or \fBDynamicPopDownAction\fR. These commands when used with a Menu |
| 398 |
will run a Function when the menu is opened. For example one could |
| 399 |
create the menu XDGMenu when it is opened using |
| 400 |
|
| 401 |
.RS |
| 402 |
.EX |
| 403 |
AddToMenu XDGMenu "XDGMenu" Title |
| 404 |
+ DynamicPopUpAction PipeRead 'fvwm-menu-desktop' |
| 405 |
.EE |
| 406 |
.RE |
| 407 |
|
| 408 |
This will create the menu when it is opened. One issue here is it will only |
| 409 |
create the menu the first time it is opened, and you still have to |
| 410 |
Regenerate the menu to see any changes. To create the menu each time it |
| 411 |
is open used the \fB--dynamic\fR option |
| 412 |
|
| 413 |
.RS |
| 414 |
.EX |
| 415 |
AddToMenu XDGMenu "XDGMenu" Title |
| 416 |
+ DynamicPopUpAction PipeRead 'fvwm-menu-desktop \\ |
| 417 |
--dynamic --include-items config' |
| 418 |
+ DynamicPopDownAction DestroyMenu recreate XDGMenu |
| 419 |
.EE |
| 420 |
.RE |
| 421 |
|
| 422 |
This will now Destroy the menu when it closed so it can be rebuilt the |
| 423 |
next time it is opened. The recreate flag doesn't completely destroy |
| 424 |
the menu keeping the DynamicPopUpAction and DynamicPopDownAction actions. |
| 425 |
The \fB--dynamic\fR flag includes the recreate option in the generated menus. |
| 426 |
|
| 427 |
To insert a menu into MenuFvwmRoot and still be dynamic you need to use |
| 428 |
a function that generates the whole menu. For example |
| 429 |
|
| 430 |
.RS |
| 431 |
.EX |
| 432 |
DestroyFunc GenRootMenu |
| 433 |
AddToFunc GenRootMenu |
| 434 |
+ I DestroyMenu recreate MenuFvwmRoot |
| 435 |
+ I AddToMenu MenuFvwmRoot "Fvwm" Title |
| 436 |
+ I AddToMenu MenuFvwmRoot "Item1" Action1 |
| 437 |
... |
| 438 |
+ I AddToMenu MenuFvwmRoot "ItemN" ActionN |
| 439 |
+ I AddToMenu MenuFvwmRoot "" Nop |
| 440 |
+ PipeRead `fvwm-menu-desktop --insert-in-menu MenuFvwmRoot \\ |
| 441 |
--include-items config` |
| 442 |
|
| 443 |
AddToMenu MenuFvwmRoot "Fvwm" Title |
| 444 |
+ DynamicPopUpAction GenRootMenu |
| 445 |
+ DynamicPopDownAction DestroyMenu recreate MenuFvwmRoot |
| 446 |
.EE |
| 447 |
.RE |
| 448 |
|
| 449 |
.SH BUGS |
| 450 |
The whole process of creating menus from files is slow. |
| 451 |
Otherwise report bugs to the |
| 452 |
fvwm-workers mailing list <[email protected]>. |
| 453 |
|
| 454 |
|
| 455 |
.SH AUTHORS |
| 456 |
This script is based on fvwm-xdg-menu.py written by Piotr Zielinski |
| 457 |
(http://www.cl.cam.ac.uk/~pz215/) who assigned Licence: GPL 2 Date: |
| 458 |
03.12.2005. |
| 459 |
|
| 460 |
The script was reworked to replace the existing fvwm-menu-desktop perl |
| 461 |
script by the fvwm-workers. |
| 462 |
|
| 463 |
|
| 464 |
.SH COPYING |
| 465 |
The script is distributed by the same terms as fvwm itself. See GNU |
| 466 |
General Public License for details. |