~profzoom/ubuntu/quantal/wmaker/bug-1079925

« back to all changes in this revision

Viewing changes to WindowMaker/menu.sl

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2004-11-10 14:05:30 UTC
  • Revision ID: james.westby@ubuntu.com-20041110140530-qpd66b5lm38x7apk
Tags: upstream-0.91.0
Import upstream version 0.91.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Root Menu definition for WindowMaker in Slovenian language
 
3
 *
 
4
 * Syntax is:
 
5
 *
 
6
 * <Title> [SHORTCUT <Shortcut>] <Command> <Parameters>
 
7
 *
 
8
 * <Title> is any string to be used as title. Must be enclosed with " if it
 
9
 *      has spaces
 
10
 * 
 
11
 * SHORTCUT specifies a shortcut for that item. <Shortcut> has the
 
12
 * same syntax of the shortcuts key options in the 
 
13
 * $HOME/GNUstep/Defaults/WindowMaker file, such as RootMenuKey or MiniaturizeKey.
 
14
 *
 
15
 * You can't specify a shortcut for a MENU or OPEN_MENU entry.
 
16
 * 
 
17
 * <Command> one of the valid commands: 
 
18
 *      MENU - starts (sub)menu definition
 
19
 *      END  - end (sub)menu definition
 
20
 *      OPEN_MENU - opens a menu from a file, pipe or directory(ies) contents
 
21
 *                  and eventually precede each with a command.
 
22
 *      WORKSPACE_MENU - adds a submenu for workspace operations. Only one
 
23
 *                  workspace_menu is allowed.          
 
24
 *      EXEC <program> - executes an external program
 
25
 *      SHEXEC <command> - executes a shell command (like gimp > /dev/null)
 
26
 *      EXIT - exits the window manager
 
27
 *      RESTART [<window manager>] - restarts WindowMaker or start another
 
28
 *                      window manager
 
29
 *      REFRESH - refreshes the desktop
 
30
 *      ARRANGE_ICONS - rearranges the icons on the workspace
 
31
 *      SHUTDOWN - kills all clients (and close the X window session)
 
32
 *      SHOW_ALL - unhides all windows on workspace
 
33
 *      HIDE_OTHERS - hides all windows on the workspace, except the
 
34
 *              focused one (or the last one that received focus)
 
35
 *      SAVE_SESSION - saves the current state of the desktop, which include
 
