<commit_before>=pod

=head1 NAME

 icewm-programs - icewm programs configuration file

=head1 SYNOPSIS

F<> F<$XDG_CONFIG_HOME/icewm/programs>
 F<$HOME/.icewm/programs>
 F</usr/share/icewm/programs>

=head1 DESCRIPTION

The F<menu> file is responsible for configuring most of the generated
items in the L<icewm(1)> root menu and start menu, and is normally
included in those menus using the B<menufile> keyword.

=head1 FORMAT

The format of the file contains one of the following line syntax:

=over

=item B<prog> [B<">]I<title>[B<">] I<icon> I<program> I<options>

Specifies a program to execute when the menu item is selected.

=item B<restart> [B<">]I<title>[B<">] I<icon> I<program> I<options>

Specifies a program to replace the window manager when the menu item is
selected.  This is for launching other window managers from within
L<icewm(1)>.

=item B<runonce> [B<">]I<title>[B<">] I<icon> B<">[I<res_name>][B<.>I<res_class>]B<"> I<program> I<options>

Specifies a program to execute when the menu item is selected; however,
if a window of the specified I<res_name> and I<res_class> is present,
the program will not be run again.

=item B<menu> [B<">]I<title>[B<">] I<icon> B<{>
 # contained items
 B<}>

Specifies a sub-menu.  The lines that appear between the braces can be
any menu item described here.

=item B<menufile> [B<">]I<title>[B<">] I<icon> I<filename>, B<separator>

Specifies a file from which to collect sub-menu items (lines) and place
them at this point in the menu.

=item B<menuprog> [B<">]I<title>[B<">] I<icon> I<program> I<options>

Specifies a program that will print sub-menu items on standard output
and will be collected and placed in the sub-menu at this point.

=item B<separator>

A separator for menu items.

=back

where,

=over

=item B<prog>, B<restart>, B<runonce>, B<menu>, B<menufile>,
B<menuprog>, B<separator>

These are literal string keywords.

=item [B<">]I<title>[B<">]

