Initial revision
[wmaker-crm.git] / WindowMaker / menu.he
blob783d1bcde9ee7e15fe214e83340bd4d132d332f2
1 /*
2  * Root Menu definition for WindowMaker
3  *
4  * Syntax is:
5  *
6  * <Title> <Command> <Parameters>
7  *
8  * <Title> is any string to be used as title. Must be enclosed with " if it
9  *      has spaces
10  *
11  * <Command> one of the valid commands: 
12  *      MENU - starts (sub)menu definition
13  *      OPEN_MENU - opens a menu from a file, pipe or directory(ies) contents
14  *                  and eventually precede each with a command.
15  *      END  - end (sub)menu definition
16  *      WORKSPACE_MENU - adds a submenu for workspace operations
17  *      EXEC <program> - executes an external program
18  *      EXIT - exits the window manager
19  *      RESTART [<window manager>] - restarts WindowMaker or start another
20  *                      window manager
21  *      REFRESH - refreshes the desktop
22  *      ARRANGE_ICONS - rearranges the icons on the workspace
23  *      SHUTDOWN - kills all clients (and close the X window session)
24  *      SHOW_ALL - unhides all windows on workspace
25  *      HIDE_OTHERS - hides all windows on the workspace, except the
26  *              focused one (or the last one that received focus)
27  *      SAVE_SESSION - saves the current state of the desktop, which include
28  *                     all running applications, all their hints (geometry,
29  *                     position on screen, workspace they live on, the dock
30  *                     or clip from where they were launched, and
31  *                     if minimized, shaded or hidden. Also saves the current
32  *                     workspace the user is on. All will be restored on every
33  *                     start of windowmaker until another SAVE_SESSION or
34  *                     CLEAR_SESSION is used. If SaveSessionOnExit = Yes; in
35  *                     WindowMaker domain file, then saving is automatically
36  *                     done on every windowmaker exit, overwriting any
37  *                     SAVE_SESSION or CLEAR_SESSION (see below).
38  *      CLEAR_SESSION - clears any previous saved session. This will not have
39  *                     any effect if SaveSessionOnExit is True.
40  *
41  * OPEN_MENU syntax:
42  *   1. File menu handling.
43  *      // opens file.menu which must contain a valid menu file and inserts
44  *      // it in current position
45  *      OPEN_MENU file.menu
46  *   2. Pipe menu handling.
47  *      // opens command and uses it's stdout to construct menu.
48  *      // Command's output must be a valid menu description.
49  *      // The space between '|' and command itself is optional.
50  *      OPEN_MENU | command
51  *   3. Directory handling.
52  *      // Opens one or more directories and construct a menu with all
53  *      // the subdirectories and executable files in them sorted
54  *      // alphabetically.
55  *      OPEN_MENU /some/dir [/some/other/dir ...]
56  *   4. Directory handling with command.
57  *      // Opens one or more directories and construct menu with all
58  *      // subdirectories and readable files in them sorted alphabetically,
59  *      // preceding each of them with command.
60  *      OPEN_MENU /some/dir [/some/other/dir ...] WITH command -options
61  *
62  *
63  * <Parameters> is the program to execute.
64  *
65  * ** Options for command line in EXEC:
66  * %s - substitute with current selection
67  * %a(message) - opens a input box with the message and do substitution with
68  *              what you typed
69  * %w - substitute with XID for the current focused window
70  *
71  * You can override special characters (as % and ") with the \ character:
72  * ex: xterm -T "\"Hello World\""
73  *
74  * You can also use character escapes, like \n
75  *
76  * Each MENU statement must have one mathching END statement at the end.
77  *
78  * Example:
79  *
80  * "Test" MENU
81  *      "XTerm" EXEC xterm
82  *              // creates a submenu with the contents of /usr/openwin/bin
83  *      "XView apps" OPEN_MENU "/usr/openwin/bin"
84  *              // some X11 apps in different directories
85  *      "X11 apps" OPEN_MENU /usr/X11/bin ~/bin/X11
86  *              // set some background images
87  *      "Background" OPEN_MENU ~/images /usr/share/images WITH wmsetbg -u -t
88  *              // inserts the style.menu in this entry
89  *      "Style" OPEN_MENU style.menu
90  * "Test" END
91  */
93 #include "wmmacros"
95 "íéîåùé" MENU
96         "òãéî" MENU
97                 "Info Panel..." INFO_PANEL
98                 "Legal" LEGAL_PANEL
99                 "System Load" EXEC xosview || xload
100                 "Process List" EXEC xterm -e top
101                 "Manual Browser" EXEC xman
102         "òãéî" END
103         "XTerm" EXEC xterm -sb 
104         "Rxvt" EXEC rxvt -bg black -fg white -fn fixed
105         "äãåáò éáçøî" WORKSPACE_MENU
106         "íéîåùé" MENU
107                 "ä÷éôøâ" MENU
108                         "Gimp" EXEC gimp >/dev/null
109                         "XV" EXEC xv
110                         "XPaint" EXEC xpaint
111                         "XFig" EXEC xfig
112                 "ä÷éôøâ" END
113                 "X File Manager" EXEC xfm
114                 "OffiX Files" EXEC files
115                 "LyX" EXEC lyx
116                 "ôéé÷ñèð" EXEC netscape 
117                 "Ghostview" EXEC ghostview %a(Enter file to view)
118                 "Acrobat" EXEC /usr/local/Acrobat3/bin/acroread %a(Enter PDF to view)
119                 "TkDesk" EXEC tkdesk
120         "íéîåùé" END
121         "íéëøåò" MENU
122                 "XFte" EXEC xfte
123                 "XEmacs" EXEC xemacs || emacs
124                 "XJed" EXEC xjed 
125                 "NEdit" EXEC nedit
126                 "Xedit" EXEC xedit
127                 "VI" EXEC xterm -e vi
128         "íéëøåò" END
129         "éììë" MENU
130                 "Xmcd" EXEC xmcd 2> /dev/null
131                 "Xplaycd" EXEC xplaycd
132                 "Xmixer" EXEC xmixer
133         "éììë" END
134         "íéìë" MENU
135                 "Calculator" EXEC xcalc
136                 "Window Properties" EXEC xprop | xmessage -center -title 'xprop' -file -
137                 "Font Chooser" EXEC xfontsel
138                 "Terminal Emulator" EXEC xminicom
139                 "Magnify" EXEC xmag
140                 "Colormap" EXEC xcmap
141                 "XKill" EXEC xkill
142                 "ASClock" EXEC asclock -shape
143                 "Clipboard" EXEC xclipboard
144         "íéìë" END
146         "äøéçá" MENU
147                 "÷úòä" EXEC echo '%s' | wxcopy
148                 "...ì øàåãä çìù" EXEC xterm -name mail -T "Pine" -e pine %s
149                 "Navigate" EXEC netscape %s
150                 "Search in Manual" EXEC MANUAL_SEARCH(%s)
151         "äøéçá" END
153         "äãåáò áçøî" MENU
154                 "íéøçà àáçä" HIDE_OTHERS
155                 "íìåë äàøä" SHOW_ALL
156                 "íéðå÷ééà øãñ" ARRANGE_ICONS
157                 "ïðòø" REFRESH
158                 "ìòð" EXEC xlock -allowroot -usefirst
159                 "Save Session" SAVE_SESSION
160                 "Clear Saved Session" CLEAR_SESSION
161         "äãåáò áçøî" END
163         "äàøî" MENU
164                 "Themes" OPEN_MENU THEMES_DIR ~/GNUstep/Library/WindowMaker/Themes WITH setstyle
165                 "úåðåðâñ" OPEN_MENU STYLES_DIR ~/GNUstep/Library/WindowMaker/Styles WITH setstyle
166                 "íéðå÷ééà èñ" OPEN_MENU ICON_SETS_DIR ~/GNUstep/Library/WindowMaker/IconSets WITH seticons
167                 "ò÷ø" MENU
168                         "Solid" MENU
169                                 "øåçù" WS_BACK '(solid, black)'
170                                 "ìåçë"  WS_BACK '(solid, "#505075")'
171                                 "Indigo" WS_BACK '(solid, "#243e6c")'
172                                 "÷åîò ìåçë" WS_BACK '(solid, "#180090")'
173                                 "ìåâñ" WS_BACK '(solid, "#554466")'
174                                 "äèéç"  WS_BACK '(solid, "wheat4")'
175                                 "øåôà øåçù"  WS_BACK '(solid, "#333340")'
176                                 "ïéé" WS_BACK '(solid, "#400020")'
177                         "Solid" END
178                         "Gradient" MENU
179                                 "Flag" WS_BACK '(vdgradient, blue, white, blue)'
180                                 "Sky" WS_BACK '(vgradient, blue4, white)'
181                         "Gradient" END
182                         "Images" OPEN_MENU BACKGROUNDS_DIR ~/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t
183                 "ò÷ø" END
184                 "Save Theme" EXEC getstyle -t ~/GNUstep/Library/WindowMaker/Themes/"%a(Theme name)"
185                 "Save IconSet" EXEC geticonset ~/GNUstep/Library/WindowMaker/IconSets/"%a(IconSet name)"
186         "äàøî" END
188         "äàéöé" MENU
189                 "ìåçúéà" RESTART
190                 "AfterStepì øåáò " RESTART afterstep
191                 "...àö"  EXIT
192                 "...ìåëä øåâñå àö" SHUTDOWN
193         "äàéöé" END
194 "íéîåùé" END