2002-09-07 18:57:35 +00:00
|
|
|
|
#!/bin/sh
|
2002-11-12 19:19:14 +00:00
|
|
|
|
#
|
2002-09-07 18:57:35 +00:00
|
|
|
|
# generate_menu for Fluxbox
|
2002-11-12 19:19:14 +00:00
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2002 Han Boetes <han@mijncomputer.nl>
|
2002-09-07 18:57:35 +00:00
|
|
|
|
#
|
|
|
|
|
# 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,
|
2002-11-19 06:21:45 +00:00
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
2002-09-07 18:57:35 +00:00
|
|
|
|
# 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.
|
2002-11-12 19:19:14 +00:00
|
|
|
|
#
|
2003-01-04 15:22:29 +00:00
|
|
|
|
# $Id: fluxbox-generate_menu,v 1.23 2003/01/04 15:22:29 fluxgen Exp $
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-11-29 13:39:37 +00:00
|
|
|
|
WHOAMI=`whoami`
|
|
|
|
|
[ "$WHOAMI" = "root" ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin
|
2002-10-19 14:34:08 +00:00
|
|
|
|
|
2002-09-07 18:57:35 +00:00
|
|
|
|
# Functions
|
2002-10-19 14:34:08 +00:00
|
|
|
|
display_usage() {
|
|
|
|
|
cat <<EOF
|
2002-12-17 16:42:20 +00:00
|
|
|
|
Usage: fluxbox-generate_menu [-kgrB] [-t terminal] [-w url] [-b browser]
|
2002-12-20 09:02:02 +00:00
|
|
|
|
[-m menu-title] [-p /path] [-n /path] [-q /path] [-o /path] [-u /path]
|
2002-12-17 16:42:20 +00:00
|
|
|
|
EOF
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
display_help() {
|
|
|
|
|
display_usage
|
|
|
|
|
cat <<EOF
|
|
|
|
|
|
2002-10-19 14:34:08 +00:00
|
|
|
|
Options:
|
|
|
|
|
|
2002-11-19 06:21:45 +00:00
|
|
|
|
-k Insert a kde menu
|
|
|
|
|
-g Add a gnome menu
|
2002-12-14 23:58:13 +00:00
|
|
|
|
-B enable backgroundmenu
|
2002-12-20 09:02:02 +00:00
|
|
|
|
-r Don't remove empty menu-entries; for templates.
|
2002-12-14 23:58:13 +00:00
|
|
|
|
|
2002-11-19 06:21:45 +00:00
|
|
|
|
-m Menu-title; default is "Fluxbox"
|
|
|
|
|
-o Outputfile; default is ~/.fluxbox/menu
|
|
|
|
|
-t Favourite terminal
|
|
|
|
|
-b Favourite browser
|
|
|
|
|
-w Homepage for console-browsers. Default is fluxbox.org.
|
2002-12-29 10:37:47 +00:00
|
|
|
|
-u user sub-menu; default is ~/.fluxbox/usermenu
|
2002-12-14 23:58:13 +00:00
|
|
|
|
|
2002-11-19 06:21:45 +00:00
|
|
|
|
-h Display this help
|
|
|
|
|
-a Display the authors of this script
|
|
|
|
|
|
2002-11-12 19:19:14 +00:00
|
|
|
|
Only for packagers:
|
2002-10-22 09:26:45 +00:00
|
|
|
|
|
2002-11-19 06:21:45 +00:00
|
|
|
|
-p Package-datadir; default is /usr/share
|
|
|
|
|
-n Gnome-datadir; default is Package-datadir
|
|
|
|
|
-q KDE-datadir; default is Package-datadir
|
2002-10-19 14:34:08 +00:00
|
|
|
|
|
2002-12-29 10:37:47 +00:00
|
|
|
|
|
|
|
|
|
Files:
|
|
|
|
|
~/.fluxbux/usermenu your own file which can be included in the menu
|
|
|
|
|
~/.fluxbox/menuconfig rc file for fluxbox-generate_menu
|
|
|
|
|
|
2002-10-19 14:34:08 +00:00
|
|
|
|
EOF
|
2002-09-07 18:57:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
2002-10-19 14:34:08 +00:00
|
|
|
|
display_authors() {
|
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
|
|
fluxbox-generate_menu was brought to you by:
|
2002-11-04 11:38:51 +00:00
|
|
|
|
|
2002-11-29 13:39:37 +00:00
|
|
|
|
Henrik Kinnunen: Project leader.
|
2002-11-19 06:21:45 +00:00
|
|
|
|
Han Boetes: Packaging, debugging and scripts.
|
|
|
|
|
Jeramy B. Smith: Packaging assistance, gnome and kde menu system.
|
|
|
|
|
Filippo Pappalardo: Italian locales and -t option.
|
2002-11-29 13:39:37 +00:00
|
|
|
|
Simon Bowden: Cleanups and compatibility for sun.
|
2002-11-19 06:21:45 +00:00
|
|
|
|
$WHOAMI: Innocent bystander.
|
2002-11-04 11:38:51 +00:00
|
|
|
|
|
2002-10-19 14:34:08 +00:00
|
|
|
|
EOF
|
2002-09-07 18:57:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
2002-12-29 10:37:47 +00:00
|
|
|
|
# ugly code for solaris compat.
|
2002-10-19 14:34:08 +00:00
|
|
|
|
find_it() {
|
2002-11-29 13:39:37 +00:00
|
|
|
|
file=`which $1 2> /dev/null`
|
|
|
|
|
if [ -x "$file" ]; then
|
|
|
|
|
if [ $# -gt 1 ]; then
|
|
|
|
|
shift
|
|
|
|
|
$*
|
|
|
|
|
fi
|
|
|
|
|
return 0
|
|
|
|
|
else
|
2002-11-19 06:21:45 +00:00
|
|
|
|
return 1
|
|
|
|
|
fi
|
2002-10-19 08:53:40 +00:00
|
|
|
|
}
|
|
|
|
|
|
2002-09-07 18:57:35 +00:00
|
|
|
|
append() {
|
2002-12-14 23:58:13 +00:00
|
|
|
|
echo " $*" >> ${FILENAME}
|
2002-09-07 18:57:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
append_menu() {
|
2002-10-19 14:34:08 +00:00
|
|
|
|
echo "$*" >> ${FILENAME}
|
2002-09-07 18:57:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
append_submenu() {
|
2002-12-29 10:37:47 +00:00
|
|
|
|
[ "${REMOVE}" ] && echo >> ${FILENAME} # only an empty line in templates
|
2002-10-19 14:34:08 +00:00
|
|
|
|
append_menu "[submenu] ($1)"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
append_menu_end() {
|
2002-10-19 14:34:08 +00:00
|
|
|
|
append_menu "[end]"
|
2002-12-29 10:37:47 +00:00
|
|
|
|
[ "${REMOVE}" ] && echo >> ${FILENAME} # only an empty line in templates
|
2002-09-07 18:57:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
menu_entry() {
|
2002-12-14 08:27:54 +00:00
|
|
|
|
append "[exec] (`grep -v GenericName $* | grep Name= | cut -d = -f 2`) \
|
|
|
|
|
{`grep -v TryExec $* | grep Exec= | cut -d = -f 2`}"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
menu_entry_dircheck() {
|
2002-10-19 14:34:08 +00:00
|
|
|
|
if [ -d "$*" ]; then
|
2002-11-19 06:21:45 +00:00
|
|
|
|
menu_entry_dir "$*"
|
2002-10-19 14:34:08 +00:00
|
|
|
|
fi
|
2002-09-07 18:57:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
menu_entry_dir() {
|
2002-10-19 14:34:08 +00:00
|
|
|
|
for b in `ls "$*"/*.desktop 2>/dev/null `; do
|
2002-11-19 06:21:45 +00:00
|
|
|
|
menu_entry "${b}"
|
2002-10-19 14:34:08 +00:00
|
|
|
|
done
|
2002-09-07 18:57:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
2002-11-04 11:38:51 +00:00
|
|
|
|
normal_find() {
|
2002-11-19 06:21:45 +00:00
|
|
|
|
while [ "$1" ]; do
|
|
|
|
|
find_it $1 append "[exec] ($1) {$1}"
|
|
|
|
|
shift
|
2002-11-04 11:38:51 +00:00
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
2002-11-12 19:19:14 +00:00
|
|
|
|
clean_up() {
|
|
|
|
|
# -e "/^$/d" -e "/^$/d"
|
|
|
|
|
cat ${FILENAME} | sed -e "/^\[submenu]/{
|
|
|
|
|
N
|
|
|
|
|
/^\[submenu].*\n\[end]/d
|
|
|
|
|
}" > ${FILENAME}.tmp
|
|
|
|
|
mv -f ${FILENAME}.tmp ${FILENAME}
|
|
|
|
|
}
|
2002-11-04 11:38:51 +00:00
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
# Set Defaults
|
|
|
|
|
FILENAME="${HOME}/.fluxbox/menu"
|
|
|
|
|
MENUTITLE="Fluxbox"
|
|
|
|
|
HOMEPAGE="fluxbox.org"
|
|
|
|
|
USERMENU="${HOME}/.fluxbox/usermenu"
|
|
|
|
|
|
2002-12-29 10:37:47 +00:00
|
|
|
|
# Read the menuconfig file if it exists or else create it.
|
|
|
|
|
if [ -e ${HOME}/.fluxbox/menuconfig ];then
|
|
|
|
|
. ${HOME}/.fluxbox/menuconfig
|
|
|
|
|
else
|
|
|
|
|
if [ ! "$WHOAMI" = root ];then # this is only for users.
|
|
|
|
|
cat<<EOF> ${HOME}/.fluxbox/menuconfig
|
|
|
|
|
# This file is read by fluxbox-generate_menu. If you don't like a
|
|
|
|
|
# default you can change it here. Don't forget to remove the # in front
|
|
|
|
|
# of the line.
|
|
|
|
|
|
|
|
|
|
# Your favourite terminal
|
|
|
|
|
# MY_TERM=aterm
|
|
|
|
|
|
|
|
|
|
# Your favourite browser
|
|
|
|
|
# MY_BROWSER=mozilla
|
|
|
|
|
|
|
|
|
|
# Name of the outputfile
|
|
|
|
|
# FILENAME=${HOME}/.fluxbox/menu
|
|
|
|
|
|
|
|
|
|
# Data-dir
|
|
|
|
|
# PKGDATADIR=/usr/share
|
|
|
|
|
|
|
|
|
|
# Gnome data-dir
|
|
|
|
|
# in case gnome is installed in another datadir.
|
|
|
|
|
# GPKGDATADIR=/opt/gnome/share
|
|
|
|
|
|
|
|
|
|
# Kde data-dir
|
|
|
|
|
# KPKGDATADIR=/opt/kde/share
|
|
|
|
|
|
2003-01-04 15:22:29 +00:00
|
|
|
|
# MENUTITLE=\`fluxbox -version|cut -d " " -f-2\`
|
2002-12-29 10:37:47 +00:00
|
|
|
|
|
|
|
|
|
# standard url for console-browsers
|
|
|
|
|
# HOMEPAGE=fluxbox.org
|
|
|
|
|
|
|
|
|
|
# location with your own menu-entries
|
|
|
|
|
# USERMENU=~/.fluxbox/usermenu
|
|
|
|
|
|
|
|
|
|
# Boolean variables.
|
|
|
|
|
# Setting a variable to no won't help. Comment them out if you don't want them.
|
|
|
|
|
# Setting are overruled by the command-line options.
|
|
|
|
|
|
|
|
|
|
# Include all backgrounds in your backgrounds-directory
|
|
|
|
|
# BACKGROUNDMENUITEM=yes
|
|
|
|
|
|
|
|
|
|
# Include kde-menus
|
|
|
|
|
# KDEMENU=yes
|
|
|
|
|
|
|
|
|
|
# Include gnome-menus
|
|
|
|
|
# GNOMEMENU=yes
|
|
|
|
|
|
|
|
|
|
# Don't cleanup the menu
|
|
|
|
|
# REMOVE=no
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
2002-09-07 18:57:35 +00:00
|
|
|
|
# Get options.
|
2002-12-20 09:02:02 +00:00
|
|
|
|
while getopts ":Bkhragb:t:p:w:u:n:q:o:m:" COMMAND_LINE_ARGUMENT ; do
|
2002-11-19 06:21:45 +00:00
|
|
|
|
case "${COMMAND_LINE_ARGUMENT}" in
|
2002-12-20 09:02:02 +00:00
|
|
|
|
B) BACKGROUNDMENUITEM=yes ;;
|
|
|
|
|
k) KDEMENU=yes ;;
|
|
|
|
|
g) GNOMEMENU=yes ;;
|
|
|
|
|
t) MY_TERM=${OPTARG} ;;
|
|
|
|
|
b) MY_BROWSER=${OPTARG} ;;
|
|
|
|
|
o) FILENAME=${OPTARG} ;;
|
|
|
|
|
p) PKGDATADIR=${OPTARG} ;;
|
|
|
|
|
n) GPKGDATADIR=${OPTARG} ;;
|
|
|
|
|
q) KPKGDATADIR=${OPTARG} ;;
|
|
|
|
|
m) MENUTITLE=${OPTARG} ;;
|
|
|
|
|
w) HOMEPAGE=${OPTARG} ;;
|
|
|
|
|
u) USERMENU=${OPTARG} ;;
|
|
|
|
|
r) REMOVE=no ;;
|
|
|
|
|
h) display_help ; exit 0 ;;
|
|
|
|
|
a) display_authors ; exit 0 ;;
|
|
|
|
|
*) display_usage ; exit 1 ;;
|
2002-11-19 06:21:45 +00:00
|
|
|
|
esac
|
2002-09-07 18:57:35 +00:00
|
|
|
|
done
|
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
# Check defaults
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-10-22 09:26:45 +00:00
|
|
|
|
# Can we actually create ${FILENAME}
|
2002-11-19 06:21:45 +00:00
|
|
|
|
touch ${FILENAME} 2> /dev/null
|
|
|
|
|
if [ $? -ne 0 ] ; then
|
|
|
|
|
echo "Fatal error: can't create $FILENAME" >&2
|
2002-10-22 09:26:45 +00:00
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2002-10-24 09:33:42 +00:00
|
|
|
|
# backup menu
|
2002-11-19 06:21:45 +00:00
|
|
|
|
if [ -w "${FILENAME}" ]; then
|
2002-11-12 19:19:14 +00:00
|
|
|
|
if [ -f ${FILENAME}.firstbak ];then
|
2002-11-19 06:21:45 +00:00
|
|
|
|
cp ${FILENAME} ${FILENAME}.firstbak
|
2002-11-12 19:19:14 +00:00
|
|
|
|
fi
|
2002-10-24 09:33:42 +00:00
|
|
|
|
mv ${FILENAME} ${FILENAME}.bak
|
2002-09-07 18:57:35 +00:00
|
|
|
|
fi
|
|
|
|
|
|
2002-12-29 10:37:47 +00:00
|
|
|
|
# packagedatadir
|
2002-11-17 17:36:50 +00:00
|
|
|
|
if [ ! -d "${PKGDATADIR}" -o "${PKGDATADIR}" = "" ]; then
|
2002-11-19 06:21:45 +00:00
|
|
|
|
if [ "`uname`" = "Linux" ];then
|
|
|
|
|
PKGDATADIR=/usr/share
|
2002-11-12 19:19:14 +00:00
|
|
|
|
else
|
2002-11-19 06:21:45 +00:00
|
|
|
|
PKGDATADIR=/usr/local/share
|
2002-11-12 19:19:14 +00:00
|
|
|
|
fi
|
2002-09-07 18:57:35 +00:00
|
|
|
|
fi
|
|
|
|
|
|
2002-12-29 10:37:47 +00:00
|
|
|
|
# gnome packagedatadir
|
2002-11-17 17:36:50 +00:00
|
|
|
|
if [ ! -d "${GPKGDATADIR}" -o "${GPKGDATADIR}" = "" ]; then
|
2002-10-24 09:33:42 +00:00
|
|
|
|
GPKGDATADIR=${PKGDATADIR}
|
|
|
|
|
fi
|
|
|
|
|
|
2002-12-29 10:37:47 +00:00
|
|
|
|
# kde packagedatadir
|
2002-11-17 17:36:50 +00:00
|
|
|
|
if [ ! -d "${KPKGDATADIR}" -o "${KPKGDATADIR}" = "" ]; then
|
2002-10-24 09:33:42 +00:00
|
|
|
|
KPKGDATADIR=${PKGDATADIR}
|
|
|
|
|
fi
|
|
|
|
|
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-10-19 14:34:08 +00:00
|
|
|
|
# find the default terminal
|
|
|
|
|
find_it $MY_TERM
|
|
|
|
|
if [ $? -ne 0 ];then
|
2002-11-19 06:21:45 +00:00
|
|
|
|
[ -n "$MY_TERM" ] && echo "Warning: you choose an invalid term." >&2
|
2002-10-19 14:34:08 +00:00
|
|
|
|
#The precise order is up for debate.
|
|
|
|
|
for term in Eterm aterm rxvt wterm xterm konsole gnome-terminal; do
|
2002-11-19 06:21:45 +00:00
|
|
|
|
if find_it $term; then
|
|
|
|
|
DEFAULT_TERM=$term
|
|
|
|
|
break
|
|
|
|
|
fi
|
2002-10-19 14:34:08 +00:00
|
|
|
|
done
|
2002-10-19 08:53:40 +00:00
|
|
|
|
else
|
2002-10-19 14:34:08 +00:00
|
|
|
|
DEFAULT_TERM=$MY_TERM
|
2002-10-19 08:53:40 +00:00
|
|
|
|
fi
|
|
|
|
|
|
2002-10-19 14:34:08 +00:00
|
|
|
|
|
2002-11-12 19:19:14 +00:00
|
|
|
|
# find the default browser
|
|
|
|
|
find_it $MY_BROWSER
|
|
|
|
|
if [ $? -ne 0 ];then
|
2002-11-19 06:21:45 +00:00
|
|
|
|
[ -n "$MY_BROWSER" ] && echo "Warning: you choose an invalid browser." >&2
|
2002-11-12 19:19:14 +00:00
|
|
|
|
#The precise order is up for debate.
|
2002-12-29 10:37:47 +00:00
|
|
|
|
for browser in opera skipstone phoenix mozilla galeon konqueror dillo netscape links w3m lynx; do
|
2002-11-19 06:21:45 +00:00
|
|
|
|
if find_it $browser; then
|
|
|
|
|
DEFAULT_BROWSER=$browser
|
|
|
|
|
break
|
|
|
|
|
fi
|
2002-11-12 19:19:14 +00:00
|
|
|
|
done
|
|
|
|
|
else
|
|
|
|
|
DEFAULT_BROWSER=$MY_BROWSER
|
|
|
|
|
fi
|
|
|
|
|
|
2002-10-19 14:34:08 +00:00
|
|
|
|
|
|
|
|
|
# a unix system without any terms. that's odd
|
|
|
|
|
if [ -z "$DEFAULT_TERM" ];then
|
2002-11-19 06:21:45 +00:00
|
|
|
|
cat <<EOF>&2
|
2002-12-14 08:27:54 +00:00
|
|
|
|
Warning: I can't find any terminal-emulators in your PATH.
|
|
|
|
|
Please fix your PATH or specify your favourite terminal with the -t option
|
2002-10-19 14:34:08 +00:00
|
|
|
|
EOF
|
|
|
|
|
fi
|
|
|
|
|
|
2002-09-07 18:57:35 +00:00
|
|
|
|
# menu defaults (if translation forget to set one of them)
|
2002-12-14 23:58:13 +00:00
|
|
|
|
BACKGROUNDMENU="Backgrounds"
|
|
|
|
|
BACKGROUNDMENUTITLE="Set the Background"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
BROWSERMENU="Browsers"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
CONFIGUREMENU="Configure"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
EDITORMENU="Editors"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
EXITITEM="Exit"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
FBSETTINGSMENU="fluxbox menu"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
GAMESMENU="Games"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
GNOMEMENUTEXT="Gnome-menus"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
GRAPHICMENU="Graphics"
|
|
|
|
|
KDEMENUTEXT="KDE-menus"
|
|
|
|
|
MISCMENU="Misc"
|
|
|
|
|
MULTIMEDIAMENU="Multimedia"
|
|
|
|
|
MUSICMENU="Music"
|
|
|
|
|
NETMENU="Net"
|
|
|
|
|
OFFICEMENU="Office"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
RELOADITEM="Reload config"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
RESTARTITEM="Restart"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
STYLEMENUTITLE="Choose a style..."
|
2002-12-20 09:02:02 +00:00
|
|
|
|
SYSTEMSTYLES="System Styles"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
TERMINALMENU="Terminals"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
USERSTYLES="User Styles"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
WORKSPACEMENU="Workspace List"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
XUTILSMENU="X-utils"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
|
|
|
|
# Check translation
|
|
|
|
|
case ${LC_ALL} in
|
2002-12-14 08:27:54 +00:00
|
|
|
|
ru_RU*) #Russian locales
|
2002-12-14 23:58:13 +00:00
|
|
|
|
#BACKGROUNDMENU="Backgrounds"
|
|
|
|
|
#BACKGROUNDMENUTITLE="Set the Background"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
#OFFICEMENU="Office"
|
|
|
|
|
#SYSTEMSTYLES="<22><><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
#USERSTYLES="<22><><EFBFBD><EFBFBD><EFBFBD>"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
BROWSERMENU="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
CONFIGUREMENU="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
EDITORMENU="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
EXITITEM="<22><><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
FBSETTINGSMENU="FB-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
GNOMEMENUTEXT="Gnome-<2D><><EFBFBD><EFBFBD>"
|
|
|
|
|
GRAPHICMENU="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
KDEMENUTEXT="KDE-<2D><><EFBFBD><EFBFBD>"
|
|
|
|
|
MISCMENU="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
MUSICMENU="<22><><EFBFBD><EFBFBD>"
|
|
|
|
|
NETMENU="<22><><EFBFBD><EFBFBD>"
|
|
|
|
|
RELOADITEM="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
RESTARTITEM="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
STYLEMENUTITLE="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
TERMINALMENU="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
WORKSPACEMENU="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
XUTILSMENU="X-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
;;
|
2002-12-16 11:34:06 +00:00
|
|
|
|
de_DE*) # german locales
|
2002-12-20 09:02:02 +00:00
|
|
|
|
#BACKGROUNDMENU="Backgrounds"
|
|
|
|
|
#BACKGROUNDMENUTITLE="Set the Background"
|
|
|
|
|
#OFFICEMENU="Bueroprogramme"
|
|
|
|
|
#SYSTEMSTYLES="Stile"
|
|
|
|
|
#USERSTYLES="Stile"
|
|
|
|
|
BROWSERMENU="Internet-Browser"
|
|
|
|
|
CONFIGUREMENU="Einstellungen"
|
|
|
|
|
EDITORMENU="Editoren"
|
|
|
|
|
EXITITEM="Beenden"
|
|
|
|
|
FBSETTINGSMENU="Fluxbox-Einstellungen"
|
|
|
|
|
GNOMEMENUTEXT="Gnome-Menues"
|
|
|
|
|
GRAPHICMENU="Grafik"
|
|
|
|
|
KDEMENUTEXT="Kde-Menues"
|
|
|
|
|
MISCMENU="Sonstiges"
|
|
|
|
|
MUSICMENU="Musik"
|
|
|
|
|
NETMENU="Netzwerk"
|
|
|
|
|
RELOADITEM="Konfiguration neu laden"
|
|
|
|
|
RESTARTITEM="Neustarten"
|
|
|
|
|
STYLEMENUTITLE="Einen Stil auswaehlen..."
|
|
|
|
|
TERMINALMENU="Terminals"
|
|
|
|
|
WORKSPACEMENU="Arbeitsflaechenliste"
|
|
|
|
|
XUTILSMENU="X-Anwendungen"
|
|
|
|
|
;;
|
2002-12-14 08:27:54 +00:00
|
|
|
|
sv_SE*) #Swedish locales
|
2002-12-14 23:58:13 +00:00
|
|
|
|
#BACKGROUNDMENU="Backgrounds"
|
|
|
|
|
#BACKGROUNDMENUTITLE="Set the Background"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
#OFFICEMENU="Office"
|
|
|
|
|
#SYSTEMSTYLES="Stiler"
|
|
|
|
|
#USERSTYLES="Stiler"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
BROWSERMENU="Browsers"
|
|
|
|
|
CONFIGUREMENU="Konfiguration"
|
|
|
|
|
EDITORMENU="Editorer"
|
|
|
|
|
EXITITEM="Exit"
|
|
|
|
|
FBSETTINGSMENU="FB-inst<73>llningar"
|
|
|
|
|
GNOMEMENUTEXT="Gnome-menyer"
|
|
|
|
|
GRAPHICMENU="Grafik"
|
|
|
|
|
KDEMENUTEXT="KDE-menyer"
|
|
|
|
|
MISCMENU="Blandat"
|
|
|
|
|
MUSICMENU="Musik"
|
|
|
|
|
NETMENU="Net"
|
|
|
|
|
RELOADITEM="Ladda om konfig"
|
|
|
|
|
RESTARTITEM="Starta om"
|
|
|
|
|
STYLEMENUTITLE="V<>lj en stil"
|
|
|
|
|
TERMINALMENU="Terminaler"
|
|
|
|
|
WORKSPACEMENU="Arbetsytor"
|
|
|
|
|
XUTILSMENU="X-program"
|
|
|
|
|
;;
|
2002-12-14 08:27:54 +00:00
|
|
|
|
nl_NL*) #Nederlandse locales
|
2002-12-20 09:02:02 +00:00
|
|
|
|
BACKGROUNDMENU="Achtergrond"
|
|
|
|
|
BACKGROUNDMENUTITLE="Kies een achtergrond"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
BROWSERMENU="Browsers"
|
|
|
|
|
CONFIGUREMENU="Instellingen"
|
|
|
|
|
EDITORMENU="Editors"
|
|
|
|
|
EXITITEM="Afsluiten"
|
|
|
|
|
FBSETTINGSMENU="FB-Instellingen"
|
|
|
|
|
GNOMEMENUTEXT="Gnome-menu"
|
|
|
|
|
GRAPHICMENU="Grafisch"
|
|
|
|
|
KDEMENUTEXT="KDE-menu"
|
|
|
|
|
MISCMENU="Onregelmatig"
|
|
|
|
|
MUSICMENU="Muziek"
|
|
|
|
|
NETMENU="Net"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
OFFICEMENU="Office"
|
2002-12-14 23:58:13 +00:00
|
|
|
|
RELOADITEM="Vernieuw instellingen"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
RESTARTITEM="Restart"
|
2002-12-14 23:58:13 +00:00
|
|
|
|
STYLEMENUTITLE="Kies een styl"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
SYSTEMSTYLES="Systeem Stylen"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
TERMINALMENU="Terminals"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
USERSTYLES="Gebruikers Stylen"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
WORKSPACEMENU="Werkveld Lijst"
|
|
|
|
|
XUTILSMENU="X-utils"
|
|
|
|
|
;;
|
2002-12-14 08:27:54 +00:00
|
|
|
|
fi_FI*) #Finnish locales
|
2002-12-14 23:58:13 +00:00
|
|
|
|
#BACKGROUNDMENU="Backgrounds"
|
|
|
|
|
#BACKGROUNDMENUTITLE="Set the Background"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
#OFFICEMENU="Office"
|
|
|
|
|
#SYSTEMSTYLES="Tyylit"
|
|
|
|
|
#USERSTYLES="Tyylit"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
BROWSERMENU="Selaimet"
|
|
|
|
|
CONFIGUREMENU="Konfigurointi"
|
|
|
|
|
EDITORMENU="Editorit"
|
|
|
|
|
EXITITEM="Lopeta"
|
|
|
|
|
FBSETTINGSMENU="FB:n Asetukset"
|
|
|
|
|
GNOMEMENUTEXT="Gnomen valikot"
|
|
|
|
|
GRAPHICMENU="Grafiikka"
|
|
|
|
|
KDEMENUTEXT="KDE:n valikot"
|
|
|
|
|
MISCMENU="Sekalaista"
|
|
|
|
|
MUSICMENU="Musikki"
|
|
|
|
|
NETMENU="Verkko"
|
|
|
|
|
RELOADITEM="P<>ivit<69>"
|
|
|
|
|
RESTARTITEM="K<>ynnist<73> uudelleen"
|
|
|
|
|
STYLEMENUTITLE="Valitse tyyli"
|
|
|
|
|
TERMINALMENU="Terminaalit"
|
|
|
|
|
WORKSPACEMENU="Ty<54>aluet"
|
|
|
|
|
XUTILSMENU="X-Ohjelmat"
|
|
|
|
|
;;
|
2002-12-14 08:27:54 +00:00
|
|
|
|
ja_JP*) #Japanese locales
|
2002-12-14 23:58:13 +00:00
|
|
|
|
#BACKGROUNDMENU="Backgrounds"
|
|
|
|
|
#BACKGROUNDMENUTITLE="Set the Background"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
#OFFICEMENU="Office"
|
|
|
|
|
#SYSTEMSTYLES="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
#USERSTYLES="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
BROWSERMENU="<22>֥饦<D6A5><E9A5A6>"
|
|
|
|
|
CONFIGUREMENU="<22><><EFBFBD><EFBFBD>"
|
|
|
|
|
EDITORMENU="<22><><EFBFBD>ǥ<EFBFBD><C7A5><EFBFBD>"
|
|
|
|
|
EXITITEM="<22><>λ"
|
|
|
|
|
FBSETTINGSMENU="Fluxbox<6F><78><EFBFBD><EFBFBD>"
|
|
|
|
|
GNOMEMENUTEXT="Gnome<6D><65><EFBFBD>˥塼"
|
|
|
|
|
GRAPHICMENU="<22><><EFBFBD><EFBFBD>"
|
|
|
|
|
KDEMENUTEXT="KDE<44><45><EFBFBD>˥塼"
|
|
|
|
|
MISCMENU="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|
|
|
|
MUSICMENU="<22><><EFBFBD><EFBFBD>"
|
|
|
|
|
NETMENU="<22>ͥåȥ<C8A5><EFA1BC>"
|
|
|
|
|
RELOADITEM="<22><><EFBFBD>ɤ߹<C9A4><DFB9><EFBFBD>"
|
|
|
|
|
RESTARTITEM="<22>Ƶ<EFBFBD>ư"
|
|
|
|
|
STYLEMENUTITLE="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>..."
|
|
|
|
|
TERMINALMENU="<22><><EFBFBD><EFBFBD><EFBFBD>ߥʥ<DFA5>"
|
|
|
|
|
WORKSPACEMENU="<22><EFBFBD><EFA1BC><EFBFBD><EFBFBD><EFBFBD>ڡ<EFBFBD><DAA1><EFBFBD>"
|
|
|
|
|
XUTILSMENU="X<>桼<EFBFBD>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD>ƥ<EFBFBD>"
|
|
|
|
|
;;
|
2002-12-14 08:27:54 +00:00
|
|
|
|
fr_FR*) # french locales
|
2002-12-14 23:58:13 +00:00
|
|
|
|
#BACKGROUNDMENU="Backgrounds"
|
|
|
|
|
#BACKGROUNDMENUTITLE="Set the Background"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
#OFFICEMENU="Office"
|
|
|
|
|
#SYSTEMSTYLES="Styles de la Systeme"
|
|
|
|
|
#USERSTYLES="Styles de la "
|
2002-11-19 06:21:45 +00:00
|
|
|
|
BROWSERMENU="Navigateurs"
|
|
|
|
|
CONFIGUREMENU="Configurer"
|
|
|
|
|
EDITORMENU="Editeurs"
|
|
|
|
|
EXITITEM="Sortir"
|
|
|
|
|
FBSETTINGSMENU="FB-Settings"
|
|
|
|
|
GNOMEMENUTEXT="menus-Gnome"
|
|
|
|
|
GRAPHICMENU="Graphisme"
|
|
|
|
|
KDEMENUTEXT="menus-KDE"
|
|
|
|
|
MISCMENU="Misc"
|
|
|
|
|
MUSICMENU="Musique"
|
|
|
|
|
NETMENU="Net"
|
|
|
|
|
RELOADITEM="Recharger config"
|
|
|
|
|
RESTARTITEM="Red<65>marrer"
|
|
|
|
|
STYLEMENUTITLE="Choisir un style..."
|
|
|
|
|
TERMINALMENU="Terminaux"
|
|
|
|
|
WORKSPACEMENU="Liste des bureaux"
|
|
|
|
|
XUTILSMENU="X-utils"
|
|
|
|
|
;;
|
2002-12-14 08:27:54 +00:00
|
|
|
|
it_IT*) # italian locales
|
2002-12-14 23:58:13 +00:00
|
|
|
|
#BACKGROUNDMENU="Backgrounds"
|
|
|
|
|
#BACKGROUNDMENUTITLE="Set the Background"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
#OFFICEMENU="Office"
|
|
|
|
|
#SYSTEMSTYLES="Stile"
|
|
|
|
|
#USERSTYLES="Stile"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
BROWSERMENU="Browsers"
|
|
|
|
|
CONFIGUREMENU="Configurazione"
|
|
|
|
|
EDITORMENU="Editori"
|
|
|
|
|
EXITITEM="Esci"
|
|
|
|
|
FBSETTINGSMENU="Preferenze"
|
|
|
|
|
GAMESMENU="Giochi"
|
|
|
|
|
GNOMEMENUTEXT="Gnome"
|
|
|
|
|
GRAPHICMENU="Grafica"
|
|
|
|
|
KDEMENUTEXT="KDE"
|
|
|
|
|
MISCMENU="Varie"
|
|
|
|
|
MUSICMENU="Musica"
|
|
|
|
|
NETMENU="Internet"
|
|
|
|
|
RELOADITEM="Rileggi la configurazione"
|
|
|
|
|
RESTARTITEM="Riavvia"
|
2002-12-16 11:10:44 +00:00
|
|
|
|
STYLEMENUTITLE="Scegli uno stile"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
TERMINALMENU="Terminali"
|
|
|
|
|
WORKSPACEMENU="Aree di lavoro"
|
|
|
|
|
XUTILSMENU="X-utils"
|
|
|
|
|
;;
|
2002-12-29 10:37:47 +00:00
|
|
|
|
ro_RO*) # Romanian locales
|
|
|
|
|
#OFFICEMENU="Office"
|
|
|
|
|
#RESTARTITEM="Restart"
|
|
|
|
|
BACKGROUNDMENU="Fundaluri"
|
|
|
|
|
BACKGROUNDMENUTITLE="Alege fundalul"
|
|
|
|
|
BROWSERMENU="Navigatoare"
|
|
|
|
|
CONFIGUREMENU="Configurare"
|
|
|
|
|
EDITORMENU="Editoare"
|
|
|
|
|
EXITITEM="Iesire"
|
|
|
|
|
FBSETTINGSMENU="Meniul Fluxbox"
|
|
|
|
|
GAMESMENU="Jocuri"
|
|
|
|
|
GNOMEMENUTEXT="Meniu Gnome"
|
|
|
|
|
GRAPHICMENU="Grafica"
|
|
|
|
|
KDEMENUTEXT="Meniu KDE"
|
|
|
|
|
MISCMENU="Diverse"
|
|
|
|
|
MULTIMEDIAMENU="Multimedia"
|
|
|
|
|
MUSICMENU="Muzica"
|
|
|
|
|
NETMENU="Net"
|
|
|
|
|
RELOADITEM="Reincarca configuratia"
|
|
|
|
|
STYLEMENUTITLE="Alege un stil..."
|
|
|
|
|
SYSTEMSTYLES="Stiluri sistem"
|
|
|
|
|
TERMINALMENU="Terminale"
|
|
|
|
|
USERSTYLES="Stiluri utilizator"
|
|
|
|
|
WORKSPACEMENU="Lista workspace-uri"
|
|
|
|
|
XUTILSMENU="Utilitare X"
|
|
|
|
|
;;
|
2003-01-04 15:22:29 +00:00
|
|
|
|
es_ES*) # spanish locales
|
|
|
|
|
BACKGROUNDMENU="Fondos"
|
|
|
|
|
BACKGROUNDMENUTITLE="Seleccionar Fondo"
|
|
|
|
|
BROWSERMENU="Navegadores"
|
|
|
|
|
CONFIGUREMENU="Configurar"
|
|
|
|
|
EDITORMENU="Editores"
|
|
|
|
|
EXITITEM="Salir"
|
|
|
|
|
FBSETTINGSMENU="Men<65> fluxbox"
|
|
|
|
|
GAMESMENU="Juegos"
|
|
|
|
|
GNOMEMENUTEXT="Men<65>s Gnome"
|
|
|
|
|
GRAPHICMENU="Gr<47>ficos"
|
|
|
|
|
KDEMENUTEXT="Men<65>s KDE"
|
|
|
|
|
MISCMENU="Varios"
|
|
|
|
|
MULTIMEDIAMENU="Multimedia"
|
|
|
|
|
MUSICMENU="M<>sica"
|
|
|
|
|
NETMENU="Red"
|
|
|
|
|
OFFICEMENU="Oficina"
|
|
|
|
|
RELOADITEM="Reconfigurar"
|
|
|
|
|
RESTARTITEM="Reiniciar"
|
|
|
|
|
STYLEMENUTITLE="Escoge un Estilo..."
|
|
|
|
|
SYSTEMSTYLES="Estilos del Sistema"
|
|
|
|
|
TERMINALMENU="Terminales"
|
|
|
|
|
USERSTYLES="Estilos del Usuario"
|
|
|
|
|
WORKSPACEMENU="Lista de Escritorios"
|
|
|
|
|
XUTILSMENU="Utilidades X"
|
|
|
|
|
;;
|
2002-11-19 06:21:45 +00:00
|
|
|
|
*)
|
|
|
|
|
;;
|
2002-09-07 18:57:35 +00:00
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
# Start of menu
|
2002-12-17 16:42:20 +00:00
|
|
|
|
cat << EOF > ${FILENAME}
|
|
|
|
|
# Generated by fluxbox-genereate_menu
|
|
|
|
|
#
|
2002-12-20 09:02:02 +00:00
|
|
|
|
# If you read this it means you want to edit this file manualy, so here
|
|
|
|
|
# are some usefull tips:
|
|
|
|
|
#
|
|
|
|
|
# - You can add your own menu-entries to ~/.fluxbox/usermenu and will be
|
|
|
|
|
# included
|
|
|
|
|
#
|
|
|
|
|
# - If you miss apps please let me know and I will add them for the next
|
|
|
|
|
# release.
|
2002-12-17 16:42:20 +00:00
|
|
|
|
#
|
|
|
|
|
# - The -r option prevents removing of empty menu entries and makes
|
|
|
|
|
# thing much more readable.
|
|
|
|
|
#
|
|
|
|
|
# - To prevent any other app from overwriting your menu
|
|
|
|
|
# you can change the menu name in .fluxbox/init to:
|
2002-12-20 09:02:02 +00:00
|
|
|
|
# session.menuFile: /home/you/.fluxbox/my-menu
|
2002-12-17 16:42:20 +00:00
|
|
|
|
|
|
|
|
|
EOF
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-12-17 16:42:20 +00:00
|
|
|
|
echo "[begin] (${MENUTITLE})" >> ${FILENAME}
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-11-04 11:38:51 +00:00
|
|
|
|
|
2002-11-19 06:21:45 +00:00
|
|
|
|
append "[exec] (${DEFAULT_TERM}) {${DEFAULT_TERM}}"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-11-12 19:19:14 +00:00
|
|
|
|
case "$DEFAULT_BROWSER" in
|
2002-11-19 06:21:45 +00:00
|
|
|
|
links|w3m|lynx) append "[exec] (${DEFAULT_BROWSER}) {${DEFAULT_TERM} -e ${DEFAULT_BROWSER} ${HOMEPAGE}}" ;;
|
2002-11-12 19:19:14 +00:00
|
|
|
|
mozilla|phoenix|galeon|dillo|netscape) append "[exec] (${DEFAULT_BROWSER}) {${DEFAULT_BROWSER}}" ;;
|
|
|
|
|
konqueror) append "[exec] (konqueror) {kfmclient openProfile webbrowsing}" ;;
|
|
|
|
|
opera) append "[exec] (opera) {env QT_XFT=true opera}" ;;
|
|
|
|
|
esac
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-11-19 06:21:45 +00:00
|
|
|
|
find_it fbrun append "[exec] (Run) {fbrun}"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-11-04 11:38:51 +00:00
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${TERMINALMENU}"
|
2002-11-12 19:19:14 +00:00
|
|
|
|
normal_find xterm gnome-terminal Eterm konsole aterm rxvt
|
2002-09-07 18:57:35 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${NETMENU}"
|
|
|
|
|
append_submenu "${BROWSERMENU}"
|
2002-11-12 19:19:14 +00:00
|
|
|
|
normal_find netscape galeon mozilla dillo
|
2002-11-19 06:21:45 +00:00
|
|
|
|
find_it opera append "[exec] (opera) {env QT_XFT=true opera}"
|
|
|
|
|
find_it konqueror append "[exec] (konqueror) {kfmclient openProfile webbrowsing}"
|
|
|
|
|
find_it links append "[exec] (links) {${DEFAULT_TERM} -e links ${HOMEPAGE}}"
|
|
|
|
|
find_it w3m append "[exec] (w3m) {${DEFAULT_TERM} -e w3m ${HOMEPAGE}}"
|
|
|
|
|
find_it lynx append "[exec] (lynx) {${DEFAULT_TERM} -e lynx ${HOMEPAGE}}"
|
2002-11-12 19:19:14 +00:00
|
|
|
|
append_menu_end
|
2002-11-17 15:56:37 +00:00
|
|
|
|
|
2002-11-12 19:19:14 +00:00
|
|
|
|
append_submenu IM
|
2002-11-17 15:56:37 +00:00
|
|
|
|
normal_find gaim kopete gnomemeeting
|
2002-11-19 06:21:45 +00:00
|
|
|
|
find_it licq append "[exec] (licq) {env QT_XFT=true licq}"
|
2002-11-12 19:19:14 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
|
|
|
|
append_submenu Mail
|
2002-11-17 15:56:37 +00:00
|
|
|
|
normal_find sylpheed kmail evolution
|
2002-11-19 06:21:45 +00:00
|
|
|
|
find_it mutt append "[exec] (mutt) {${DEFAULT_TERM} -e mutt}"
|
2002-11-12 19:19:14 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
|
|
|
|
append_submenu IRC
|
2002-11-17 15:56:37 +00:00
|
|
|
|
normal_find xchat
|
2002-11-19 06:21:45 +00:00
|
|
|
|
find_it irssi append "[exec] (irssi) {${DEFAULT_TERM} -e irssi}"
|
2002-12-29 10:37:47 +00:00
|
|
|
|
find_it BitchX append "[exec] (BitchX) {${DEFAULT_TERM} -e BitchX -N}" || \
|
|
|
|
|
find_it bitchx append "[exec] (BitchX) {${DEFAULT_TERM} -e bitchx -N}"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
find_it ircii append "[exec] (ircii) {${DEFAULT_TERM} -e ircii -s}"
|
2002-11-12 19:19:14 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
|
|
|
|
normal_find gftp pan
|
2002-09-07 18:57:35 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${EDITORMENU}"
|
2002-11-12 19:19:14 +00:00
|
|
|
|
normal_find nedit gvim xemacs emacs gedit xedit kword kwrite kate
|
2002-09-07 18:57:35 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
2002-11-04 11:38:51 +00:00
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${MULTIMEDIAMENU}"
|
|
|
|
|
append_submenu "${GRAPHICMENU}"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
normal_find gimp xv gqview xpaint kpaint kiconedit xscreensaver-demo
|
2002-11-19 06:21:45 +00:00
|
|
|
|
find_it gears append "[exec] (Mesa gears) {gears}"
|
|
|
|
|
find_it morph3d append "[exec] (Mesa morph) {morph3d}"
|
|
|
|
|
find_it reflect append "[exec] (Mesa reflect) {reflect}"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${MUSICMENU}"
|
2002-12-29 10:37:47 +00:00
|
|
|
|
normal_find xmms noatun alsaplayer gqmpeg aumix xmixer gmix kmix grecord \
|
|
|
|
|
kmidi xplaycd soundtracker grip easytag lopster audacity
|
|
|
|
|
find_it cdcd append "[exec] (cdcd) {${DEFAULT_TERM} -e cdcd}"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
find_it cplay append "[exec] (cplay) {${DEFAULT_TERM} -e cplay}"
|
2002-12-29 10:37:47 +00:00
|
|
|
|
find_it alsamixer append "[exec] (AlsaMixer) {${DEFAULT_TERM} -e alsamixer}"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${MISCMENU}"
|
2002-11-17 15:56:37 +00:00
|
|
|
|
normal_find xine aviplay gtv gmplayer xmovie xcdroast xgdb ddd realplay
|
2002-11-19 06:21:45 +00:00
|
|
|
|
find_it dvdrip append "[exec] (dvdrip) {nohup dvdrip}"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${XUTILSMENU}"
|
2002-11-17 15:56:37 +00:00
|
|
|
|
normal_find xfontsel xman xload xfigxbiff editres viewres xclock
|
2002-11-04 11:38:51 +00:00
|
|
|
|
append_menu_end
|
2002-09-07 18:57:35 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${OFFICEMENU}"
|
2002-11-17 15:56:37 +00:00
|
|
|
|
normal_find xclock xcalc kcalc
|
2002-12-29 10:37:47 +00:00
|
|
|
|
find_it gcalc append "[exec] (gcalc) {gcalc}" || \
|
2002-11-19 06:21:45 +00:00
|
|
|
|
find_it gnome-calculator append "[exec] (gcalc) {gnome-calculator}"
|
2002-11-04 11:38:51 +00:00
|
|
|
|
find_it ooffice append "[exec] (Open Office) {ooffice}"
|
|
|
|
|
find_it soffice append "[exec] (Star Office) {soffice}"
|
|
|
|
|
normal_find abiword kword wordperfect katoob acroread xpdf
|
2002-09-07 18:57:35 +00:00
|
|
|
|
append_menu_end
|
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${GAMESMENU}"
|
2002-11-12 19:19:14 +00:00
|
|
|
|
normal_find bzflag gnibbles gnobots2 tuxpuck gataxx glines \
|
|
|
|
|
gnect mahjongg gnomine gnome-stones gnometris gnotravex \
|
2003-01-04 15:22:29 +00:00
|
|
|
|
gnotski iagno knights eboard xboard freecell pysol \
|
2002-11-19 06:21:45 +00:00
|
|
|
|
gtali tuxracer xpenguins xsnow xeyes xpenguins \
|
2003-01-04 15:22:29 +00:00
|
|
|
|
quake2 quake3 skoosh same-gnome enigma
|
2002-11-12 19:19:14 +00:00
|
|
|
|
append_menu_end
|
2002-11-04 11:38:51 +00:00
|
|
|
|
|
2002-09-07 18:57:35 +00:00
|
|
|
|
# gnome menu
|
2002-10-24 09:33:42 +00:00
|
|
|
|
if [ -d ${GPKGDATADIR}/gnome/apps -a "${GNOMEMENU}" ]; then
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${GNOMEMENUTEXT}"
|
2002-11-17 15:56:37 +00:00
|
|
|
|
for a in `ls ${GPKGDATADIR}/gnome/apps/` ; do
|
2002-11-19 06:21:45 +00:00
|
|
|
|
if [ -d ${GPKGDATADIR}/gnome/apps/"${a}" ] ; then
|
|
|
|
|
append_submenu "${a}"
|
|
|
|
|
menu_entry_dir "${GPKGDATADIR}/gnome/apps/${a}"
|
|
|
|
|
menu_entry_dircheck "/etc/X11/applnk/${a}"
|
|
|
|
|
append_menu_end
|
|
|
|
|
fi
|
2002-10-19 14:34:08 +00:00
|
|
|
|
done
|
|
|
|
|
append_menu_end
|
2002-09-07 18:57:35 +00:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# kde submenu
|
2002-10-24 09:33:42 +00:00
|
|
|
|
if [ -d ${KPKGDATADIR}/applnk/ -a "${KDEMENU}" ]; then
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${KDEMENUTEXT}"
|
2002-11-17 15:56:37 +00:00
|
|
|
|
for a in `ls ${KPKGDATADIR}/applnk/` ; do
|
2002-11-19 06:21:45 +00:00
|
|
|
|
if [ -d ${KPKGDATADIR}/applnk/"${a}" ]; then
|
|
|
|
|
append_submenu "${a}"
|
|
|
|
|
for x in ${KPKGDATADIR}/applnk/"${a}"/*; do
|
|
|
|
|
if [ -d ${KPKGDATADIR}/applnk/"${a}"/"${x}" ]; then
|
|
|
|
|
append_submenu "${x}"
|
|
|
|
|
menu_entry_dir ${KPKGDATADIR}/applnk/"${a}"/"${x}"
|
|
|
|
|
append_menu_end
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
menu_entry_dir ${KPKGDATADIR}/applnk/"${a}"
|
|
|
|
|
append_menu_end
|
|
|
|
|
fi
|
2002-10-19 14:34:08 +00:00
|
|
|
|
done
|
2002-10-24 09:33:42 +00:00
|
|
|
|
menu_entry_dir ${KPKGDATADIR}/applnk/
|
2002-10-19 14:34:08 +00:00
|
|
|
|
append_menu_end
|
2002-09-07 18:57:35 +00:00
|
|
|
|
fi
|
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
#User menu
|
|
|
|
|
if [ -r "${USERMENU}" ];then
|
|
|
|
|
cat ${USERMENU} >> ${FILENAME}
|
|
|
|
|
fi
|
2002-11-12 19:19:14 +00:00
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_submenu "${FBSETTINGSMENU}"
|
|
|
|
|
append "[config] (${CONFIGUREMENU})"
|
2002-12-16 11:10:44 +00:00
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_menu "[submenu] (${SYSTEMSTYLES}) {${STYLEMENUTITLE}}"
|
|
|
|
|
append "[stylesdir] (${PKGDATADIR}/fluxbox/styles)"
|
|
|
|
|
append_menu_end
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_menu "[submenu] (${USERSTYLES}) {${STYLEMENUTITLE}}"
|
|
|
|
|
append "[stylesdir] (~/.fluxbox/styles)"
|
|
|
|
|
append_menu_end
|
2002-12-14 23:58:13 +00:00
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
if [ "$BACKGROUNDMENUITEM" = "yes" ];then
|
|
|
|
|
append_menu "[submenu] (${BACKGROUNDMENU}) {${BACKGROUNDMENUTITLE}}"
|
2003-01-04 15:22:29 +00:00
|
|
|
|
for i in ${HOME}/.fluxbox/backgrounds/* ${PKGDATADIR}/fluxbox/backgrounds/* ; do
|
|
|
|
|
picturename=`basename $i`
|
|
|
|
|
append "[exec] (${picturename//.???}) {bsetbg -f $i }"
|
2002-12-20 09:02:02 +00:00
|
|
|
|
done
|
|
|
|
|
append_menu_end
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
append "[workspaces] (${WORKSPACEMENU})"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-11-19 06:21:45 +00:00
|
|
|
|
append_submenu Tools
|
|
|
|
|
find_it fluxconf append "[exec] (FluxConf) {fluxconf}"
|
|
|
|
|
find_it fluxkeys append "[exec] (FluxKeys) {fluxkeys}"
|
|
|
|
|
find_it fluxmenu append "[exec] (FluxMenu) {fluxmenu}"
|
|
|
|
|
# if gxmessage exitst use it; else use xmessage
|
2002-12-14 08:27:54 +00:00
|
|
|
|
find_it gxmessage append \
|
2002-12-29 10:37:47 +00:00
|
|
|
|
"[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|gxmessage -file - -center}" || \
|
2002-12-14 08:27:54 +00:00
|
|
|
|
find_it xmessage append \
|
|
|
|
|
"[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|xmessage -file - -center}"
|
2002-12-29 10:37:47 +00:00
|
|
|
|
find_it import append "[exec] (screenshot) {import screenshot.png && qiv -W 50 screenshot.png}"
|
|
|
|
|
find_it fbrun append "[exec] (Run) {fbrun}"
|
|
|
|
|
find_it fluxbox-generate_menu append "[exec] (Regen menu) {fluxbox-generate_menu}"
|
2002-11-19 06:21:45 +00:00
|
|
|
|
append_menu_end
|
2002-09-21 13:32:26 +00:00
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append "[reconfig] (${RELOADITEM})"
|
|
|
|
|
append "[restart] (${RESTARTITEM})"
|
|
|
|
|
append "[exit] (${EXITITEM})"
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
2002-12-20 09:02:02 +00:00
|
|
|
|
append_menu_end
|
2002-09-07 18:57:35 +00:00
|
|
|
|
|
|
|
|
|
append_menu_end
|
2002-11-12 19:19:14 +00:00
|
|
|
|
|
|
|
|
|
# this function removes empty menu items. It can not yet remove nested
|
|
|
|
|
# empty submenus :\
|
|
|
|
|
|
2002-11-19 06:21:45 +00:00
|
|
|
|
if [ ! "${REMOVE}" ];then
|
2002-11-12 19:19:14 +00:00
|
|
|
|
clean_up
|
|
|
|
|
fi
|
2002-12-14 08:27:54 +00:00
|
|
|
|
|
|
|
|
|
echo "Menu succesfully generated."
|