36
 *                     all running applications, all their hints (geometry,
 
37
 *                     position on screen, workspace they live on, the dock
 
38
 *                     or clip from where they were launched, and
 
39
 *                     if minimized, shaded or hidden. Also saves the current
 
40
 *                     workspace the user is on. All will be restored on every
 
41
 *                     start of windowmaker until another SAVE_SESSION or
 
42
 *                     CLEAR_SESSION is used. If SaveSessionOnExit = Yes; in
 
43
 *                     WindowMaker domain file, then saving is automatically
 
44
 *                     done on every windowmaker exit, overwriting any
 
45
 *                     SAVE_SESSION or CLEAR_SESSION (see below).
 
46
 *      CLEAR_SESSION - clears any previous saved session. This will not have
 
47
 *                     any effect if SaveSessionOnExit is True.
 
48
 *      INFO - shows the Info Panel
 
49
 *
 
50
 * OPEN_MENU syntax:
 
51
 *   1. File menu handling.
 
52
 *      // opens file.menu which must contain a valid menu file and inserts
 
53
 *      // it in current position
 
54
 *      OPEN_MENU file.menu
 
55
 *   2. Pipe menu handling.
 
56
 *      // opens command and uses it's stdout to construct menu.
 
57
 *      // Command's output must be a valid menu description.
 
58
 *      // The space between '|' and command itself is optional.
 
59
 *      OPEN_MENU | command
 
60
 *   3. Directory handling.
 
61
 *      // Opens one or more directories and construct a menu with all
 
62
 *      // the subdirectories and executable files in them sorted
 
63
 *      // alphabetically.
 
64
 *      OPEN_MENU /some/dir [/some/other/dir ...]
 
65
 *   4. Directory handling with command.
 
66
 *      // Opens one or more directories and construct menu with all
 
67
 *      // subdirectories and readable files in them sorted alphabetically,
 
68
 *      // preceding each of them with command.
 
69
 *      OPEN_MENU /some/dir [/some/other/dir ...] WITH command -options
 
70
 *
 
71
 *
 
72
 * <Parameters> is the program to execute.
 
73
 *
 
74
 * ** Options for command line in EXEC:
 
75
 * %s - substitute with current selection
 
76
 * %a(message) - opens a input box with the message and do substitution with
 
77
 *              what you typed
 
78
 * %w - substitute with XID for the current focused window
 
79
 *
 
80
 * You can override special characters (as % and ") with the \ character:
 
81
 * ex: xterm -T "\"Hello World\""
 
82
 *
 
83
 * You can also use character escapes, like \n
 
84
 *
 
85
 * Each MENU statement must have one mathching END statement at the end.
 
86
 *
 
87
 * Example:
 
88
 *
 
89
 * "Test" MENU
 
90
 *      "XTerm" EXEC xterm
 
91
 *              // creates a submenu with the contents of /usr/openwin/bin
 
92
 *      "XView apps" OPEN_MENU "/usr/openwin/bin"
 
93
 *              // some X11 apps in different directories
 
94
 *      "X11 apps" OPEN_MENU /usr/X11/bin $HOME/bin/X11
 
95
 *              // set some background images
 
96
 *      "Background" OPEN_MENU $HOME/images /usr/share/images WITH wmsetbg -u -t
 
97
 *              // inserts the style.menu in this entry
 
98
 *      "Style" OPEN_MENU style.menu
 
99
 * "Test" END
 
100
 */
 
101
 
 
102
#include "wmmacros"
 
103
 
 
104
"Aplikacije" MENU
 
105
        "Informacije" MENU
 
106
                "Informacije o programu..." INFO_PANEL
 
107
                "Licenca..." LEGAL_PANEL
 
108
                "Sistemska konzola" EXEC xconsole
 
109
                "Obremenitev sistema" SHEXEC xosview || xload
 
110
                "Seznam procesov" EXEC xterm -e top
 
111
                "Pomoč (Iskalec man strani)" EXEC xman
 
112
        "Informacije" END
 
113
        "XTerm" EXEC xterm -sb 
 
114
        "Rxvt" EXEC rxvt -bg black -fg white -fn fixed
 
115
        "Delovni prostori" WORKSPACE_MENU
 
116
        "Aplikacije" MENU
 
117
                "Grafika" MENU
 
118
                        "Gimp" SHEXEC gimp >/dev/null
 
119
                        "XV" EXEC xv
 
120
                        "XPaint" EXEC xpaint
 
121
                        "XFig" EXEC xfig
 
122
                "Grafika" END
 
123
                "X File Manager" EXEC xfm
 
124
                "OffiX Files" EXEC files
 
125
                "LyX" EXEC lyx
 
126
                "Netscape" EXEC netscape 
 
127
                "Ghostview" EXEC ghostview %a(Enter file to view)
 
128
                "Acrobat" EXEC /usr/local/Acrobat3/bin/acroread %a(Enter PDF to view)
 
129
                "TkDesk" EXEC tkdesk
 
130
        "Aplikacije" END
 
131
        "Urejevalniki besedil" MENU
 
132
                "XFte" EXEC xfte
 
133
                "XEmacs" SHEXEC xemacs || emacs
 
134
                "XJed" EXEC xjed 
 
135
                "NEdit" EXEC nedit
 
136
                "Xedit" EXEC xedit
 
137
                "VI" EXEC xterm -e vi
 
138
        "Urejevalniki besedil" END
 
139
        "Drugo" MENU
 
140
                "Xmcd" SHEXEC xmcd 2> /dev/null
 
141
                "Xplaycd" EXEC xplaycd
 
142
                "Xmixer" EXEC xmixer
 
143
        "Drugo" END
 
144
        "Uporabi programi" MENU
 
145
                "Kalkulator" EXEC xcalc
 
146
                "Lastnosti oken" SHEXEC xprop | xmessage -center -title 'xprop' -file -
 
147
                "Pregled pisav" EXEC xfontsel
 
148
                "Terminal emulator" EXEC xminicom
 
149
                "Povecevalno steklo" EXEC xmag
 
150
                "Barvna lestvica" EXEC xcmap
 
151
                "XKill" EXEC xkill
 
152
                "ASClock" EXEC asclock -shape
 
153
                "Odlagališče (clipboard)" EXEC xclipboard
 
154
        "Uporabni programi" END
 
155
 
 
156
        "Izbira" MENU
 
157
                "Kopiraj" SHEXEC echo '%s' | wxcopy
 
158
                "Pošlji po pošti" EXEC xterm -name mail -T "Pine" -e pine %s
 
159
                "Odpri WEB stran" EXEC netscape %s
 
160
                "Poišči v navodilih" EXEC MANUAL_SEARCH(%s)
 
161
        "Izbira" END
 
162
 
 
163
        "Delovni prostor" MENU
 
164
                "Skrij druge" HIDE_OTHERS
 
165
                "Pokaži vse" SHOW_ALL
 
166
                "Poravnaj ikone" ARRANGE_ICONS
 
167
                "Obnovi" REFRESH
 
168
                "Zakleni" EXEC xlock -allowroot -usefirst
 
169
                "Shrani session" SAVE_SESSION
 
170
                "Izbriši shranjen session" CLEAR_SESSION
 
171
        "Delovni prostor" END
 
172
 
 
173
        "Izgled" MENU
 
174
                "Teme" OPEN_MENU -noext THEMES_DIR $HOME/GNUstep/Library/WindowMaker/Themes WITH setstyle
 
175
                "Stili" OPEN_MENU -noext STYLES_DIR $HOME/GNUstep/Library/WindowMaker/Styles WITH setstyle
 
176
                "Zbirke ikon" OPEN_MENU -noext ICON_SETS_DIR $HOME/GNUstep/Library/WindowMaker/IconSets WITH seticons
 
177
                "Odzadje" MENU
 
178
                        "Barva" MENU
 
179
                                "Črna" WS_BACK '(solid, black)'
 
180
                                "Modra"  WS_BACK '(solid, "#505075")'
 
181
                                "Indigo" WS_BACK '(solid, "#243e6c")'
 
182
                                "Temno modra" WS_BACK '(solid, "#224477")'
 
183
                                "Violična" WS_BACK '(solid, "#554466")'
 
184
                                "Pšenična"  WS_BACK '(solid, "wheat4")'
 
185
                                "Temno siva"  WS_BACK '(solid, "#333340")'
 
186
                                "Vinsko rdeča" WS_BACK '(solid, "#400020")'
 
187
                        "Barva" END
 
188
                        "Preliv" MENU
 
189
                                "Zastava" WS_BACK '(mdgradient, green, red, white, green)'
 
190
                                "Nebo" WS_BACK '(vgradient, blue4, white)'
 
191
                        "Preliv" END
 
192
                        "Slike" OPEN_MENU -noext BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t
 
193
                "Odzadje" END
 
194
                "Shrani temo" SHEXEC getstyle -t $HOME/GNUstep/Library/WindowMaker/Themes/"%a(Theme name)"
 
195
                "Shrani zbirko ikon" SHEXEC geticonset $HOME/GNUstep/Library/WindowMaker/IconSets/"%a(IconSet name)"
 
196
        "Izgled" END
 
197
 
 
198
        "Izhod" MENU
 
199
                "Ponovno zaženi" RESTART
 
200
                "Poženi AfterStep" RESTART afterstep
 
201
                "Izhod..."  EXIT
 
202
                "Izhod iz session..." SHUTDOWN
 
203
        "Izhod" END
 
204
"Aplikacije" END