fixed many bugs, removed linked list
[wmaker-crm.git] / WindowMaker / menu.fi
blob7116983d5e449c081715ae9d9550951983968a5f
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  *      SHEXEC <command> - executes a shell command (like gimp > /dev/null)
19  *      EXIT - exits the window manager
20  *      RESTART [<window manager>] - restarts WindowMaker or start another
21  *                      window manager
22  *      REFRESH - refreshes the desktop
23  *      ARRANGE_ICONS - rearranges the icons on the workspace
24  *      SHUTDOWN - kills all clients (and close the X window session)
25  *      SHOW_ALL - unhides all windows on workspace
26  *      HIDE_OTHERS - hides all windows on the workspace, except the
27  *              focused one (or the last one that received focus)
28  *      SAVE_SESSION - saves the current state of the desktop, which include
29  *                     all running applications, all their hints (geometry,
30  *                     position on screen, workspace they live on, the dock
31  *                     or clip from where they were launched, and
32  *                     if minimized, shaded or hidden. Also saves the current
33  *                     workspace the user is on. All will be restored on every
34  *                     start of windowmaker until another SAVE_SESSION or
35  *                     CLEAR_SESSION is used. If SaveSessionOnExit = Yes; in
36  *                     WindowMaker domain file, then saving is automatically
37  *                     done on every windowmaker exit, overwriting any
38  *                     SAVE_SESSION or CLEAR_SESSION (see below).
39  *      CLEAR_SESSION - clears any previous saved session. This will not have
40  *                     any effect if SaveSessionOnExit is True.
41  *
42  * OPEN_MENU syntax:
43  *   1. File menu handling.
44  *      // opens file.menu which must contain a valid menu file and inserts
45  *      // it in current position
46  *      OPEN_MENU file.menu
47  *   2. Pipe menu handling.
48  *      // opens command and uses it's stdout to construct menu.
49  *      // Command's output must be a valid menu description.
50  *      // The space between '|' and command itself is optional.
51  *      OPEN_MENU | command
52  *   3. Directory handling.
53  *      // Opens one or more directories and construct a menu with all
54  *      // the subdirectories and executable files in them sorted
55  *      // alphabetically.
56  *      OPEN_MENU /some/dir [/some/other/dir ...]
57  *   4. Directory handling with command.
58  *      // Opens one or more directories and construct menu with all
59  *      // subdirectories and readable files in them sorted alphabetically,
60  *      // preceding each of them with command.
61  *      OPEN_MENU /some/dir [/some/other/dir ...] WITH command -options
62  *
63  *
64  * <Parameters> is the program to execute.
65  *
66  * ** Options for command line in EXEC:
67  * %s - substitute with current selection
68  * %a(message) - opens a input box with the message and do substitution with
69  *              what you typed
70  * %w - substitute with XID for the current focused window
71  *
72  * You can override special characters (as % and ") with the \ character:
73  * ex: xterm -T "\"Hello World\""
74  *
75  * You can also use character escapes, like \n
76  *
77  * Each MENU statement must have one mathching END statement at the end.
78  *
79  * Example:
80  *
81  * "Test" MENU
82  *      "XTerm" EXEC xterm
83  *              // creates a submenu with the contents of /usr/openwin/bin
84  *      "XView apps" OPEN_MENU "/usr/openwin/bin"
85  *              // some X11 apps in different directories
86  *      "X11 apps" OPEN_MENU /usr/X11/bin $HOME/bin/X11
87  *              // set some background images
88  *      "Background" OPEN_MENU $HOME/images /usr/share/images WITH wmsetbg -u -t
89  *              // inserts the style.menu in this entry
90  *      "Style" OPEN_MENU style.menu
91  * "Test" END
92  */
94 #include "wmmacros"
96 "Sovellukset" MENU
97         "Tietoja" MENU
98                 "Info Panel..." INFO_PANEL
99                 "Legal" LEGAL_PANEL
100                 "Järjestelmän konsoli" EXEC xconsole
101                 "Järjestelmän kuorma" SHEXEC xosview || xload
102                 "Prosessilista" EXEC xterm -e top
103                 "Manuaalin selain" EXEC xman
104         "Info" END
105         "XTerm" EXEC xterm -sb 
106         "Rxvt" EXEC rxvt -bg black -fg white -fn fixed
107         "Työtilat" WORKSPACE_MENU
108         "Sovellukset" MENU
109                 "Grafiikka" MENU
110                         "Gimp" SHEXEC gimp >/dev/null
111                         "XV" EXEC xv
112                         "XPaint" EXEC xpaint
113                         "XFig" EXEC xfig
114                 "Grafiikka" END
115                 "Xfm" EXEC xfm
116                 "OffiX Files" EXEC files
117                 "LyX" EXEC lyx
118                 "Netscape" EXEC netscape 
119                 "Ghostview" EXEC ghostview %a(Enter file to view)
120                 "Acrobat" EXEC /usr/local/Acrobat3/bin/acroread %a(Enter PDF to view)
121                 "TkDesk" EXEC tkdesk
122         "Sovellukset" END
123         "Editorit" MENU
124                 "XFte" EXEC xfte
125                 "XEmacs" SHEXEC xemacs || emacs
126                 "XJed" EXEC xjed 
127                 "NEdit" EXEC nedit
128                 "Xedit" EXEC xedit
129                 "VI" EXEC xterm -e vi
130         "Editorit" END
131         "Muut" MENU
132                 "Xmcd" SHEXEC xmcd 2> /dev/null
133                 "Xplaycd" EXEC xplaycd
134                 "Xmixer" EXEC xmixer
135         "Muut" END
136         "Työkalut" MENU
137                 "Laskin" EXEC xcalc
138                 "Ikkunoiden asetukset" SHEXEC xprop | xmessage -center -title 'xprop' -file -
139                 "Kirjasinlajin valitsin" EXEC xfontsel
140                 "Pääte-emulaattori" EXEC xminicom
141                 "Suurenuslasi" EXEC xmag
142                 "Väripaletti" EXEC xcmap
143                 "XKill" EXEC xkill
144                 "ASClock" EXEC asclock -shape
145                 "Leikepöytä" EXEC xclipboard
146         "Työkalut" END
148         "Leikkaa-liimaa" MENU
149                 "Kopioi" SHEXEC echo '%s' | wxcopy
150                 "Lähetä sähköpostilla" EXEC xterm -name mail -T "Pine" -e pine %s
151                 "Selaa" EXEC netscape %s
152                 "Etsi manuaalista" SHEXEC MANUAL_SEARCH(%s)
153         "Leikkaa-liimaa" END
155         "Työtilat" MENU
156                 "Piilota muut" HIDE_OTHERS
157                 "Näytä kaikki" SHOW_ALL
158                 "Järjestele kuvakkeet" ARRANGE_ICONS
159                 "Päivitä" REFRESH
160                 "Lukitse" EXEC xlock -allowroot -usefirst
161                 "Talleta istunto" SAVE_SESSION
162                 "Tyhjennä talletettu istunto" CLEAR_SESSION
163         "Työtilat" END
165         "Ulkonäkö" MENU
166                 "Teemat" OPEN_MENU -noext  THEMES_DIR $HOME/GNUstep/Library/WindowMaker/Themes WITH setstyle
167                 "Tyylit" OPEN_MENU -noext  STYLES_DIR $HOME/GNUstep/Library/WindowMaker/Styles WITH setstyle
168                 "Kuvakeryhmät" OPEN_MENU -noext  ICON_SETS_DIR $HOME/GNUstep/Library/WindowMaker/IconSets WITH seticons
169                 "Taustat" MENU
170                         "Taustaväri" MENU
171                                 "Musta" WS_BACK '(solid, black)'
172                                 "Sininen"  WS_BACK '(solid, "#505075")'
173                                 "Indigo" WS_BACK '(solid, "#243e6c")'
174                                 "Tumman Sininen" WS_BACK '(solid, "#180090")'
175                                 "Purppura" WS_BACK '(solid, "#554466")'
176                                 "Wheat"  WS_BACK '(solid, "wheat4")'
177                                 "Tumman harmaa"  WS_BACK '(solid, "#333340")'
178                                 "Viini" WS_BACK '(solid, "#400020")'
179                         "Taustaväri" END
180                         "Liukuväri" MENU
181                                 "Lippu" WS_BACK '(mdgradient, green, red, white, green)'
182                                 "Taivas" WS_BACK '(vgradient, blue4, white)'
183                         "Liukuväri" END
184                         "Taustakuvat" OPEN_MENU -noext  BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t
185                 "Taustat" END
186                 "Talleta teema" SHEXEC getstyle -t $HOME/GNUstep/Library/WindowMaker/Themes/"%a(Theme name)"
187                 "Talleta kuvakeryhmät" SHEXEC geticonset $HOME/GNUstep/Library/WindowMaker/IconSets/"%a(IconSet name)"
188         "Ulkonäkö" END
190         "Poistu"        MENU
191                 "Uudelleen käynnistä" RESTART
192                 "Käynnistä AfterStep" RESTART afterstep
193                 "Kirjaudu ulos..."  EXIT
194                 "Sammuta..." SHUTDOWN
195         "Poistu" END
196 "Sovellukset" END