aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-11-04 11:38:51 (GMT)
committerfluxgen <fluxgen>2002-11-04 11:38:51 (GMT)
commitf5939ba5c271a2c7328a098f5d19d59005c0c553 (patch)
treeaefc76087748152f5ce4dd106998e85e2db438f8 /util
parent720423af0182d91e810a9d69936c16583352ce32 (diff)
downloadfluxbox-f5939ba5c271a2c7328a098f5d19d59005c0c553.zip
fluxbox-f5939ba5c271a2c7328a098f5d19d59005c0c553.tar.bz2
update from Han
Diffstat (limited to 'util')
-rwxr-xr-xutil/fluxbox-generate_menu384
1 files changed, 186 insertions, 198 deletions
diff --git a/util/fluxbox-generate_menu b/util/fluxbox-generate_menu
index 3e82a49..54dded4 100755
--- a/util/fluxbox-generate_menu
+++ b/util/fluxbox-generate_menu
@@ -20,8 +20,7 @@
20# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21# DEALINGS IN THE SOFTWARE. 21# DEALINGS IN THE SOFTWARE.
22 22
23PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin 23[ `id -u` -eq 0 ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin
24
25 24
26# Functions 25# Functions
27display_usage() { 26display_usage() {
@@ -60,16 +59,19 @@ EOF
60} 59}
61 60
62display_authors() { 61display_authors() {
62WHOAMI=`whoami`
63 cat <<EOF 63 cat <<EOF
64 64
65fluxbox-generate_menu was brought to you by: 65fluxbox-generate_menu was brought to you by:
66Henrik Kinnunnen: Project leader. 66
67Han Boetes: Packaging, debugging and scripts. 67 Henrik Kinnunnen: Project leader.
68Jeramy B. Smith: Packaging assistance, gnome and kde menu system. 68 Han Boetes: Packaging, debugging and scripts.
69Xyrnix: Mysterious guest developer who made find_it module. 69 Jeramy B. Smith: Packaging assistance, gnome and kde menu system.
70felipe: Italian locales and find_term module. 70 Xyrnix: Mysterious guest developer who made find_it module.
71 Filippo Pappalardo: Italian locales and -t option.
72 $WHOAMI: Innocent bystander.
73
71EOF 74EOF
72 echo -e `whoami`": Innocent bystander.\n"
73} 75}
74 76
75find_it() { 77find_it() {
@@ -111,6 +113,14 @@ menu_entry_dir() {
111 done 113 done
112} 114}
113 115
116normal_find() {
117 while [ $1 ]; do
118 find_it $1 append "[exec] ($1) {$1}"
119 shift
120 done
121}
122
123
114# Get options. 124# Get options.
115while getopts ":khagt:p:n:q:o:m:" COMMAND_LINE_ARGUMENT ; do 125while getopts ":khagt:p:n:q:o:m:" COMMAND_LINE_ARGUMENT ; do
116 case "${COMMAND_LINE_ARGUMENT}" in 126 case "${COMMAND_LINE_ARGUMENT}" in
@@ -196,165 +206,176 @@ fi
196 206
197# menu defaults (if translation forget to set one of them) 207# menu defaults (if translation forget to set one of them)
198BROWSERMENU="Browsers" 208BROWSERMENU="Browsers"
209CONFIGUREMENU="Configure"
199EDITORMENU="Editors" 210EDITORMENU="Editors"
200NETMENU="Net" 211EXITITEM="Exit"
201GRAPHICMENU="Graphics"
202MUSICMENU="Music"
203TERMINALMENU="Terminals"
204MISCMENU="Misc"
205XUTILSMENU="X-utils"
206FBSETTINGSMENU="FB-Settings" 212FBSETTINGSMENU="FB-Settings"
207KDEMENUTEXT="KDE-menus" 213GAMESMENU="Games"
208GNOMEMENUTEXT="Gnome-menus" 214GNOMEMENUTEXT="Gnome-menus"
209RESTARTITEM="Restart" 215GRAPHICMENU="Graphics"
210EXITITEM="Exit" 216KDEMENUTEXT="KDE-menus"
211CONFIGUREMENU="Configure" 217MISCMENU="Misc"
218MULTIMEDIAMENU="Multimedia"
219MUSICMENU="Music"
220NETMENU="Net"
221OFFICEMENU="Office"
212RELOADITEM="Reload config" 222RELOADITEM="Reload config"
223RESTARTITEM="Restart"
213STYLEMENU="Styles" 224STYLEMENU="Styles"
214STYLEMENUTITLE="Choose a style..." 225STYLEMENUTITLE="Choose a style..."
226TERMINALMENU="Terminals"
215WORKSPACEMENU="Workspace List" 227WORKSPACEMENU="Workspace List"
228XUTILSMENU="X-utils"
216 229
217# Check translation 230# Check translation
218case ${LC_ALL} in 231case ${LC_ALL} in
219 ru_RU) #Russian locales 232 ru_RU) #Russian locales
233 #OFFICEMENU="Office"
220 BROWSERMENU="Браузеры" 234 BROWSERMENU="Браузеры"
235 CONFIGUREMENU="Настройка"
221 EDITORMENU="Редакторы" 236 EDITORMENU="Редакторы"
222 NETMENU="Сеть" 237 EXITITEM="Выйти"
223 GRAPHICMENU="Графика"
224 MUSICMENU="Звук"
225 TERMINALMENU="Терминалы"
226 MISCMENU="Прочее"
227 XUTILSMENU="X-утилиты"
228 FBSETTINGSMENU="FB-настройки" 238 FBSETTINGSMENU="FB-настройки"
229 KDEMENUTEXT="KDE-меню"
230 GNOMEMENUTEXT="Gnome-меню" 239 GNOMEMENUTEXT="Gnome-меню"
231 RESTARTITEM="Перезапустить" 240 GRAPHICMENU="Графика"
232 EXITITEM="Выйти" 241 KDEMENUTEXT="KDE-меню"
233 CONFIGUREMENU="Настройка" 242 MISCMENU="Прочее"
243 MUSICMENU="Звук"
244 NETMENU="Сеть"
234 RELOADITEM="Перенастроить" 245 RELOADITEM="Перенастроить"
246 RESTARTITEM="Перезапустить"
235 STYLEMENU="Стили" 247 STYLEMENU="Стили"
236 STYLEMENUTITLE="Выберите стиль" 248 STYLEMENUTITLE="Выберите стиль"
249 TERMINALMENU="Терминалы"
237 WORKSPACEMENU="Рабочие пространства" 250 WORKSPACEMENU="Рабочие пространства"
251 XUTILSMENU="X-утилиты"
238 ;; 252 ;;
239 sv_SE) #Swedish locales 253 sv_SE) #Swedish locales
254 #OFFICEMENU="Office"
240 BROWSERMENU="Browsers" 255 BROWSERMENU="Browsers"
256 CONFIGUREMENU="Konfiguration"
241 EDITORMENU="Editorer" 257 EDITORMENU="Editorer"
242 NETMENU="Net" 258 EXITITEM="Exit"
243 GRAPHICMENU="Grafik"
244 MUSICMENU="Musik"
245 TERMINALMENU="Terminaler"
246 MISCMENU="Blandat"
247 XUTILSMENU="X-program"
248 FBSETTINGSMENU="FB-instДllningar" 259 FBSETTINGSMENU="FB-instДllningar"
249 KDEMENUTEXT="KDE-menyer"
250 GNOMEMENUTEXT="Gnome-menyer" 260 GNOMEMENUTEXT="Gnome-menyer"
251 RESTARTITEM="Starta om" 261 GRAPHICMENU="Grafik"
252 EXITITEM="Exit" 262 KDEMENUTEXT="KDE-menyer"
253 CONFIGUREMENU="Konfiguration" 263 MISCMENU="Blandat"
264 MUSICMENU="Musik"
265 NETMENU="Net"
254 RELOADITEM="Ladda om konfig" 266 RELOADITEM="Ladda om konfig"
267 RESTARTITEM="Starta om"
255 STYLEMENU="Stiler" 268 STYLEMENU="Stiler"
256 STYLEMENUTITLE="VДlj en stil" 269 STYLEMENUTITLE="VДlj en stil"
270 TERMINALMENU="Terminaler"
257 WORKSPACEMENU="Arbetsytor" 271 WORKSPACEMENU="Arbetsytor"
272 XUTILSMENU="X-program"
258 ;; 273 ;;
259 nl_NL) #Nederlandse locales 274 nl_NL) #Nederlandse locales
275 #OFFICEMENU="Office"
260 BROWSERMENU="Browsers" 276 BROWSERMENU="Browsers"
277 CONFIGUREMENU="Instellingen"
261 EDITORMENU="Editors" 278 EDITORMENU="Editors"
262 NETMENU="Net" 279 EXITITEM="Afsluiten"
263 GRAPHICMENU="Grafisch"
264 MUSICMENU="Muziek"
265 TERMINALMENU="Terminals"
266 MISCMENU="Onregelmatig"
267 XUTILSMENU="X-utils"
268 FBSETTINGSMENU="FB-Instellingen" 280 FBSETTINGSMENU="FB-Instellingen"
269 KDEMENUTEXT="KDE-menu"
270 GNOMEMENUTEXT="Gnome-menu" 281 GNOMEMENUTEXT="Gnome-menu"
271 RESTARTITEM="Restart" 282 GRAPHICMENU="Grafisch"
272 EXITITEM="Einde" 283 KDEMENUTEXT="KDE-menu"
273 CONFIGUREMENU="Instellingen" 284 MISCMENU="Onregelmatig"
285 MUSICMENU="Muziek"
286 NETMENU="Net"
274 RELOADITEM="Vernieuwen" 287 RELOADITEM="Vernieuwen"
288 RESTARTITEM="Restart"
275 STYLEMENU="Stylen" 289 STYLEMENU="Stylen"
276 STYLEMENUTITLE="Kies een styl..." 290 STYLEMENUTITLE="Kies een styl..."
291 TERMINALMENU="Terminals"
277 WORKSPACEMENU="Werkveld Lijst" 292 WORKSPACEMENU="Werkveld Lijst"
293 XUTILSMENU="X-utils"
278 ;; 294 ;;
279 fi_FI) #Finnish locales 295 fi_FI) #Finnish locales
296 #OFFICEMENU="Office"
280 BROWSERMENU="Selaimet" 297 BROWSERMENU="Selaimet"
298 CONFIGUREMENU="Konfigurointi"
281 EDITORMENU="Editorit" 299 EDITORMENU="Editorit"
282 NETMENU="Verkko" 300 EXITITEM="Lopeta"
283 GRAPHICMENU="Grafiikka"
284 MUSICMENU="Musikki"
285 TERMINALMENU="Terminaalit"
286 MISCMENU="Sekalaista"
287 XUTILSMENU="X-Ohjelmat"
288 FBSETTINGSMENU="FB:n Asetukset" 301 FBSETTINGSMENU="FB:n Asetukset"
289 KDEMENUTEXT="KDE:n valikot"
290 GNOMEMENUTEXT="Gnomen valikot" 302 GNOMEMENUTEXT="Gnomen valikot"
291 RESTARTITEM="KДynnistД uudelleen" 303 GRAPHICMENU="Grafiikka"
292 EXITITEM="Lopeta" 304 KDEMENUTEXT="KDE:n valikot"
293 CONFIGUREMENU="Konfigurointi" 305 MISCMENU="Sekalaista"
306 MUSICMENU="Musikki"
307 NETMENU="Verkko"
294 RELOADITEM="PДivitД" 308 RELOADITEM="PДivitД"
309 RESTARTITEM="KДynnistД uudelleen"
295 STYLEMENU="Tyylit" 310 STYLEMENU="Tyylit"
296 STYLEMENUTITLE="Valitse tyyli" 311 STYLEMENUTITLE="Valitse tyyli"
312 TERMINALMENU="Terminaalit"
297 WORKSPACEMENU="TyЖaluet" 313 WORKSPACEMENU="TyЖaluet"
314 XUTILSMENU="X-Ohjelmat"
298 ;; 315 ;;
299 ja_JP) #Japanese locales 316 ja_JP) #Japanese locales
317 #OFFICEMENU="Office"
300 BROWSERMENU="╔ж╔И╔╕╔╤" 318 BROWSERMENU="╔ж╔И╔╕╔╤"
319 CONFIGUREMENU="юъдЙ"
301 EDITORMENU="╔╗╔г╔ё╔©" 320 EDITORMENU="╔╗╔г╔ё╔©"
302 NETMENU="╔м╔ц╔х╔О║╪╔╞" 321 EXITITEM="╫╙н╩"
303 GRAPHICMENU="╡ХаЭ"
304 MUSICMENU="╡╩Ёз"
305 TERMINALMENU="╔©║╪╔ъ╔й╔К"
306 MISCMENU="╓╓╓М╓╓╓М"
307 XUTILSMENU="X╔Ф║╪╔ф╔ё╔Й╔ф╔ё"
308 FBSETTINGSMENU="FluxboxюъдЙ" 322 FBSETTINGSMENU="FluxboxюъдЙ"
309 KDEMENUTEXT="KDE╔А╔к╔Е║╪"
310 GNOMEMENUTEXT="Gnome╔А╔к╔Е║╪" 323 GNOMEMENUTEXT="Gnome╔А╔к╔Е║╪"
311 RESTARTITEM="╨ф╣╞ф╟" 324 GRAPHICMENU="╡ХаЭ"
312 EXITITEM="╫╙н╩" 325 KDEMENUTEXT="KDE╔А╔к╔Е║╪"
313 CONFIGUREMENU="юъдЙ" 326 MISCMENU="╓╓╓М╓╓╓М"
327 MUSICMENU="╡╩Ёз"
328 NETMENU="╔м╔ц╔х╔О║╪╔╞"
314 RELOADITEM="╨ффи╓ъ╧Ч╓ъ" 329 RELOADITEM="╨ффи╓ъ╧Ч╓ъ"
330 RESTARTITEM="╨ф╣╞ф╟"
315 STYLEMENU="╔╧╔©╔╓╔К" 331 STYLEMENU="╔╧╔©╔╓╔К"
316 STYLEMENUTITLE="╔╧╔©╔╓╔Ка╙бР..." 332 STYLEMENUTITLE="╔╧╔©╔╓╔Ка╙бР..."
333 TERMINALMENU="╔©║╪╔ъ╔й╔К"
317 WORKSPACEMENU="╔О║╪╔╞╔╧╔з║╪╔╧" 334 WORKSPACEMENU="╔О║╪╔╞╔╧╔з║╪╔╧"
335 XUTILSMENU="X╔Ф║╪╔ф╔ё╔Й╔ф╔ё"
318 ;; 336 ;;
319 fr_FR) # french locales 337 fr_FR) # french locales
338 #OFFICEMENU="Office"
320 BROWSERMENU="Navigateurs" 339 BROWSERMENU="Navigateurs"
340 CONFIGUREMENU="Configurer"
321 EDITORMENU="Editeurs" 341 EDITORMENU="Editeurs"
322 NETMENU="Net" 342 EXITITEM="Sortir"
323 GRAPHICMENU="Graphisme"
324 MUSICMENU="Musique"
325 TERMINALMENU="Terminaux"
326 MISCMENU="Misc"
327 XUTILSMENU="X-utils"
328 FBSETTINGSMENU="FB-Settings" 343 FBSETTINGSMENU="FB-Settings"
329 KDEMENUTEXT="menus-KDE"
330 GNOMEMENUTEXT="menus-Gnome" 344 GNOMEMENUTEXT="menus-Gnome"
331 RESTARTITEM="RedИmarrer" 345 GRAPHICMENU="Graphisme"
332 EXITITEM="Sortir" 346 KDEMENUTEXT="menus-KDE"
333 CONFIGUREMENU="Configurer" 347 MISCMENU="Misc"
348 MUSICMENU="Musique"
349 NETMENU="Net"
334 RELOADITEM="Recharger config" 350 RELOADITEM="Recharger config"
351 RESTARTITEM="RedИmarrer"
335 STYLEMENU="Styles" 352 STYLEMENU="Styles"
336 STYLEMENUTITLE="Choisir un style..." 353 STYLEMENUTITLE="Choisir un style..."
354 TERMINALMENU="Terminaux"
337 WORKSPACEMENU="Liste des bureaux" 355 WORKSPACEMENU="Liste des bureaux"
356 XUTILSMENU="X-utils"
338 ;; 357 ;;
339 it_IT|it_IT@euro) # italian locales 358 it_IT|it_IT@euro) # italian locales
359 #OFFICEMENU="Office"
340 BROWSERMENU="Browsers" 360 BROWSERMENU="Browsers"
361 CONFIGUREMENU="Configurazione"
341 EDITORMENU="Editori" 362 EDITORMENU="Editori"
342 NETMENU="Internet" 363 EXITITEM="Esci"
364 FBSETTINGSMENU="Preferenze"
365 GAMESMENU="Giochi"
366 GNOMEMENUTEXT="Gnome"
343 GRAPHICMENU="Grafica" 367 GRAPHICMENU="Grafica"
344 MUSICMENU="Musica" 368 KDEMENUTEXT="KDE"
345 TERMINALMENU="Terminali"
346 MISCMENU="Varie" 369 MISCMENU="Varie"
347 XUTILSMENU="X-utils" 370 MUSICMENU="Musica"
348 FBSETTINGSMENU="Preferenze" 371 NETMENU="Internet"
349 KDEMENUTEXT="menu KDE"
350 GNOMEMENUTEXT="menu Gnome"
351 RESTARTITEM="Riavvia"
352 EXITITEM="Esci"
353 CONFIGUREMENU="Configurazione"
354 RELOADITEM="Rileggi la configurazione" 372 RELOADITEM="Rileggi la configurazione"
373 RESTARTITEM="Riavvia"
355 STYLEMENU="Scegli uno stile..." 374 STYLEMENU="Scegli uno stile..."
356 STYLEMENUTITLE="Scegli uno stile..." 375 STYLEMENUTITLE="Scegli uno stile..."
376 TERMINALMENU="Terminali"
357 WORKSPACEMENU="Aree di lavoro" 377 WORKSPACEMENU="Aree di lavoro"
378 XUTILSMENU="X-utils"
358 ;; 379 ;;
359 *) 380 *)
360 ;; 381 ;;
@@ -364,126 +385,94 @@ esac
364 385
365echo "[begin] (${MENUTITLE})" > ${FILENAME} 386echo "[begin] (${MENUTITLE})" > ${FILENAME}
366 387
388
367append "[exec] (${DEFAULT_TERM}) {${DEFAULT_TERM}}" 389append "[exec] (${DEFAULT_TERM}) {${DEFAULT_TERM}}"
368find_it nedit append "[exec] (nedit) {nedit}" 390find_it nedit append "[exec] (nedit) {nedit}"
369 391
370 392
371append_submenu ${BROWSERMENU} 393append_submenu ${TERMINALMENU}
372 find_it netscape append "[exec] (netscape) {netscape}" 394 normal_find xterm gnome-terminal Eterm konsole aterm rxvt
373 find_it opera append "[exec] (opera) {env QT_XFT=true opera}"
374 find_it galeon append "[exec] (galeon) {galeon}"
375 find_it mozilla append "[exec] (mozilla) {mozilla}"
376 find_it konqueror append "[exec] (konqueror) {konqueror}"
377 find_it links append "[exec] (links) {${DEFAULT_TERM} -title links -e links fluxbox.sf.net}"
378 find_it w3m append "[exec] (w3m) {${DEFAULT_TERM} -title w3m -e w3m}"
379 find_it lynx append "[exec] (lynx) {${DEFAULT_TERM} -title lynx -e lynx}"
380 find_it dillo append "[exec] (dillo) {dillo}"
381append_menu_end 395append_menu_end
382 396
397
383append_submenu ${EDITORMENU} 398append_submenu ${EDITORMENU}
384 find_it nedit append "[exec] (nedit) {nedit}" 399 normal_find nedit gvim xemacs emacs gedit xedit kword kwrite kate
385 find_it vim append "[exec] (vim) {vim -g}"
386 find_it xemacs append "[exec] (xemacs) {xemacs}"
387 find_it emacs append "[exec] (emacs) {emacs}"
388 find_it gedit append "[exec] (gedit) {gedit}"
389 find_it xedit append "[exec] (xedit) {xedit}"
390 find_it kword append "[exec] (kword) {kword}"
391 find_it kwrite append "[exec] (kwrite) {kwrite}"
392 find_it kate append "[exec] (kate) {kate}"
393append_menu_end 400append_menu_end
394 401
395append_submenu ${NETMENU}
396 find_it realplay append "[exec] (realplayer) {realplay}"
397 find_it licq append "[exec] (licq) {env QT_XFT=true licq}"
398 find_it gaim append "[exec] (gaim) {gaim}"
399 find_it sylpheed append "[exec] (sylpheed) {sylpheed}"
400 find_it kmail append "[exec] (kmail) {kmail}"
401 find_it gnomemeeting append "[exec] (gnomemeeting) {gnomemeeting}"
402 find_it evolution append "[exec] (evolution) {evolution}"
403 find_it mutt append "[exec] (mutt) {${DEFAULT_TERM} -title mutt -e mutt}"
404
405 find_it gftp append "[exec] (gftp) {gftp}"
406 find_it pan append "[exec] (pan) {pan}"
407 find_it xchat append "[exec] (xchat) {xchat}"
408 find_it irssi append "[exec] (irssi) {${DEFAULT_TERM} -title irssi -e irssi}"
409 find_it BitchX append "[exec] (BitchX) {${DEFAULT_TERM} -title BitchX -e BitchX -N}"
410 find_it bitchx append "[exec] (BitchX) {${DEFAULT_TERM} -title BitchX -e bitchx -N}"
411 find_it ircii append "[exec] (ircii) {${DEFAULT_TERM} -title ircii -e ircii -s}"
412append_menu_end
413 402
414append_submenu ${GRAPHICMENU} 403append_submenu ${BROWSERMENU}
415 find_it gimp append "[exec] (gimp) {gimp}" 404 normal_find netscape galeon mozilla dillo
416 find_it gimp-1.3 append "[exec] (gimp 1.3) {gimp-1.3}" 405 find_it opera append "[exec] (opera) {env QT_XFT=true opera}"
417 find_it xv append "[exec] (xv) {xv}" 406 find_it konqueror append "[exec] (konqueror) {kfmclient openProfile webbrowsing}"
418 find_it gqview append "[exec] (gqview) {gqview}" 407 find_it links append "[exec] (links) {${DEFAULT_TERM} -e links fluxbox.org}"
419 find_it xpaint append "[exec] (xpaint) {xpaint}" 408 find_it w3m append "[exec] (w3m) {${DEFAULT_TERM} -e w3m fluxbox.org}"
420 find_it kpaint append "[exec] (kpaint) {kpaint}" 409 find_it lynx append "[exec] (lynx) {${DEFAULT_TERM} -e lynx fluxbox.org}"
421 find_it kiconedit append "[exec] (kiconedit) {kiconedit}"
422 find_it xscreensaver-demo append "[exec] (xscreensaver-demo) {xscreensaver-demo}"
423append_menu_end 410append_menu_end
424 411
425append_submenu ${MUSICMENU}
426 find_it xmms append "[exec] (xmms) {xmms}"
427 find_it gqmpeg append "[exec] (gqmpeg) {gqmpeg}"
428 find_it xmixer append "[exec] (xmixer) {xmixer}"
429 find_it gmix append "[exec] (gmix) {gmix}"
430 find_it kmix append "[exec] (kmix) {kmix}"
431 find_it grecord append "[exec] (grecord) {grecord}"
432 find_it kmidi append "[exec] (kmidi) {kmidi}"
433 find_it xplaycd append "[exec] (xplaycd) {xplaycd}"
434 find_it soundtracker append "[exec] (soundtracker) {soundtracker}"
435 find_it cplay append "[exec] (cplay) {${DEFAULT_TERM} -title cplay -e /usr/local/bin/cplay}"
436 find_it grip append "[exec] (grip) {grip}"
437append_menu_end
438 412
439append_submenu ${TERMINALMENU} 413append_submenu ${NETMENU}
440 find_it xterm append "[exec] (xterm) {xterm}" 414normal_find realplay gaim sylpheed kmail gnomemeeting evolution gftp pan xchat kopete
441 find_it gnome-terminal append "[exec] (gnome-terminal) {gnome-terminal}" 415 find_it licq append "[exec] (licq) {env QT_XFT=true licq}"
442 find_it Eterm append "[exec] (Eterm) {Eterm}" 416 find_it mutt append "[exec] (mutt) {${DEFAULT_TERM} -e mutt}"
443 find_it konsole append "[exec] (konsole) {konsole}" 417 find_it irssi append "[exec] (irssi) {${DEFAULT_TERM} -e irssi}"
444 find_it aterm append "[exec] (aterm) {aterm}" 418 find_it BitchX append "[exec] (BitchX) {${DEFAULT_TERM} -e BitchX -N}"
445 find_it rxvt append "[exec] (rxvt) {rxvt}" 419 [ $? -ne 0 ] && \
420 find_it bitchx append "[exec] (BitchX) {${DEFAULT_TERM} -e bitchx -N}"
421 find_it ircii append "[exec] (ircii) {${DEFAULT_TERM} -e ircii -s}"
446append_menu_end 422append_menu_end
447 423
448append_submenu ${MISCMENU} 424
449 find_it acroread append "[exec] (acroread) {acroread}" 425append_submenu ${MULTIMEDIAMENU}
450 find_it xpdf append "[exec] (xpdf) {xpdf}" 426 append_submenu ${GRAPHICMENU}
451 find_it xine append "[exec] (xine) {xine}" 427 normal_find gimp xv gqview xpaint kpaint kiconedit xscreensaver-demo
452 find_it aviplay append "[exec] (aviplay) {aviplay}" 428 find_it gears append "[exec] (Mesa gears) {gears}"
453 find_it gtv append "[exec] (gtv) {gtv}" 429 find_it morph3d append "[exec] (Mesa morph) {morph3d}"
454 find_it xmovie append "[exec] (xmovie) {xmovie}" 430 find_it reflect append "[exec] (Mesa reflect) {reflect}"
455 find_it xcdroast append "[exec] (xcdroast) {xcdroast}" 431 append_menu_end
456 find_it gcalc append "[exec] (gcalc) {gcalc}" 432
457 find_it kcalc append "[exec] (kcalc) {kcalc}" 433 append_submenu ${MUSICMENU}
458 find_it kpackage append "[exec] (kpackage) {kpackage}" 434 normal_find xmms gqmpeg xmixer gmix kmix grecord \
459 find_it xgdb append "[exec] (xgdb) {xgdb}" 435 kmidi xplaycd soundtracker grip
460 find_it ddd append "[exec] (ddd) {ddd}" 436 find_it cplay append "[exec] (cplay) {${DEFAULT_TERM} -e cplay}"
461 find_it ${DEFAULT_TERM} append "[exec] (tail access_log) {${DEFAULT_TERM} -title access_log -e tail -f /var/log/access_log}" 437 append_menu_end
438
439 append_submenu ${GAMESMENU}
440 normal_find bzflag gnibbles gnobots2 tuxpuck gataxx glines \
441 gnect mahjongg gnomine gnome-stones gnometris gnotravex \
442 gnotski iagno knights same-gnome xboard freecell pysol \
443 gtali tuxracer xpenguins xsnow xeyes xpenguins
444 append_menu_end
445
446 append_submenu ${MISCMENU}
447 normal_find xine aviplay gtv gmplayer xmovie xcdroast xgdb ddd
448 find_it dvdrip append "[exec] (dvdrip) {nohup dvdrip}"
449 append_menu_end
450
451 append_submenu ${XUTILSMENU}
452 normal_find xfontsel xman xload xfigxbiff editres viewres xclock
453 append_menu_end
462append_menu_end 454append_menu_end
463 455
464 456
465append_submenu ${XUTILSMENU} 457append_submenu ${OFFICEMENU}
466 find_it xpenguins append "[exec] (xpenguins) {xpenguins}" 458 normal_find xclock xcalc kcalc
467 find_it xcalc append "[exec] (xcalc) {xcalc}" 459 find_it gcalc append "[exec] (gcalc) {gcalc}"
468 find_it xfontsel append "[exec] (xfontsel) {xfontsel}" 460 [ $? -ne 0 ] && \
469 find_it xman append "[exec] (xman) {xman}" 461 find_it gnome-calculator append "[exec] (gcalc) {gnome-calculator}"
470 find_it xload append "[exec] (xload) {xload}" 462 find_it ooffice append "[exec] (Open Office) {ooffice}"
471 find_it xfig append "[exec] (xfig) {xfig}" 463 find_it soffice append "[exec] (Star Office) {soffice}"
472 find_it xbiff append "[exec] (xbiff) {xbiff}" 464 normal_find abiword kword wordperfect katoob acroread xpdf
473 find_it editres append "[exec] (editres) {editres}"
474 find_it viewres append "[exec] (viewres) {viewres}"
475 find_it xsnow append "[exec] (xsnow) {xsnow}"
476 find_it xclock append "[exec] (xclock) {xclock}"
477append_menu_end 465append_menu_end
478 466
467
479# gnome menu 468# gnome menu
480if [ -d ${GPKGDATADIR}/gnome/apps -a "${GNOMEMENU}" ]; then 469if [ -d ${GPKGDATADIR}/gnome/apps -a "${GNOMEMENU}" ]; then
481 append_submenu ${GNOMEMENUTEXT} 470 append_submenu ${GNOMEMENUTEXT}
482 for a in `ls ${GPKGDATADIR}/gnome/apps`; do 471 for a in `ls ${GPKGDATADIR}/gnome/apps`; do
483 if [ -d ${GPKGDATADIR}/gnome/apps/"${a}" ] ; then 472 if [ -d ${GPKGDATADIR}/gnome/apps/"${a}" ] ; then
484 append_submenu "${a}" 473 append_submenu "${a}"
485 menu_entry_dir "${GPKGDATADIR}/gnome/apps/"${a}"" 474 menu_entry_dir "${GPKGDATADIR}/gnome/apps/${a}"
486 menu_entry_dircheck "/etc/X11/applnk/"${a}"" 475 menu_entry_dircheck "/etc/X11/applnk/${a}"
487 append_menu_end 476 append_menu_end
488 fi 477 fi
489 done 478 done
@@ -511,28 +500,27 @@ if [ -d ${KPKGDATADIR}/applnk/ -a "${KDEMENU}" ]; then
511 append_menu_end 500 append_menu_end
512fi 501fi
513 502
503 append_submenu ${FBSETTINGSMENU}
504 append "[workspaces] (${WORKSPACEMENU})"
514 505
515append_submenu ${FBSETTINGSMENU} 506 append_menu "[submenu] (${STYLEMENU}) {${STYLEMENUTITLE}}"
516 append "[workspaces] (${WORKSPACEMENU})" 507 append "[stylesdir] (~/.fluxbox/styles)"
517
518 append_menu "[submenu] (${STYLEMENU}) {${STYLEMENUTITLE}}"
519 append "[stylesdir] (~/.fluxbox/styles)"
520 append "[stylesdir] (${PKGDATADIR}/fluxbox/styles)" 508 append "[stylesdir] (${PKGDATADIR}/fluxbox/styles)"
521 append_menu_end 509 append_menu_end
522 510
523 append "[config] (${CONFIGUREMENU})" 511 append "[config] (${CONFIGUREMENU})"
524 append "[reconfig] (${RELOADITEM})" 512 append "[reconfig] (${RELOADITEM})"
525 513
526 find_it fluxconf append "[exec] (Fluxconf) {fluxconf}" 514 find_it fluxconf append "[exec] (Fluxconf) {fluxconf}"
527 515
528 # if gxmessage exitst use it; else use xmessage 516 # if gxmessage exitst use it; else use xmessage
529 find_it gxmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|gxmessage -file - -center}" 517 find_it gxmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|gxmessage -file - -center}"
530 [ $? -ne 0 ] && \ 518 [ $? -ne 0 ] && \
531 find_it xmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|xmessage -file - -center}" 519 find_it xmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|xmessage -file - -center}"
520 append_menu_end
532 521
533append_menu_end
534 522
535 append "[restart] (${RESTARTITEM})" 523append "[restart] (${RESTARTITEM})"
536 append "[exit] (${EXITITEM})" 524append "[exit] (${EXITITEM})"
537 525
538append_menu_end 526append_menu_end