This is the I<title> string associated with the menu item which is
displayed in the menu.  When the I<title> contains spaces, the title
must be surrounded by double quotes (C<">), although the I<title> may
always be surrounded by double quotes if preferred.

=item I<icon>

Is the name of the icon file (with or without extension) or the full
path to an icon file.

=item B<">[I<res_name>][B<.>I<res_class>]B<">

I<res_name> is the resource name of a window launched by I<program> and
I<res_class> is the resource class of the window.  Only one of
I<res_name> or I<res_class> need be specified.  This is used to identify
whether the program is already running and is for use with the
B<runonce> keyword.

=item I<program> I<options>

I<program> is the name of the executable or full path to the executable file that will
be run in response to selecting the menu item.  When used with the
B<menuprog> keyword, the I<program> must print on standard output the
contents of the menu and is used for dynamic menus.

I<options> is the options and arguments passed to the I<program>
verbatim.

=item I<filename>

I<filename> is the name of the file relative to one of the L<icewm(1)>
configuration directories, or the full path to a file.  The file is used
with the B<menufile> keyword and specifies the file from which to read
further menu items.

=back

=head1 EXAMPLES

Following is the example F<programs> file that ships with L<icewm(1)>:

 # This file is intended to be customized by the distributions.
 # (they should place it in /etc/X11/icewm)
 #
 # mostly obsolete, fixme
 menu Editors folder {
     prog fte fte fte
     prog vim vim gvim 
     prog xemacs xemacs xemacs
     prog emacs emacs emacs
     prog NEdit nedit nedit
     prog xedit xedit xedit
     prog Lyx emacs lyx
 }
 menu "WWW" folder {
     prog Netscape netscape netscape
     prog Mozilla mozilla mozilla
     prog Galeon galeon galeon
     prog Arena arena arena
     prog Lynx lynx xterm -e lynx
     prog Links lynx xterm -e links
 }
 menu "Document Viewers" folder {
     prog "Acrobat Reader" pdf acroread
     prog "DVI Previewer" xdvi xdvi
     prog "Ghostview" ghostview gv
 }
 menu Graphics folder {
     prog Gimp gimp gimp
     prog XV xv xv
     prog XPaint xpaint xpaint
     prog XFig xfig xfig
 }
 menu Games folder {
     prog "Koules for X" koules xkoules -f
     prog Xboing xboing xboing
     prog Xboard xboard xboard
     prog XGalaga xgalaga xgal
     prog XDemineur xdemineur xdemineur
     prog "Tux Racer" tuxracer tuxracer
 }
 menu System folder {
     prog "Control Panel" redhat control-panel
 }
 menu Utilities folder {
     prog XPlayCD xplaycd xplaycd
     prog XMixer xmixer xmixer
     prog Clock xclock xclock
     prog Magnify xmag xmag
     prog Calculator xcalc xcalc
     prog Colormap xcolormap xcmap
     prog Clipboard xclipboard xclipboard
     prog xkill bomb xkill
     prog xload xload xload
     prog xosview xosview xosview
     separator
     prog "Screen Saver" xlock xlock -nolock
     prog "Screen Lock" xlock xlock
 }
 menu "Window Managers" folder {
     restart icewm - icewm
     restart metacity - metacity
     restart wmaker - wmaker
     restart fluxbox - fluxbox
     restart blackbox - blackbox
     restart enlightenment - enlightenment
     restart fvwm2 - fvwm2
     restart fvwm - fvwm
     restart sawfish - sawfish
     restart sawfish2 - sawfish2
 }

=head1 FILES

Locations for the programs file are as follows:

F<>    F<$XDG_CONFIG_HOME/icewm/programs>
    F<$HOME/.icewm/programs>
    F</usr/share/icewm/programs>

=head1 SEE ALSO

L<icewm(1)>.

=head1 AUTHOR

<NAME> L<mailto:<EMAIL>>.

=head1 LICENSE

B<IceWM> is licensed under the GNU Library General Public License.
See the F<COPYING> file in the distribution.

=cut

# vim: set sw=4 tw=72 nocin spell spelllang=en_ca:
<commit_msg>add description to programs manpage<commit_after>=pod

=head1 NAME

 icewm-programs - icewm programs configuration file

=head1 SYNOPSIS

F<> F<$XDG_CONFIG_HOME/icewm/programs>
 F<$HOME/.icewm/programs>
 F</usr/share/icewm/programs>

=head1 DESCRIPTION

The F<menu> file is responsible for configuring most of the generated
items in the L<icewm(1)> root menu and start menu, and is normally
included in those menus using the B<menufile> keyword.

An automatically generated menu of applications.  This could be used by
L<wmconfig(1)>, menu or similar programs to give easy access to all the
desktop applications which are installed on the system.
See L<icewm-programs(5)>.

=head1 FORMAT

The format of the file contains one of the following line syntax:

=over

=item B<prog> [B<">]I<title>[B<">] I<icon> I<program> I<options>

Specifies a program to execute when the menu item is selected.

=item B<restart> [B<">]I<title>[B<">] I<icon> I<program> I<options>

Specifies a program to replace the window manager when the menu item is
selected.  This is for launching other window managers from within
L<icewm(1)>.

=item B<runonce> [B<">]I<title>[B<">] I<icon> B<">[I<res_name>][B<.>I<res_class>]B<"> I<program> I<options>

Specifies a program to execute when the menu item is selected; however,
if a window of the specified I<res_name> and I<res_class> is present,
the program will not be run again.

=item B<menu> [B<">]I<title>[B<">] I<icon> B<{>
 # contained items
 B<}>

Specifies a sub-menu.  The lines that appear between the braces can be
any menu item described here.

=item B<menufile> [B<">]I<title>[B<">] I<icon> I<filename>, B<separator>

Specifies a file from which to collect sub-menu items (lines) and place
them at this point in the menu.

=item B<menuprog> [B<">]I<title>[B<">] I<icon> I<program> I<options>

Specifies a program that will print sub-menu items on standard output
and will be collected and placed in the sub-menu at this point.

=item B<separator>

A separator for menu items.

=back

where,

=over

=item B<prog>, B<restart>, B<runonce>, B<menu>, B<menufile>,
B<menuprog>, B<separator>

These are literal string keywords.

=item [B<">]I<title>[B<">]

This is the I<title> string associated with the menu item which is
displayed in the menu.  When the I<title> contains spaces, the title
must be surrounded by double quotes (C<">), although the I<title> may
always be surrounded by double quotes if preferred.

=item I<icon>

Is the name of the icon file (with or without extension) or the full
path to an icon file.

=item B<">[I<res_name>][B<.>I<res_class>]B<">

I<res_name> is the resource name of a window launched by I<program> and
I<res_class> is the resource class of the window.  Only one of
I<res_name> or I<res_class> need be specified.  This is used to identify
whether the program is already running and is for use with the
B<runonce> keyword.

=item I<program> I<options>

I<program> is the name of the executable or full path to the executable file that will
be run in response to selecting the menu item.  When used with the
B<menuprog> keyword, the I<program> must print on standard output the
contents of the menu and is used for dynamic menus.

I<options> is the options and arguments passed to the I<program>
verbatim.

=item I<filename>

I<filename> is the name of the file relative to one of the L<icewm(1)>
configuration directories, or the full path to a file.  The file is used
with the B<menufile> keyword and specifies the file from which to read
further menu items.

=back

=head1 EXAMPLES

Following is the example F<programs> file that ships with L<icewm(1)>:

 # This file is intended to be customized by the distributions.
 # (they should place it in /etc/X11/icewm)
 #
 # mostly obsolete, fixme
 menu Editors folder {
     prog fte fte fte
     prog vim vim gvim 
     prog xemacs xemacs xemacs
     prog emacs emacs emacs
     prog NEdit nedit nedit
     prog xedit xedit xedit
     prog Lyx emacs lyx
 }
 menu "WWW" folder {
     prog Netscape netscape netscape
     prog Mozilla mozilla mozilla
     prog Galeon galeon galeon
     prog Arena arena arena
     prog Lynx lynx xterm -e lynx
     prog Links lynx xterm -e links
 }
 menu "Document Viewers" folder {
     prog "Acrobat Reader" pdf acroread
     prog "DVI Previewer" xdvi xdvi
     prog "Ghostview" ghostview gv
 }
 menu Graphics folder {
     prog Gimp gimp gimp
     prog XV xv xv
     prog XPaint xpaint xpaint
     prog XFig xfig xfig
 }
 menu Games folder {
     prog "Koules for X" koules xkoules -f
     prog Xboing xboing xboing
     prog Xboard xboard xboard
     prog XGalaga xgalaga xgal
     prog XDemineur xdemineur xdemineur
     prog "Tux Racer" tuxracer tuxracer
 }
 menu System folder {
     prog "Control Panel" redhat control-panel
 }
 menu Utilities folder {
     prog XPlayCD xplaycd xplaycd
     prog XMixer xmixer xmixer
     prog Clock xclock xclock
     prog Magnify xmag xmag
     prog Calculator xcalc xcalc
     prog Colormap xcolormap xcmap
     prog Clipboard xclipboard xclipboard
     prog xkill bomb xkill
     prog xload xload xload
     prog xosview xosview xosview
     separator
     prog "Screen Saver" xlock xlock -nolock
     prog "Screen Lock" xlock xlock
 }
 menu "Window Managers" folder {
     restart icewm - icewm
     restart metacity - metacity
     restart wmaker - wmaker
     restart fluxbox - fluxbox
     restart blackbox - blackbox
     restart enlightenment - enlightenment
     restart fvwm2 - fvwm2
     restart fvwm - fvwm
     restart sawfish - sawfish
     restart sawfish2 - sawfish2
 }

=head1 FILES

Locations for the programs file are as follows:

F<>    F<$XDG_CONFIG_HOME/icewm/programs>
    F<$HOME/.icewm/programs>
    F</usr/share/icewm/programs>

=head1 SEE ALSO

L<icewm(1)>.

=head1 AUTHOR

<NAME> L<mailto:<EMAIL>>.

=head1 LICENSE

B<IceWM> is licensed under the GNU Library General Public License.
See the F<COPYING> file in the distribution.

=cut

# vim: set sw=4 tw=72 nocin spell spelllang=en_ca:

{'fraction_non_alphanumeric': 0.08019389403860873, 'fraction_numerical': 0.004081979760183689, 'mean_word_length': 3.7002398081534773, 'pattern_counts': {'":': 0, '<': 219, '<?xml version=': 0, '>': 219, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7021091', 'n_tokens_mistral': 4063, 'n_tokens_neox': 3877, 'n_words': 1591}