fluxbox/data/generate_menu

233 lines
6.9 KiB
Text
Raw Normal View History

2001-12-11 20:47:02 +00:00
# generate_menu for Fluxbox
# Copyright (c) 2001 Henrik Kinnunen (fluxgen@linuxmail.org)
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#!/bin/sh
FILENAME=menu.in
# Start of menu
echo "[begin] (Fluxbox @VERSION@)" > $FILENAME
if [ -x `which xterm` ]; then
echo " [exec]<5D>(xterm) {xterm -fg white -bg black}" >> $FILENAME
fi
if [ -x `which nedit` ]; then
echo " [exec]<5D>(nedit) {nedit}" >> $FILENAME
fi
echo "[submenu] (Browsers)" >> $FILENAME
if [ -x `which netscape` ]; then
echo " [exec]<5D>(netscape) {netscape}" >> $FILENAME
fi
if [ -x `which opera` ]; then
echo " [exec]<5D>(opera) {opera}" >> $FILENAME
fi
if [ -x `which galeon` ]; then
echo " [exec]<5D>(galeon) {galeon}" >> $FILENAME
fi
if [ -x `which mozilla` ]; then
echo " [exec]<5D>(mozilla) {mozilla}" >> $FILENAME
fi
if [ -x `which konqueror` ]; then
echo " [exec]<5D>(konqueror) {konqueror}" >> $FILENAME
fi
echo "[end]" >> $FILENAME
echo "[submenu] (Editors)" >> $FILENAME
if [ -x `which nedit` ]; then
echo " [exec]<5D>(nedit) {nedit}" >> $FILENAME
fi
if [ -x `which vim` ]; then
echo " [exec]<5D>(vim) {vim -g}" >> $FILENAME
fi
if [ -x `which xemacs` ]; then
echo " [exec]<5D>(xemacs) {xemacs}" >> $FILENAME
fi
if [ -x `which gedit` ]; then
echo " [exec]<5D>(gedit) {gedit}" >> $FILENAME
fi
if [ -x `which xedit` ]; then
echo " [exec]<5D>(xedit) {xedit}" >> $FILENAME
fi
if [ -x `which kword` ]; then
echo " [exec]<5D>(kword) {kword}" >> $FILENAME
fi
echo "[end]" >> $FILENAME
echo "[submenu] (Net)" >> $FILENAME
if [ -x `which realplay` ]; then
echo " [exec]<5D>(realplay) {realplay}" >> $FILENAME
fi
if [ -x `which licq` ]; then
echo " [exec]<5D>(licq) {licq}" >> $FILENAME
fi
if [ -x `which xchat` ]; then
echo " [exec]<5D>(xchat) {xchat}" >> $FILENAME
fi
if [ -x `which sylpheed` ]; then
echo " [exec]<5D>(sylpheed) {sylpheed}" >> $FILENAME
fi
if [ -x `which gftp` ]; then
echo " [exec]<5D>(gftp) {gftp}" >> $FILENAME
fi
if [ -x `which BitchX` ]; then
echo " [exec]<5D>(BitchX) {xterm -title BitchX -fg white -bg black -e BitchX -N}" >> $FILENAME
else
if [ -x `which bitchx` ]; then
echo " [exec]<5D>(BitchX) {xterm -title BitchX -fg white -bg black -e bitchx -N}" >> $FILENAME
fi
fi
if [ -x `which ircii` ]; then
echo " [exec]<5D>(ircii) {xterm -title ircii -fg white -bg black -e ircii -s}" >> $FILENAME
fi
echo "[end]" >> $FILENAME
echo "[submenu] (Graphics)" >> $FILENAME
if [ -x `which gimp` ]; then
echo " [exec]<5D>(gimp) {gimp}" >> $FILENAME
fi
if [ -x `which xv` ]; then
echo " [exec]<5D>(xv) {xv}" >> $FILENAME
fi
if [ -x `which gqview` ]; then
echo " [exec]<5D>(gqview) {gqview}" >> $FILENAME
fi
if [ -x `which xpaint` ]; then
echo " [exec]<5D>(xpaint) {xpaint}" >> $FILENAME
fi
echo "[end]" >> $FILENAME
echo "[submenu] (Music)" >> $FILENAME
if [ -x `which xmms` ]; then
echo " [exec]<5D>(xmms) {xmms}" >> $FILENAME
fi
if [ -x `which gqmpeg` ]; then
echo " [exec]<5D>(gqmpeg) {gqmpeg}" >> $FILENAME
fi
if [ -x `which xmixer` ]; then
echo " [exec]<5D>(xmixer) {xmixer}" >> $FILENAME
fi
if [ -x `which gmix` ]; then
echo " [exec]<5D>(gmix) {gmix}" >> $FILENAME
fi
if [ -x `which xplaycd` ]; then
echo " [exec]<5D>(xplaycd) {xplaycd}" >> $FILENAME
fi
if [ -x `which soundtracker` ]; then
echo " [exec]<5D>(soundtracker) {soundtracker}" >> $FILENAME
fi
echo "[end]" >> $FILENAME
echo "[submenu] (Terminals)" >> $FILENAME
if [ -x `which xterm` ]; then
echo " [exec]<5D>(xterm) {xterm -fg white -bg black}" >> $FILENAME
fi
if [ -x `which gnome-terminal` ]; then
echo " [exec] (gnome-terminal) {gnome-terminal}" >> $FILENAME
fi
if [ -x `which Eterm` ]; then
echo " [exec] (Eterm) {Eterm}" >> $FILENAME
fi
if [ -x `which konsole` ]; then
echo " [exec] (konsole) {konsole}" >> $FILENAME
fi
if [ -x `which aterm` ]; then
echo " [exec] (aterm) {aterm}" >> $FILENAME
fi
if [ -x `which rxvt` ]; then
echo " [exec] (rxvt) {rxvt}" >> $FILENAME
fi
echo "[end]" >> $FILENAME
echo "[submenu] (Misc)" >> $FILENAME
if [ -x `which acroread` ]; then
echo " [exec] (acroread) {acroread}" >> $FILENAME
fi
if [ -x `which gcalc` ]; then
echo " [exec] (gcalc) {gcalc}" >> $FILENAME
fi
if [ -x `which xgdb` ]; then
echo " [exec] (xgdb) {xgdb}" >> $FILENAME
fi
if [ -x `which ddd` ]; then
echo " [exec] (ddd) {ddd}" >> $FILENAME
fi
if [ -x `which xterm` ]; then
echo " [exec]<5D>(tail access_log) {xterm -fg white -bg black -title access_log -e tail -f /var/log/access_log}" >> $FILENAME
fi
echo "[end]" >> $FILENAME
echo "[submenu] (X utils)" >> $FILENAME
if [ -x `which xpenguins` ]; then
echo " [exec] (xpenguins) {xpenguins}" >> $FILENAME
fi
if [ -x `which xcalc` ]; then
echo " [exec] (xcalc) {xcalc}" >> $FILENAME
fi
if [ -x `which xfontsel` ]; then
echo " [exec] (xfontsel) {xfontsel}" >> $FILENAME
fi
if [ -x `which xman` ]; then
echo " [exec] (xman) {xman}" >> $FILENAME
fi
if [ -x `which xload` ]; then
echo " [exec] (xload) {xload}" >> $FILENAME
fi
if [ -x `which xfig` ]; then
echo " [exec] (xfig) {xfig}" >> $FILENAME
fi
if [ -x `which xbiff` ]; then
echo " [exec] (xbiff) {xbiff}" >> $FILENAME
fi
if [ -x `which editres` ]; then
echo " [exec] (editres) {editres}" >> $FILENAME
fi
if [ -x `which viewres` ]; then
echo " [exec] (viewres) {viewres}" >> $FILENAME
fi
if [ -x `which xsnow` ]; then
echo " [exec] (xsnow) {xsnow}" >> $FILENAME
fi
if [ -x `which xclock` ]; then
echo " [exec] (xclock) {xclock}" >> $FILENAME
fi
echo "[end]" >> $FILENAME
echo "[workspaces]<5D>(Workspace List)" >> $FILENAME
echo "[submenu] (Styles) {Choose a style...}" >> $FILENAME
echo "[stylesdir] (@pkgdatadir@/styles)" >> $FILENAME
echo "[end]" >> $FILENAME
echo "[config] (Configuration)" >> $FILENAME
echo "[reconfig] (Reconfigure)" >> $FILENAME
echo "[restart] (Restart)" >> $FILENAME
echo "[exit] (Exit)" >> $FILENAME
echo "[end]" >> $FILENAME