aboutsummaryrefslogtreecommitdiff
path: root/data/generate_menu
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2001-12-11 20:47:02 (GMT)
committerfluxgen <fluxgen>2001-12-11 20:47:02 (GMT)
commit18830ac9add80cbd3bf7369307d7e35a519dca9b (patch)
tree4759a5434a34ba317fe77bbf8b0ed9bb57bb6018 /data/generate_menu
parent1523b48bff07dead084af3064ad11c79a9b25df0 (diff)
downloadfluxbox-18830ac9add80cbd3bf7369307d7e35a519dca9b.zip
fluxbox-18830ac9add80cbd3bf7369307d7e35a519dca9b.tar.bz2
Initial revision
Diffstat (limited to 'data/generate_menu')
-rwxr-xr-xdata/generate_menu232
1 files changed, 232 insertions, 0 deletions
diff --git a/data/generate_menu b/data/generate_menu
new file mode 100755
index 0000000..49b5adc
--- /dev/null
+++ b/data/generate_menu
@@ -0,0 +1,232 @@
1# generate_menu for Fluxbox
2# Copyright (c) 2001 Henrik Kinnunen (fluxgen@linuxmail.org)
3#
4# Permission is hereby granted, free of charge, to any person obtaining a
5# copy of this software and associated documentation files (the "Software"),
6# to deal in the Software without restriction, including without limitation
7# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8# and/or sell copies of the Software, and to permit persons to whom the
9# Software is furnished to do so, subject to the following conditions:
10#
11# The above copyright notice and this permission notice shall be included in
12# all copies or substantial portions of the Software.
13#
14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20# DEALINGS IN THE SOFTWARE.
21
22#!/bin/sh
23
24FILENAME=menu.in
25
26
27# Start of menu
28
29echo "[begin] (Fluxbox @VERSION@)" > $FILENAME
30
31if [ -x `which xterm` ]; then
32 echo " [exec] (xterm) {xterm -fg white -bg black}" >> $FILENAME
33fi
34
35if [ -x `which nedit` ]; then
36 echo " [exec] (nedit) {nedit}" >> $FILENAME
37fi
38
39echo "[submenu] (Browsers)" >> $FILENAME
40 if [ -x `which netscape` ]; then
41 echo " [exec] (netscape) {netscape}" >> $FILENAME
42 fi
43 if [ -x `which opera` ]; then
44 echo " [exec] (opera) {opera}" >> $FILENAME
45 fi
46 if [ -x `which galeon` ]; then
47 echo " [exec] (galeon) {galeon}" >> $FILENAME
48 fi
49 if [ -x `which mozilla` ]; then
50 echo " [exec] (mozilla) {mozilla}" >> $FILENAME
51 fi
52 if [ -x `which konqueror` ]; then
53 echo " [exec] (konqueror) {konqueror}" >> $FILENAME
54 fi
55echo "[end]" >> $FILENAME
56
57
58echo "[submenu] (Editors)" >> $FILENAME
59 if [ -x `which nedit` ]; then
60 echo " [exec] (nedit) {nedit}" >> $FILENAME
61 fi
62 if [ -x `which vim` ]; then
63 echo " [exec] (vim) {vim -g}" >> $FILENAME
64 fi
65 if [ -x `which xemacs` ]; then
66 echo " [exec] (xemacs) {xemacs}" >> $FILENAME
67 fi
68 if [ -x `which gedit` ]; then
69 echo " [exec] (gedit) {gedit}" >> $FILENAME
70 fi
71 if [ -x `which xedit` ]; then
72 echo " [exec] (xedit) {xedit}" >> $FILENAME
73 fi
74 if [ -x `which kword` ]; then
75 echo " [exec] (kword) {kword}" >> $FILENAME
76 fi
77
78echo "[end]" >> $FILENAME
79
80echo "[submenu] (Net)" >> $FILENAME
81 if [ -x `which realplay` ]; then
82 echo " [exec] (realplay) {realplay}" >> $FILENAME
83 fi
84
85 if [ -x `which licq` ]; then
86 echo " [exec] (licq) {licq}" >> $FILENAME
87 fi
88 if [ -x `which xchat` ]; then
89 echo " [exec] (xchat) {xchat}" >> $FILENAME
90 fi
91 if [ -x `which sylpheed` ]; then
92 echo " [exec] (sylpheed) {sylpheed}" >> $FILENAME
93 fi
94 if [ -x `which gftp` ]; then
95 echo " [exec] (gftp) {gftp}" >> $FILENAME
96 fi
97 if [ -x `which BitchX` ]; then
98 echo " [exec] (BitchX) {xterm -title BitchX -fg white -bg black -e BitchX -N}" >> $FILENAME
99 else
100 if [ -x `which bitchx` ]; then
101 echo " [exec] (BitchX) {xterm -title BitchX -fg white -bg black -e bitchx -N}" >> $FILENAME
102 fi
103 fi
104 if [ -x `which ircii` ]; then
105 echo " [exec] (ircii) {xterm -title ircii -fg white -bg black -e ircii -s}" >> $FILENAME
106 fi
107echo "[end]" >> $FILENAME
108
109
110echo "[submenu] (Graphics)" >> $FILENAME
111 if [ -x `which gimp` ]; then
112 echo " [exec] (gimp) {gimp}" >> $FILENAME
113 fi
114 if [ -x `which xv` ]; then
115 echo " [exec] (xv) {xv}" >> $FILENAME
116 fi
117 if [ -x `which gqview` ]; then
118 echo " [exec] (gqview) {gqview}" >> $FILENAME
119 fi
120 if [ -x `which xpaint` ]; then
121 echo " [exec] (xpaint) {xpaint}" >> $FILENAME
122 fi
123echo "[end]" >> $FILENAME
124
125echo "[submenu] (Music)" >> $FILENAME
126 if [ -x `which xmms` ]; then
127 echo " [exec] (xmms) {xmms}" >> $FILENAME
128 fi
129 if [ -x `which gqmpeg` ]; then
130 echo " [exec] (gqmpeg) {gqmpeg}" >> $FILENAME
131 fi
132 if [ -x `which xmixer` ]; then
133 echo " [exec] (xmixer) {xmixer}" >> $FILENAME
134 fi
135 if [ -x `which gmix` ]; then
136 echo " [exec] (gmix) {gmix}" >> $FILENAME
137 fi
138 if [ -x `which xplaycd` ]; then
139 echo " [exec] (xplaycd) {xplaycd}" >> $FILENAME
140 fi
141 if [ -x `which soundtracker` ]; then
142 echo " [exec] (soundtracker) {soundtracker}" >> $FILENAME
143 fi
144echo "[end]" >> $FILENAME
145
146echo "[submenu] (Terminals)" >> $FILENAME
147 if [ -x `which xterm` ]; then
148 echo " [exec] (xterm) {xterm -fg white -bg black}" >> $FILENAME
149 fi
150 if [ -x `which gnome-terminal` ]; then
151 echo " [exec] (gnome-terminal) {gnome-terminal}" >> $FILENAME
152 fi
153 if [ -x `which Eterm` ]; then
154 echo " [exec] (Eterm) {Eterm}" >> $FILENAME
155 fi
156 if [ -x `which konsole` ]; then
157 echo " [exec] (konsole) {konsole}" >> $FILENAME
158 fi
159 if [ -x `which aterm` ]; then
160 echo " [exec] (aterm) {aterm}" >> $FILENAME
161 fi
162 if [ -x `which rxvt` ]; then
163 echo " [exec] (rxvt) {rxvt}" >> $FILENAME
164 fi
165echo "[end]" >> $FILENAME
166
167
168echo "[submenu] (Misc)" >> $FILENAME
169 if [ -x `which acroread` ]; then
170 echo " [exec] (acroread) {acroread}" >> $FILENAME
171 fi
172 if [ -x `which gcalc` ]; then
173 echo " [exec] (gcalc) {gcalc}" >> $FILENAME
174 fi
175 if [ -x `which xgdb` ]; then
176 echo " [exec] (xgdb) {xgdb}" >> $FILENAME
177 fi
178 if [ -x `which ddd` ]; then
179 echo " [exec] (ddd) {ddd}" >> $FILENAME
180 fi
181 if [ -x `which xterm` ]; then
182 echo " [exec] (tail access_log) {xterm -fg white -bg black -title access_log -e tail -f /var/log/access_log}" >> $FILENAME
183 fi
184echo "[end]" >> $FILENAME
185
186echo "[submenu] (X utils)" >> $FILENAME
187 if [ -x `which xpenguins` ]; then
188 echo " [exec] (xpenguins) {xpenguins}" >> $FILENAME
189 fi
190 if [ -x `which xcalc` ]; then
191 echo " [exec] (xcalc) {xcalc}" >> $FILENAME
192 fi
193 if [ -x `which xfontsel` ]; then
194 echo " [exec] (xfontsel) {xfontsel}" >> $FILENAME
195 fi
196 if [ -x `which xman` ]; then
197 echo " [exec] (xman) {xman}" >> $FILENAME
198 fi
199 if [ -x `which xload` ]; then
200 echo " [exec] (xload) {xload}" >> $FILENAME
201 fi
202 if [ -x `which xfig` ]; then
203 echo " [exec] (xfig) {xfig}" >> $FILENAME
204 fi
205 if [ -x `which xbiff` ]; then
206 echo " [exec] (xbiff) {xbiff}" >> $FILENAME
207 fi
208 if [ -x `which editres` ]; then
209 echo " [exec] (editres) {editres}" >> $FILENAME
210 fi
211 if [ -x `which viewres` ]; then
212 echo " [exec] (viewres) {viewres}" >> $FILENAME
213 fi
214 if [ -x `which xsnow` ]; then
215 echo " [exec] (xsnow) {xsnow}" >> $FILENAME
216 fi
217 if [ -x `which xclock` ]; then
218 echo " [exec] (xclock) {xclock}" >> $FILENAME
219 fi
220echo "[end]" >> $FILENAME
221
222
223echo "[workspaces] (Workspace List)" >> $FILENAME
224echo "[submenu] (Styles) {Choose a style...}" >> $FILENAME
225echo "[stylesdir] (@pkgdatadir@/styles)" >> $FILENAME
226echo "[end]" >> $FILENAME
227echo "[config] (Configuration)" >> $FILENAME
228echo "[reconfig] (Reconfigure)" >> $FILENAME
229echo "[restart] (Restart)" >> $FILENAME
230echo "[exit] (Exit)" >> $FILENAME
231
232echo "[end]" >> $FILENAME