2003-11-15 19:29:18 +00:00
#!/bin/sh
#
# generate_menu for Fluxbox
#
2005-02-02 15:05:13 +00:00
# Copyright (c) 2005 Dung N. Lam <dnlam@users.sourceforge.net>
2003-12-31 00:41:02 +00:00
# Copyright (c) 2002-2004 Han Boetes <han@mijncomputer.nl>
2003-11-15 19:29:18 +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,
# 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.
# Portability notes:
# To guarantee this script works on all platforms that support fluxbox
# please keep the following restrictions in mind:
#
2005-02-09 14:57:49 +00:00
# - don't use [ "a" == "a" ]; use [ "a" = "a" ] (found with help from FreeBSD user relaxed)
2003-11-15 19:29:18 +00:00
# - don't use if ! command;, use command; if [ $? -ne 0 ];
# - don't use [ -e file ] use [ -r file ]
# - don't use $(), use ``
# - don't use ~, use ${HOME}
2004-03-01 13:15:30 +00:00
# - don't use id -u or $UID, use whoami
2003-11-15 19:29:18 +00:00
# - getopts won't work on all platforms, but the config-file can
# compensate for that.
2005-06-18 17:21:13 +00:00
# - OpenBSD and Solaris grep do not have the -m option
2003-11-15 19:29:18 +00:00
# - various software like grep/sed/perl may be not present or not
# the version you have. for example grep '\W' only works on gnu-grep.
# Keep this in mind, use bare basic defaults.
# - Do _NOT_ suggest to use #!/bin/bash. Not everybody uses bash.
# Non portable features like getopts in this script can be achieved in
# other ways.
# Functions
display_usage() {
cat << EOF
2007-07-07 23:11:04 +00:00
Usage: @pkgprefix@fluxbox-generate_menu@pkgsuffix@ [-kgrBh] [-t terminal] [-w url] [-b browser]
2003-11-15 19:29:18 +00:00
[-m menu-title] [-o /path] [-u /path] [-p /path] [-n /path] [-q /path]
2007-10-07 16:51:52 +00:00
[-d /path ] [-ds] [-i /path] [-is] [-su]
2003-11-15 19:29:18 +00:00
EOF
}
display_help() {
display_usage
cat << EOF
Options:
2008-05-02 10:59:47 +00:00
-k Insert a KDE menu
-g Add a Gnome menu
-B Enable backgrounds menu
-su Enable sudo commands
2003-11-15 19:29:18 +00:00
-r Don't remove empty menu-entries; for templates
2008-05-02 10:59:47 +00:00
-d Other path(s) to recursively search for *.desktop files
-ds Wider search for *.desktop files (takes more time)
-i Other path(s) to search for icons
2005-02-09 14:57:49 +00:00
e.g., "/usr/kde/3.3/share/icons/crystalsvg/16x16/*"
2008-05-02 10:59:47 +00:00
-is Wider search for icons (worth the extra time)
-in Skip icon search
2005-01-29 19:14:38 +00:00
2003-11-15 19:29:18 +00:00
-t Favourite terminal
-w Homepage for console-browsers. Default is fluxbox.org
-b Favourite browser
-m Menu-title; default is "Fluxbox"
2007-07-07 23:11:04 +00:00
-o Outputfile; default is ~/.@pkgprefix@fluxbox@pkgsuffix@/menu
2008-05-02 10:59:47 +00:00
-u User sub-menu; default is ~/.@pkgprefix@fluxbox@pkgsuffix@/usermenu
2003-11-15 19:29:18 +00:00
-h Display this help
-a Display the authors of this script
Only for packagers:
2008-05-02 10:59:47 +00:00
-p Prefix; default is @PREFIX@
2003-11-15 19:29:18 +00:00
-n Gnome-prefix; /opt, /usr, /usr/X11R6 and /usr/local autodetected
-q KDE-prefix; idem dito
Files:
2008-05-02 10:59:47 +00:00
~/.@pkgprefix@fluxbox@pkgsuffix@/usermenu Your own submenu which will be included in the menu
2007-07-07 23:11:04 +00:00
~/.@pkgprefix@fluxbox@pkgsuffix@/menuconfig rc file for fluxbox-generate_menu
2003-11-15 19:29:18 +00:00
EOF
}
2007-12-24 09:30:49 +00:00
#'
2003-11-15 19:29:18 +00:00
display_authors() {
cat << EOF
2007-07-07 23:11:04 +00:00
@pkgprefix@fluxbox-generate_menu@pkgsuffix@ was brought to you by:
2003-11-15 19:29:18 +00:00
Henrik Kinnunen: Project leader.
Han Boetes: Packaging, debugging and scripts.
2008-05-02 10:59:47 +00:00
Simon Bowden: Cleanups and compatibility for SUN.
Jeramy B. Smith: Packaging assistance, Gnome and KDE menu system.
2003-11-15 19:29:18 +00:00
Filippo Pappalardo: Italian locales and -t option.
$WHOAMI: Innocent bystander.
EOF
}
2011-03-29 02:40:58 +00:00
testoption() {
if [ -z "$3" -o -n "`echo $3|grep '^-'`" ]; then
echo "Error: The option $2 requires an argument." >&2
exit 1
fi
case $1 in
ex) # executable
if find_it "$3"; then
:
else
echo "Error: The option $2 needs an executable as argument, and \`$3' is not." >&2
fi
;;
di) # directory
if [ -d "$3" ]; then
:
else
echo "Error: The option $2 needs a directory as argument, and \`$3' is not." >&2
fi
;;
fl) # file
if [ -r "$3" ]; then
:
else
echo "Error: The option $2 needs a readable file as argument, and \`$3' is not." >&2
fi
;;
sk) # skip
:
;;
esac
}
2007-12-24 09:30:49 +00:00
find_it() {
[ -n "$1" ] && hash $1 2> /dev/null && shift && "$@"
}
2007-02-22 16:51:35 +00:00
2007-12-24 09:30:49 +00:00
find_it_options() {
[ -n "$1" ] && hash $1 2> /dev/null
}
2005-03-10 13:53:26 +00:00
#echo "replaceWithinString: $1, $2, $3" >&2
#echo ${1//$2/$3} # causes error in BSD even though not used
replaceWithinString(){
echo $1 | awk "{ gsub(/$2/, \"$3\"); print }"
}
2005-02-09 14:57:49 +00:00
2005-01-29 19:14:38 +00:00
convertIcon(){
2005-03-17 11:34:24 +00:00
if [ ! -f "$1" ] ; then
echo "Icon file not found: $1" >&2
return 1
fi
if [ "$1" = "$2" ]; then
# $dnlamVERBOSE "Files are in the same location: $1 = $2" >&2
# not really an error; just nothing to do.
return 0;
fi
local BASENAME
BASENAME="${1##*/}"
# make sure it is an icon by checking if it has an extension
if [ "$BASENAME" = "${BASENAME%%.*}" ]; then
# $dnlamVERBOSE "File $1 does not have a filename extention." >&2
return 1;
fi
# don't have to convert xpm files
case "$1" in
*.xpm)
echo "$1"
return 0;
;;
esac
# may not have to convert png if imlib is enabled
if [ "$PNG_ICONS" = "yes" ]; then
case "$1" in
*.png)
echo "$1"
return 0;
;;
esac
fi
# convert all others icons and save it as xpm format under directory $2
entry_icon="$2/${BASENAME%.*}.xpm"
if [ -f "${entry_icon}" ]; then
: echo "File exists. To overwrite, type: convert \"$1\" \"$entry_icon\"" >&2
else
2007-12-24 09:30:49 +00:00
if hash convert 2> /dev/null; then
2005-03-17 11:34:24 +00:00
convert "$1" "$entry_icon"
# echo convert "$1" , "$entry_icon" >> $ICONMAPPING
else
echo "Please install ImageMagick's convert utility" >&2
fi
fi
echo "$entry_icon"
2005-01-29 19:14:38 +00:00
}
removePath(){
2005-03-17 11:34:24 +00:00
execname="$1"
progname="${execname%% *}"
# separate program name and its parameters
if [ "$progname" = "$execname" ]; then
# no params
# remove path from only program name
execname="${progname##*/}"
else
params="${execname#* }"
# remove path from only program name
execname="${progname##*/} $params"
fi
echo $execname
2005-01-29 19:14:38 +00:00
}
doSearchLoop(){
2005-03-17 11:34:24 +00:00
for ICONPATH in "$@"; do
## $dnlamVERBOSE ": $ICONPATH" >> $ICONMAPPING
[ -d "$ICONPATH" ] || continue
#echo -n "."
# # $dnlamVERBOSE ":: $ICONPATH/$temp_icon" >> $ICONMAPPING
if [ -f "$ICONPATH/$temp_icon" ]; then
echo "$ICONPATH/$temp_icon"
return 0;
else # try different extensions;
# remove extension
iconNOext="${temp_icon%%.*}"
[ -d "$ICONPATH" ] && for ICONEXT in .xpm .png .gif ; do
## echo "::: $ICONPATH/$iconNOext$ICONEXT" >> $ICONMAPPING
2007-12-24 07:43:37 +00:00
realpath=`find "$ICONPATH" -type f -name "$iconNOext$ICONEXT" | head -n 1`
if [ -n "$realpath" ]; then
echo $realpath
2005-03-17 11:34:24 +00:00
return 0;
fi
done
fi
done
#echo "done"
return 1
2005-01-29 19:14:38 +00:00
}
doSearch(){
2005-03-17 11:34:24 +00:00
# remove '(' from '(fluxbox ...) | ...'
execname=`replaceWithinString "$1" "\("`
temp_icon="$2"
# $dnlamVERBOSE "# Searching for icon $temp_icon for $execname" >> $ICONMAPPING
# check in $ICONMAPPING before searching directories
2005-06-18 17:21:13 +00:00
entry_icon=`grep "^\"${execname}\"" $ICONMAPPING | head -n 1 | grep -o '<.*>'`
2005-03-17 11:34:24 +00:00
if [ -n "$entry_icon" ]; then
entry_icon=`replaceWithinString "$entry_icon" "<"`
entry_icon=`replaceWithinString "$entry_icon" ">"`
echo $entry_icon
return 0;
fi
# echo "$ICONMAPPING for $execname: $entry_icon"
# the following paths include a user-defined variable, listing paths to search for icons
# echo -n "for $temp_icon"
eval doSearchLoop $USER_ICONPATHS \
"$FB_ICONDIR" \
"/usr/share/${execname%% *}" \
${OTHER_ICONPATHS} \
2005-01-29 19:14:38 +00:00
}
searchForIcon(){
2005-03-17 11:34:24 +00:00
# remove '&' and everything after it
entry_exec="${1%%&*}"
entry_icon="$2"
# $dnlamVERBOSE echo "searchForIcon \"$entry_exec\" \"$entry_icon\"" >&2
2006-04-19 05:15:33 +00:00
2005-03-17 11:34:24 +00:00
# get the basename and parameters of entry_exec -- no path
entry_exec=`removePath "${entry_exec}"`
[ -z "$entry_exec" ] && { echo "Exec is NULL $1 with icon $2"; return 1; }
# search for specified icon if it does not exists
if [ -n "$entry_icon" ] && [ ! "$entry_exec" = "$entry_icon" ] && [ ! -f "$entry_icon" ]; then
# to search for icon in other paths,
# get basename
temp_icon="${entry_icon##*/}"
# remove parameters
temp_icon="${temp_icon#* }"
# clear entry_icon until temp_icon is found
unset entry_icon
if [ ! -f "$entry_icon" ]; then
entry_icon=`doSearch "$entry_exec" "$temp_icon"`
fi
fi
# remove parameters
execname="${entry_exec%% *}"
# echo "search for icon named $execname.{xpm,png,gif}"
if [ ! -f "$entry_icon" ]; then
entry_icon=`doSearch "$entry_exec" "$execname"`
fi
# ----------- done with search ------------
# $dnlamVERBOSE echo "::: $entry_icon" >&2
# convert icon file, if needed
if [ -f "$entry_icon" ] && [ -n "yes$ConvertIfNecessary" ]; then
2007-07-07 23:11:04 +00:00
entry_icon=`convertIcon "$entry_icon" "$USERFLUXDIR/icons"`
2005-03-17 11:34:24 +00:00
# $dnlamVERBOSE echo ":::: $entry_icon" >&2
fi
# remove path to icon; just get basename
icon_base="${entry_icon##*/}"
# remove extension
icon_base="${icon_base%%.*}"
# echo "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>"
if [ -f "$entry_icon" ]; then
# if icon exists and entry does not already exists, add it
if ! grep -q -m 1 "^.${entry_exec}.[[:space:]]*<.*/${icon_base}\....>" $ICONMAPPING 2> /dev/null; then
echo -e "\"${entry_exec}\" \t <${entry_icon}>" >> $ICONMAPPING
else
: echo "# mapping already exists for ${entry_exec}" >> $ICONMAPPING
fi
else
echo "# No icon file found for $entry_exec" >> $ICONMAPPING
fi
2005-01-29 19:14:38 +00:00
}
toSingleLine(){ echo "$@"; }
createIconMapping(){
2005-03-17 11:34:24 +00:00
# $dnlamVERBOSE "# creating `date`" >> $ICONMAPPING
# $dnlamVERBOSE "# using desktop files in $@" >> $ICONMAPPING
# $dnlamVERBOSE "# searching for icons in `eval toSingleLine $OTHER_ICONPATHS`" >> $ICONMAPPING
# need to determine when to use .fluxbox/icons/$execname.xpm over those listed in iconmapping
# $dnlamVERBOSE echo "createIconMapping: $@"
for DIR in "$@" ; do
if [ -d "$DIR" ]; then
# $dnlamVERBOSE echo "# ------- Looking in $DIR" >&2
# >> $ICONMAPPING
find "$DIR" -type f -name "*.desktop" | while read DESKTOP_FILE; do
# echo $DESKTOP_FILE;
2005-06-18 17:21:13 +00:00
#entry_name=`grep '^[ ]*Name=' $DESKTOP_FILE | head -n 1`
2005-03-17 11:34:24 +00:00
#entry_name=${entry_name##*=}
2005-06-18 17:21:13 +00:00
entry_exec=`grep '^[ ]*Exec=' "$DESKTOP_FILE" | head -n 1`
2005-03-17 11:34:24 +00:00
entry_exec=${entry_exec##*=}
entry_exec=`replaceWithinString "$entry_exec" "\""`
if [ -z "$entry_exec" ]; then
entry_exec=${DESKTOP_FILE%%.desktop*}
fi
2005-06-18 17:21:13 +00:00
entry_icon=`grep '^[ ]*Icon=' "$DESKTOP_FILE" | head -n 1`
2005-03-17 11:34:24 +00:00
entry_icon=${entry_icon##*=}
# $dnlamVERBOSE echo "--- $entry_exec $entry_icon" >&2
case "$entry_icon" in
"" | mime_empty | no_icon )
: echo "no icon for $entry_exec"
;;
*)
searchForIcon "$entry_exec" "$entry_icon"
;;
esac
done
fi
done
# $dnlamVERBOSE "# done `date`" >> $ICONMAPPING
2005-01-29 19:14:38 +00:00
}
lookupIcon() {
2005-03-17 11:34:24 +00:00
if [ ! -f "$ICONMAPPING" ]; then
echo "!!! Icon map file not found: $ICONMAPPING" >&2
return 1
fi
execname="$1"
shift
2008-05-02 10:59:47 +00:00
[ -n "$1" ] && echo "!! Ignoring extra parameters: $*" >&2
2005-03-17 11:34:24 +00:00
[ -z "$execname" ] && { echo "execname is NULL; cannot lookup"; return 1; }
execname=`removePath "$execname"`
#echo "grepping ${execname}"
2005-06-18 17:21:13 +00:00
iconString=`grep "^\"${execname}\"" $ICONMAPPING | head -n 1 | grep -o '<.*>'`
2005-03-17 11:34:24 +00:00
# $dnlamVERBOSE "lookupIcon $execname, $iconString" >&2
if [ -z "$iconString" ] ; then
2005-06-18 17:21:13 +00:00
iconString=`grep "^\"${execname%% *}" $ICONMAPPING | head -n 1 | grep -o '<.*>'`
2005-03-17 11:34:24 +00:00
fi
if [ -z "$iconString" ] && [ -z "$PARSING_DESKTOP" ] ; then
## $dnlamVERBOSE "lookupIcon: Searching ... should only be needed for icons not gotten from *.desktop (manual-created ones): $execname" >&2
searchForIcon "$execname" "$execname"
[ -n "$entry_icon" ] && iconString="<$entry_icon>"
fi
# [ -n "$iconString" ] && echo " Found icon for $execname: $iconString" >&2
echo $iconString
2005-01-29 19:14:38 +00:00
}
2003-11-15 19:29:18 +00:00
append() {
2005-03-17 11:34:24 +00:00
if [ -z "${INSTALL}" ]; then
# $dnlamVERBOSE echo "append: $*" >&2
iconString="`echo $* | grep -o '<.*>'`"
# echo "iconString=$iconString" >&2
if [ -z "$iconString" ] && [ -z "$NO_ICON" ]; then
echo -n " $* " >> ${MENUFILENAME}
# get the program name between '{}' from parameters
execname="$*"
execname=${execname#*\{}
execname=${execname%%\}*}
# $dnlamVERBOSE echo "execname=$execname" >&2
# if execname hasn't changed from original $*, then no '{...}' was given
if [ ! "$execname" = "$*" ]; then
case "$execname" in
$DEFAULT_TERM*)
# remove quotes
execname=`replaceWithinString "$execname" "\""`
# remove "$DEFAULT_TERM -e "
# needed in case calling another program (e.g., vi) via "xterm -e"
execname=${execname##*$DEFAULT_TERM -e }
;;
esac
# lookup execname in icon map file
iconString=`lookupIcon "$execname"`
#[ -n "$iconString" ] || echo "No icon found for $execname"
fi
echo "${iconString}" >> ${MENUFILENAME}
else
echo " $*" >> ${MENUFILENAME}
fi
2004-08-22 03:45:03 +00:00
else
2004-09-09 15:25:26 +00:00
echo " $*" >> ${MENUFILENAME}
2004-08-22 03:45:03 +00:00
fi
2003-11-15 19:29:18 +00:00
}
append_menu() {
echo "$*" >> ${MENUFILENAME}
}
append_submenu() {
[ "${REMOVE}" ] && echo >> ${MENUFILENAME} # only an empty line in templates
append_menu "[submenu] ($1)"
}
append_menu_end() {
append_menu '[end]'
[ "${REMOVE}" ] && echo >> ${MENUFILENAME} # only an empty line in templates
}
menu_entry() {
if [ -f "$1" ]; then
# space&tab here
2005-03-17 11:34:24 +00:00
entry_name=`grep '^[ ]*Name=' "$1" | head -n 1 | cut -d = -f 2`
entry_exec=`grep '^[ ]*Exec=' "$1" | head -n 1 | cut -d = -f 2`
2003-11-15 19:29:18 +00:00
if [ -n "$entry_name" -a -n "$entry_exec" ]; then
append "[exec] ($entry_name) {$entry_exec}"
fi
fi
}
menu_entry_dir() {
for b in "$*"/*.desktop; do
menu_entry "${b}"
done
}
menu_entry_dircheck() {
if [ -d "$*" ]; then
menu_entry_dir "$*"
fi
}
# recursively build a menu from the listed directories
# the dirs are merged
recurse_dir_menu () {
ls "$@"/ 2>/dev/null | sort | uniq | while read name; do
for dir in "$@"; do
if [ -n "$name" -a -d "$dir/$name" ]; then
# recurse
append_submenu "${name}"
# unfortunately, this is messy since we can't easily expand
# them all. Only allow for 3 atm. Add more if needed
recurse_dir_menu ${1:+"$1/$name"} ${2:+"$2/$name"} ${3:+"$3/$name"}
append_menu_end
break; # found one, it'll pick up all the rest
fi
# ignore it if it is a file, since menu_entry_dir picks those up
done
done
# Make entries for current dir after all submenus
for dir in "$@"; do
menu_entry_dircheck "${dir}"
done
}
normal_find() {
while [ "$1" ]; do
find_it $1 append "[exec] ($1) {$1}"
shift
done
}
2005-03-17 11:34:24 +00:00
cli_find() {
while [ "$1" ]; do
find_it $1 append "[exec] ($1) {${DEFAULT_TERM} -e $1}"
shift
done
}
2007-10-07 16:51:52 +00:00
sudo_find() {
[ "${DOSUDO}" = yes ] || return
while [ "$1" ]; do
find_it $1 append "[exec] ($1 (as root)) {${DEFAULT_TERM} -e sudo $1}"
shift
done
}
2003-11-15 19:29:18 +00:00
clean_up() {
2005-01-29 19:14:38 +00:00
[ -f "$ICONMAPPING" ] && rm -f "$ICONMAPPING"
2003-11-15 19:29:18 +00:00
# Some magic to clean up empty menus
rm -f ${MENUFILENAME}.tmp
touch ${MENUFILENAME}.tmp
2004-02-10 12:57:42 +00:00
counter=10 # prevent looping in odd circumstances
2004-01-12 11:14:55 +00:00
until [ $counter -lt 1 ] || \
2011-03-29 02:21:57 +00:00
cmp ${MENUFILENAME} ${MENUFILENAME}.tmp >/dev/null 2>&1; do
2003-11-15 19:29:18 +00:00
[ -s ${MENUFILENAME}.tmp ] && mv ${MENUFILENAME}.tmp ${MENUFILENAME}
2004-01-12 11:14:55 +00:00
counter=`expr $counter - 1`
2003-11-15 19:29:18 +00:00
grep -v '^$' ${MENUFILENAME}|sed -e "/^\[submenu].*/{
n
N
/^\[submenu].*\n\[end]/d
}"|sed -e "/^\[submenu].*/{
N
/^\[submenu].*\n\[end]/d
}" > ${MENUFILENAME}.tmp
done
rm -f ${MENUFILENAME}.tmp
}
2011-03-29 02:40:58 +00:00
# End functions
WHOAMI=`whoami`
[ "$WHOAMI" = root ] && PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
# Check for Imlib2-support
2011-10-28 20:42:18 +00:00
if @pkgprefix@fluxbox@pkgsuffix@@EXEEXT@ -info 2> /dev/null | grep -q "^IMLIB"; then
2011-03-29 02:40:58 +00:00
PNG_ICONS="yes"
else
# better assume to assume "no"
PNG_ICONS="no"
fi
2003-11-15 19:29:18 +00:00
# menu defaults (if translation forget to set one of them)
2007-03-31 10:53:53 +00:00
MENU_ENCODING=UTF-8 # (its also ascii)
2004-12-10 03:19:54 +00:00
ABOUTITEM='About'
2008-05-02 10:59:47 +00:00
ANALYZERMENU='Analyzers'
2003-11-15 19:29:18 +00:00
BACKGROUNDMENU='Backgrounds'
BACKGROUNDMENUTITLE='Set the Background'
BROWSERMENU='Browsers'
2006-04-19 15:44:18 +00:00
BURNINGMENU='Burning'
2003-11-15 19:29:18 +00:00
CONFIGUREMENU='Configure'
EDITORMENU='Editors'
2005-08-17 04:24:55 +00:00
EDUCATIONMENU='Education'
2003-11-15 19:29:18 +00:00
EXITITEM='Exit'
2008-05-02 10:59:47 +00:00
FBSETTINGSMENU='Fluxbox menu'
2003-11-15 19:29:18 +00:00
FILEUTILSMENU='File utils'
2004-01-21 21:57:46 +00:00
FLUXBOXCOMMAND='Fluxbox Command'
2003-11-15 19:29:18 +00:00
GAMESMENU='Games'
GNOMEMENUTEXT='Gnome-menus'
GRAPHICMENU='Graphics'
KDEMENUTEXT='KDE-menus'
2004-01-21 21:57:46 +00:00
LOCKSCREEN='Lock screen'
2003-11-15 19:29:18 +00:00
MISCMENU='Misc'
MULTIMEDIAMENU='Multimedia'
MUSICMENU='Audio'
NETMENU='Net'
2005-01-04 13:42:25 +00:00
NEWS='News'
2003-11-15 19:29:18 +00:00
OFFICEMENU='Office'
2004-01-21 21:57:46 +00:00
RANDOMBACKGROUND='Random Background'
REGENERATEMENU='Regen Menu'
2003-11-15 19:29:18 +00:00
RELOADITEM='Reload config'
RESTARTITEM='Restart'
2004-01-21 21:57:46 +00:00
RUNCOMMAND='Run'
SCREENSHOT='Screenshot'
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='Choose a style...'
SYSTEMSTYLES='System Styles'
2006-04-19 15:44:18 +00:00
SYSTEMTOOLSMENU='System Tools'
2003-11-15 19:29:18 +00:00
TERMINALMENU='Terminals'
2004-01-21 21:57:46 +00:00
TOOLS='Tools'
2003-11-15 19:29:18 +00:00
USERSTYLES='User Styles'
VIDEOMENU='Video'
WINDOWMANAGERS='Window Managers'
2004-01-21 21:57:46 +00:00
WINDOWNAME='Window name'
2003-11-15 19:29:18 +00:00
WORKSPACEMENU='Workspace List'
XUTILSMENU='X-utils'
# Check translation
case ${LC_ALL} in
ru_RU*) #Russian locales
2004-01-21 21:57:46 +00:00
# Ah my Russian hero. Please help me update the translation
# $ cp fluxbox-generate-menu.in fluxbox-generate-menu.in.orig
# $ $EDITOR fluxbox-generate-menu.in
2007-10-07 16:51:52 +00:00
# $ diff -u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
2004-01-21 21:57:46 +00:00
# email fbgm.diff to han@mijncomputer.nl
2007-03-31 10:53:53 +00:00
MENU_ENCODING=KOI8-R
2004-08-05 10:51:40 +00:00
BACKGROUNDMENU='<27> <> <EFBFBD> <EFBFBD> '
BACKGROUNDMENUTITLE='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> '
2003-11-15 19:29:18 +00:00
BROWSERMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
CONFIGUREMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
EDITORMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
EXITITEM='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> '
FBSETTINGSMENU='FB-<2D> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
2004-08-05 10:51:40 +00:00
FILEUTILSMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
FLUXBOXCOMMAND='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
GAMESMENU='<27> <> <EFBFBD> <EFBFBD> '
2003-11-15 19:29:18 +00:00
GNOMEMENUTEXT='Gnome-<2D> <> <EFBFBD> <EFBFBD> '
GRAPHICMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
KDEMENUTEXT='KDE-<2D> <> <EFBFBD> <EFBFBD> '
2004-08-05 10:51:40 +00:00
LOCKSCREEN='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> '
2003-11-15 19:29:18 +00:00
MISCMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
MUSICMENU='<27> <> <EFBFBD> <EFBFBD> '
NETMENU='<27> <> <EFBFBD> <EFBFBD> '
2004-08-05 10:51:40 +00:00
OFFICEMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
RANDOMBACKGROUND='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> '
REGENERATEMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
2003-11-15 19:29:18 +00:00
RELOADITEM='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
RESTARTITEM='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
2004-08-05 10:51:40 +00:00
RUNCOMMAND='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
SCREENSHOT='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> '
2004-08-05 10:51:40 +00:00
SYSTEMSTYLES='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> '
2003-11-15 19:29:18 +00:00
TERMINALMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
2004-08-05 10:51:40 +00:00
TOOLS='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
USERSTYLES='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> '
WINDOWMANAGERS='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> '
WINDOWNAME='<27> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> '
2003-11-15 19:29:18 +00:00
WORKSPACEMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
XUTILSMENU='X-<2D> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
;;
2005-01-31 09:41:13 +00:00
cs_CZ.ISO*) # Czech locales (ISO-8859-2 encodings)
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-2
2005-01-31 09:41:13 +00:00
ABOUTITEM='O programu...'
BACKGROUNDMENU='Pozad<61> '
BACKGROUNDMENUTITLE='Nastaven<65> pozad<61> '
BROWSERMENU='Prohl<68> <6C> e<EFBFBD> e'
2006-04-19 15:44:18 +00:00
BURNINGMENU='Vypalov<6F> n<EFBFBD> '
2005-01-31 09:41:13 +00:00
CONFIGUREMENU='Konfigurace'
EDITORMENU='Editory'
EXITITEM='Ukon<6F> it'
FBSETTINGSMENU='Fluxbox Menu'
FILEUTILSMENU='Souborov<6F> utility'
FLUXBOXCOMMAND='P<> <50> kaz Fluxboxu'
GAMESMENU='Hry'
GNOMEMENUTEXT='Gnome-menu'
GRAPHICMENU='Grafika'
KDEMENUTEXT='KDE-menu'
LOCKSCREEN='Zamknout obrazovku'
MISCMENU='R<> zn<7A> '
MULTIMEDIAMENU='Multim<69> dia'
MUSICMENU='Audio'
NETMENU='Internet'
NEWS='News'
OFFICEMENU='Kancel<65> <6C> '
RANDOMBACKGROUND='N<> hodn<64> pozad<61> '
REGENERATEMENU='Obnoven<65> menu'
RELOADITEM='Obnoven<65> konfigurace'
RESTARTITEM='Restart'
RUNCOMMAND='Spustit program...'
SCREENSHOT='Screenshot'
STYLEMENUTITLE='Volba stylu...'
2006-04-19 15:44:18 +00:00
SYSTEMTOOLSMENU='Syst<73> mov<6F> utility'
2005-01-31 09:41:13 +00:00
SYSTEMSTYLES='Syst<73> mov<6F> styly'
TERMINALMENU='Termin<69> ly'
TOOLS='N<> stroje'
USERSTYLES='U<> ivatelsk<73> styly'
VIDEOMENU='Video'
WINDOWMANAGERS='Okenn<6E> mana<6E> ery'
WINDOWNAME='Jm<4A> no okna'
WORKSPACEMENU='Seznam ploch'
XUTILSMENU='X-utility'
;;
2003-11-15 19:29:18 +00:00
de_DE*) # german locales
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-15
2003-11-15 19:29:18 +00:00
BACKGROUNDMENU='Hintergrundbilder'
BACKGROUNDMENUTITLE='Hintergrundbild setzen'
2004-03-01 13:15:30 +00:00
BROWSERMENU='Internet-Browser'
CONFIGUREMENU='Einstellungen'
2003-11-15 19:29:18 +00:00
EDITORMENU='Editoren'
EXITITEM='Beenden'
FBSETTINGSMENU='Fluxbox-Einstellungen'
FILEUTILSMENU='Datei-Utilities'
2004-03-01 13:15:30 +00:00
FLUXBOXCOMMAND='Fluxbox Befehl'
GAMESMENU='Spiele'
2003-11-15 19:29:18 +00:00
GNOMEMENUTEXT='Gnome-Menues'
GRAPHICMENU='Grafik'
KDEMENUTEXT='Kde-Menues'
2004-03-01 13:15:30 +00:00
LOCKSCREEN='Bildschirmsperre'
2003-11-15 19:29:18 +00:00
MISCMENU='Sonstiges'
MUSICMENU='Musik'
NETMENU='Netzwerk'
OFFICEMENU='Bueroprogramme'
2004-03-01 13:15:30 +00:00
RANDOMBACKGROUND='Zufaelliger Hintergrund'
REGENERATEMENU='Menu-Regeneration'
2003-11-15 19:29:18 +00:00
RELOADITEM='Konfiguration neu laden'
RESTARTITEM='Neustarten'
2004-03-01 13:15:30 +00:00
RUNCOMMAND='Ausf<73> hren'
SCREENSHOT='Bildschirmfoto'
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='Einen Stil auswaehlen...'
SYSTEMSTYLES='Systemweite Stile'
2004-03-01 13:15:30 +00:00
TERMINALMENU='Terminals'
TOOLS='Helfer'
2003-11-15 19:29:18 +00:00
USERSTYLES='Eigene Stile'
2004-03-01 13:15:30 +00:00
WINDOWMANAGERS='Window Manager'
WINDOWNAME='Window Name'
2003-11-15 19:29:18 +00:00
WORKSPACEMENU='Arbeitsflaechenliste'
XUTILSMENU='X-Anwendungen'
;;
sv_SE*) #Swedish locales
2004-01-21 21:57:46 +00:00
# Ah my Swedish hero. Please help me update the translation
# $ cp fluxbox-generate-menu.in fluxbox-generate-menu.in.orig
# $ $EDITOR fluxbox-generate-menu.in
2007-10-07 16:51:52 +00:00
# $ diff -u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
2004-01-21 21:57:46 +00:00
# email fbgm.diff to han@mijncomputer.nl
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-1
2004-01-03 00:43:43 +00:00
BACKGROUNDMENU='Bakgrunder'
BACKGROUNDMENUTITLE='S<> tt bakgrund'
2004-11-15 20:43:24 +00:00
BROWSERMENU='Webbl<62> sare'
2003-11-15 19:29:18 +00:00
CONFIGUREMENU='Konfiguration'
EDITORMENU='Editorer'
2004-11-15 20:43:24 +00:00
EXITITEM='Avsluta'
2003-11-15 19:29:18 +00:00
FBSETTINGSMENU='FB-inst<73> llningar'
2004-11-15 20:43:24 +00:00
FILEUTILSMENU='Filverktyg'
FLUXBOXCOMMAND='Fluxbox kommando'
2004-01-03 00:43:43 +00:00
GAMESMENU='Spel'
2003-11-15 19:29:18 +00:00
GNOMEMENUTEXT='Gnome-menyer'
GRAPHICMENU='Grafik'
KDEMENUTEXT='KDE-menyer'
2004-11-15 20:43:24 +00:00
LOCKSCREEN='L<> s sk<73> rm'
2003-11-15 19:29:18 +00:00
MISCMENU='Blandat'
2004-11-15 20:43:24 +00:00
MULTIMEDIAMENU='Multimedia'
2003-11-15 19:29:18 +00:00
MUSICMENU='Musik'
2004-11-15 20:43:24 +00:00
NETMENU='Internet'
OFFICEMENU='Office'
RANDOMBACKGROUND='Slumpm<70> ssig bakgrund'
REGENERATEMENU='Generera meny'
2003-11-15 19:29:18 +00:00
RELOADITEM='Ladda om konfig'
RESTARTITEM='Starta om'
2004-11-15 20:43:24 +00:00
RUNCOMMAND='K<> r'
SCREENSHOT='Sk<53> rmdump'
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='V<> lj en stil'
2004-01-21 21:57:46 +00:00
SYSTEMSTYLES='Stiler'
2003-11-15 19:29:18 +00:00
TERMINALMENU='Terminaler'
2004-11-15 20:43:24 +00:00
TOOLS='Verktyg'
2004-01-21 21:57:46 +00:00
USERSTYLES='Stiler'
2004-11-15 20:43:24 +00:00
VIDEOMENU='Video'
2004-01-21 21:57:46 +00:00
WINDOWMANAGERS='F<> nsterhanterare'
2004-11-15 20:43:24 +00:00
WINDOWNAME='F<> nsternamn'
2003-11-15 19:29:18 +00:00
WORKSPACEMENU='Arbetsytor'
2004-11-15 20:43:24 +00:00
XUTILSMENU='X-program'
2003-11-15 19:29:18 +00:00
;;
2004-08-05 22:53:49 +00:00
nl_*) #Nederlandse locales
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-15
2003-11-15 19:29:18 +00:00
BACKGROUNDMENU='Achtergrond'
BACKGROUNDMENUTITLE='Kies een achtergrond'
BROWSERMENU='Browsers'
CONFIGUREMENU='Instellingen'
EDITORMENU='Editors'
EXITITEM='Afsluiten'
FBSETTINGSMENU='FB-Instellingen'
FILEUTILSMENU='Verkenners'
2004-01-21 21:57:46 +00:00
FLUXBOXCOMMAND='Fluxbox Commando'
2003-12-18 00:59:04 +00:00
GAMESMENU='Spelletjes'
2003-11-15 19:29:18 +00:00
GNOMEMENUTEXT='Gnome-menu'
GRAPHICMENU='Grafisch'
KDEMENUTEXT='KDE-menu'
2004-01-21 21:57:46 +00:00
LOCKSCREEN='Scherm op slot'
2003-11-15 19:29:18 +00:00
MISCMENU='Onregelmatig'
MUSICMENU='Muziek'
2004-01-21 21:57:46 +00:00
NETMENU='Internet'
2003-11-15 19:29:18 +00:00
OFFICEMENU='Office'
2004-01-21 21:57:46 +00:00
RANDOMBACKGROUND='Willekeurige Achtergrond'
REGENERATEMENU='Nieuw Menu'
2003-11-15 19:29:18 +00:00
RELOADITEM='Vernieuw instellingen'
RESTARTITEM='Herstart'
2004-01-21 21:57:46 +00:00
RUNCOMMAND='Voer uit'
SCREENSHOT='Schermafdruk'
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='Kies een stijl'
SYSTEMSTYLES='Systeem Stijlen'
TERMINALMENU='Terminals'
2004-01-21 21:57:46 +00:00
TOOLS='Gereedschap'
2003-11-15 19:29:18 +00:00
USERSTYLES='Gebruikers Stijlen'
2004-01-21 21:57:46 +00:00
WINDOWMANAGERS='Venster Managers'
WINDOWNAME='Venster Naam'
2003-11-15 19:29:18 +00:00
WORKSPACEMENU='Werkveld menu'
2004-01-21 21:57:46 +00:00
XUTILSMENU='X-Gereedschap'
2003-11-15 19:29:18 +00:00
;;
fi_FI*) #Finnish locales
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-1
2007-03-30 18:14:25 +00:00
ABOUTMENU='Tietoja ohjelmasta'
ABOUTITEM='Tietoja ohjelmasta'
2004-03-03 07:43:38 +00:00
BACKGROUNDMENU='Taustakuvat'
BACKGROUNDMENUTITLE='M<> <4D> rit<69> taustakuva'
2003-11-15 19:29:18 +00:00
BROWSERMENU='Selaimet'
2004-03-03 07:43:38 +00:00
CONFIGUREMENU='Asetukset'
2003-11-15 19:29:18 +00:00
EDITORMENU='Editorit'
EXITITEM='Lopeta'
2007-03-30 18:14:25 +00:00
FBSETTINGSMENU='Fluxboxin asetukset'
2004-03-03 07:43:38 +00:00
FILEUTILSMENU='Tiedostoty<74> kalut'
2007-03-30 18:14:25 +00:00
FLUXBOXCOMMAND='Fluxbox komentorivi'
2004-03-03 07:43:38 +00:00
GAMESMENU='Pelit'
2003-11-15 19:29:18 +00:00
GNOMEMENUTEXT='Gnomen valikot'
GRAPHICMENU='Grafiikka'
KDEMENUTEXT='KDE:n valikot'
2007-03-30 18:14:25 +00:00
LOCKSCREEN='Lukitse n<> ytt<74> '
2003-11-15 19:29:18 +00:00
MISCMENU='Sekalaista'
2003-12-29 14:05:16 +00:00
MUSICMENU='Musiikki'
2003-11-15 19:29:18 +00:00
NETMENU='Verkko'
2007-03-30 18:14:25 +00:00
OFFICEMENU='Toimisto-ohjelmat'
2004-03-03 07:43:38 +00:00
RANDOMBACKGROUND='Satunnainen taustakuva'
REGENERATEMENU='P<> ivit<69> valikko'
2003-11-15 19:29:18 +00:00
RELOADITEM='P<> ivit<69> '
RESTARTITEM='K<> ynnist<73> uudelleen'
2004-03-03 07:43:38 +00:00
RUNCOMMAND='Suorita'
SCREENSHOT='Kuvakaappaus'
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='Valitse tyyli'
SYSTEMSTYLES='J<> rjestelm<6C> n tyylit'
TERMINALMENU='Terminaalit'
2004-03-03 07:43:38 +00:00
TOOLS='Ty<54> kalut'
2003-11-15 19:29:18 +00:00
USERSTYLES='K<> ytt<74> j<EFBFBD> n tyylit'
2007-03-30 18:14:25 +00:00
WINDOWMANAGERS='Ikkunointiohjelmat'
2004-03-03 07:43:38 +00:00
WINDOWNAME='Ikkunan nimi'
2003-12-29 14:05:16 +00:00
WORKSPACEMENU='Ty<54> alueet'
2003-11-15 19:29:18 +00:00
XUTILSMENU='X-Ohjelmat'
;;
ja_JP*) #Japanese locales
2004-01-21 21:57:46 +00:00
# Ah my Japanese hero. Please help me update the translation
# $ cp fluxbox-generate-menu.in fluxbox-generate-menu.in.orig
# $ $EDITOR fluxbox-generate-menu.in
2007-10-07 16:51:52 +00:00
# $ diff -u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
2004-01-21 21:57:46 +00:00
# email fbgm.diff to han@mijncomputer.nl
2007-03-31 10:53:53 +00:00
MENU_ENCODING=eucJP
2004-06-12 14:30:50 +00:00
BACKGROUNDMENU='<27> ط<EFBFBD> '
BACKGROUNDMENUTITLE='<27> طʤ<D8B7> <CAA4> <EFBFBD> <EFBFBD> <EFBFBD> '
2003-11-15 19:29:18 +00:00
BROWSERMENU='<27> ֥饦<D6A5> <E9A5A6> '
CONFIGUREMENU='<27> <> <EFBFBD> <EFBFBD> '
EDITORMENU='<27> <> <EFBFBD> ǥ<EFBFBD> <C7A5> <EFBFBD> '
EXITITEM='<27> <> λ'
2004-06-12 14:30:50 +00:00
FBSETTINGSMENU='Fluxbox<6F> <78> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
FILEUTILSMENU='<27> ե<EFBFBD> <D5A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
FLUXBOXCOMMAND='Fluxbox<6F> <78> <EFBFBD> ޥ<EFBFBD> <DEA5> <EFBFBD> '
GAMESMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
2003-11-15 19:29:18 +00:00
GNOMEMENUTEXT='Gnome<6D> <65> <EFBFBD> ˥塼'
GRAPHICMENU='<27> <> <EFBFBD> <EFBFBD> '
KDEMENUTEXT='KDE<44> <45> <EFBFBD> ˥塼'
2004-06-12 14:30:50 +00:00
LOCKSCREEN='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EAA1BC> <EFBFBD> <EFBFBD> <EFBFBD> å<EFBFBD> '
2003-11-15 19:29:18 +00:00
MISCMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
MUSICMENU='<27> <> <EFBFBD> <EFBFBD> '
NETMENU='<27> ͥåȥ<C8A5> <EFA1BC> '
2004-06-12 14:30:50 +00:00
OFFICEMENU='<27> <> <EFBFBD> ե<EFBFBD> <D5A5> <EFBFBD> (Office)'
RANDOMBACKGROUND='<27> ط<EFBFBD> (<28> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> )'
REGENERATEMENU='<27> <> <EFBFBD> ˥塼<CBA5> ƹ<EFBFBD> <C6B9> <EFBFBD> '
2003-11-15 19:29:18 +00:00
RELOADITEM='<27> <> <EFBFBD> ɤ߹<C9A4> <DFB9> <EFBFBD> '
RESTARTITEM='<27> Ƶ<EFBFBD> ư'
2004-06-12 14:30:50 +00:00
RUNCOMMAND='<27> <> <EFBFBD> ޥ<EFBFBD> <DEA5> ɤμ¹<CEBC> '
SCREENSHOT='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <F3A5B7A5> å<EFBFBD> '
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ...'
2004-01-21 21:57:46 +00:00
SYSTEMSTYLES='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
2003-11-15 19:29:18 +00:00
TERMINALMENU='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> ߥʥ<DFA5> '
2004-06-12 14:30:50 +00:00
TOOLS='<27> ġ<EFBFBD> <C4A1> <EFBFBD> '
2004-01-21 21:57:46 +00:00
USERSTYLES='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> '
2004-06-12 14:30:50 +00:00
WINDOWMANAGERS='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ɥ<EFBFBD> <C9A5> ޥ͡<DEA5> <CDA1> <EFBFBD> <EFBFBD> <EFBFBD> '
WINDOWNAME='<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ɥ<EFBFBD> ̾'
2003-11-15 19:29:18 +00:00
WORKSPACEMENU='<27> <EFBFBD> <EFA1BC> <EFBFBD> <EFBFBD> <EFBFBD> ڡ<EFBFBD> <DAA1> <EFBFBD> '
XUTILSMENU='X<> 桼<EFBFBD> ƥ<EFBFBD> <C6A5> <EFBFBD> <EFBFBD> ƥ<EFBFBD> '
;;
fr_FR*) # french locales
2004-01-21 21:57:46 +00:00
# Ah my french hero. Please help me update the translation
# $ cp fluxbox-generate-menu.in fluxbox-generate-menu.in.orig
# $ $EDITOR fluxbox-generate-menu.in
2007-10-07 16:51:52 +00:00
# $ diff -u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
2004-01-21 21:57:46 +00:00
# email fbgm.diff to han@mijncomputer.nl
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-15
2008-05-02 10:59:47 +00:00
ANALYZERMENU='Analyseurs'
2003-11-15 19:29:18 +00:00
BACKGROUNDMENU="Fond d'<27> cran"
BACKGROUNDMENUTITLE="Changer le fond d'<27> cran"
BROWSERMENU='Navigateurs'
CONFIGUREMENU='Configurer'
2008-05-02 10:59:47 +00:00
EDITORMENU='<27> diteurs'
2003-11-15 19:29:18 +00:00
EXITITEM='Sortir'
FBSETTINGSMENU='Configurer Fluxbox'
FILEUTILSMENU='Outils fichiers'
2004-04-03 09:10:36 +00:00
FLUXBOXCOMMAND='Commande Fluxbox'
GAMESMENU='Jeux'
2003-11-15 19:29:18 +00:00
GNOMEMENUTEXT='Menus Gnome'
GRAPHICMENU='Graphisme'
KDEMENUTEXT='Menus KDE'
2008-05-02 10:59:47 +00:00
LOCKSCREEN="Verrouiller l'<27> cran"
2003-11-15 19:29:18 +00:00
MISCMENU='Divers'
2008-05-02 10:59:47 +00:00
MULTIMEDIAMENU='Multim<69> dia'
2003-11-15 19:29:18 +00:00
MUSICMENU='Musique'
NETMENU='R<> seau'
OFFICEMENU='Bureautique'
2004-04-03 09:10:36 +00:00
RANDOMBACKGROUND="Fond d'<27> cran al<61> atoire"
REGENERATEMENU='R<> g<EFBFBD> n<EFBFBD> rer le menu'
2003-11-15 19:29:18 +00:00
RELOADITEM='Recharger la configuration'
RESTARTITEM='Red<65> marrer Fluxbox'
2004-04-03 09:10:36 +00:00
RUNCOMMAND='Run'
SCREENSHOT="Capture d'<27> cran"
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='Choisir un style...'
2008-05-02 10:59:47 +00:00
SYSTEMSTYLES='Styles Syst<73> me'
SYSTEMTOOLSMENU='Outils Syst<73> me'
2003-11-15 19:29:18 +00:00
TERMINALMENU='Terminaux'
2004-04-03 09:10:36 +00:00
TOOLS='Outils'
2003-11-15 19:29:18 +00:00
USERSTYLES='Styles Utilisateur'
2008-05-02 10:59:47 +00:00
VIDEOMENU='Vid<69> o'
2003-11-15 19:29:18 +00:00
WINDOWMANAGERS='Gestionnaires de fen<65> tres'
2008-05-02 10:59:47 +00:00
WINDOWNAME='Nom de la fen<65> tre'
2003-11-15 19:29:18 +00:00
WORKSPACEMENU='Liste des bureaux'
XUTILSMENU='Outils X'
;;
it_IT*) # italian locales
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-1
2004-05-21 18:36:06 +00:00
BACKGROUNDMENU='Sfondi'
BACKGROUNDMENUTITLE='Imposta lo sfondo'
BROWSERMENU='Browsers'
2003-11-15 19:29:18 +00:00
CONFIGUREMENU='Configurazione'
EDITORMENU='Editori'
EXITITEM='Esci'
FBSETTINGSMENU='Preferenze'
2004-05-21 18:36:06 +00:00
FILEUTILSMENU='Utilit<69> '
FLUXBOXCOMMAND='Comando Fluxbox'
2003-11-15 19:29:18 +00:00
GAMESMENU='Giochi'
GNOMEMENUTEXT='Gnome'
GRAPHICMENU='Grafica'
KDEMENUTEXT='KDE'
2004-05-21 18:36:06 +00:00
LOCKSCREEN='Blocca lo schermo'
2003-11-15 19:29:18 +00:00
MISCMENU='Varie'
MUSICMENU='Musica'
NETMENU='Internet'
2004-01-21 21:57:46 +00:00
OFFICEMENU='Office'
2004-05-21 18:36:06 +00:00
RANDOMBACKGROUND='Sfondo casuale'
REGENERATEMENU='Rigenera il menu'
2003-11-15 19:29:18 +00:00
RELOADITEM='Rileggi la configurazione'
RESTARTITEM='Riavvia'
2004-05-21 18:36:06 +00:00
RUNCOMMAND='Esegui'
SCREENSHOT='Schermata'
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='Scegli uno stile'
2004-01-21 21:57:46 +00:00
SYSTEMSTYLES='Stile'
2003-11-15 19:29:18 +00:00
TERMINALMENU='Terminali'
2004-05-21 18:36:06 +00:00
TOOLS='Attrezzi'
2004-01-21 21:57:46 +00:00
USERSTYLES='Stile'
2004-05-21 18:36:06 +00:00
WINDOWMANAGERS='Gestori finestre'
WINDOWNAME='Nome della finestra'
2003-11-15 19:29:18 +00:00
WORKSPACEMENU='Aree di lavoro'
2004-05-21 18:36:06 +00:00
XUTILSMENU='Utilit<69> X'
2003-11-15 19:29:18 +00:00
;;
ro_RO*) # Romanian locales
2005-02-13 16:42:13 +00:00
# Ah my Romanian hero. Please help me update the translation
2004-01-21 21:57:46 +00:00
# $ cp fluxbox-generate-menu.in fluxbox-generate-menu.in.orig
# $ $EDITOR fluxbox-generate-menu.in
2007-10-07 16:51:52 +00:00
# $ diff -u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
2004-01-21 21:57:46 +00:00
# email fbgm.diff to han@mijncomputer.nl
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-15
2003-11-15 19:29:18 +00:00
BACKGROUNDMENU='Fundaluri'
BACKGROUNDMENUTITLE='Alege fundalul'
BROWSERMENU='Navigatoare'
CONFIGUREMENU='Configurare'
EDITORMENU='Editoare'
EXITITEM='Iesire'
FBSETTINGSMENU='Meniul Fluxbox'
2005-02-13 16:42:13 +00:00
FILEUTILSMENU='Utilitare de fisier'
FLUXBOXCOMMAND='Comanda Fluxbox'
2003-11-15 19:29:18 +00:00
GAMESMENU='Jocuri'
GNOMEMENUTEXT='Meniu Gnome'
GRAPHICMENU='Grafica'
KDEMENUTEXT='Meniu KDE'
2005-02-13 16:42:13 +00:00
LOCKSCREEN='Incuie ecranul'
2003-11-15 19:29:18 +00:00
MISCMENU='Diverse'
2005-02-13 16:42:13 +00:00
MULTIMEDIAMENU='Multimedia'
2003-11-15 19:29:18 +00:00
MUSICMENU='Muzica'
2005-02-13 16:42:13 +00:00
NETMENU='Retea'
OFFICEMENU='Office'
RANDOMBACKGROUND='Fundal aleator'
REGENERATEMENU='Regenereaza meniul'
2003-11-15 19:29:18 +00:00
RELOADITEM='Reincarca configuratia'
2005-02-13 16:42:13 +00:00
RESTARTITEM='Restart'
RUNCOMMAND='Lanseaza'
SCREENSHOT='Captura ecran'
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='Alege un stil...'
SYSTEMSTYLES='Stiluri sistem'
TERMINALMENU='Terminale'
2005-02-13 16:42:13 +00:00
TOOLS='Unelte'
2003-11-15 19:29:18 +00:00
USERSTYLES='Stiluri utilizator'
2004-01-21 21:57:46 +00:00
WINDOWMANAGERS='WindowManagers'
2005-02-13 16:42:13 +00:00
WINDOWNAME='Nume fereastra'
2003-11-15 19:29:18 +00:00
WORKSPACEMENU='Lista workspace-uri'
XUTILSMENU='Utilitare X'
;;
es_ES*) # spanish locales
2004-01-21 21:57:46 +00:00
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-15
2006-08-27 15:17:47 +00:00
ABOUTITEM='Acerca'
BACKGROUNDMENU='Fondos'
2004-12-10 03:19:54 +00:00
BACKGROUNDMENUTITLE='Seleccionar Fondo'
BROWSERMENU='Navegadores'
2006-08-27 15:17:47 +00:00
BURNINGMENU='Herramientas de grabaci<63> n'
2004-12-10 03:19:54 +00:00
CONFIGUREMENU='Configurar'
EDITORMENU='Editores'
2006-08-27 15:17:47 +00:00
EDUCATIONMENU='Educaci<63> n'
2004-12-10 03:19:54 +00:00
EXITITEM='Salir'
FBSETTINGSMENU='Men<65> fluxbox'
2006-08-27 15:17:47 +00:00
FILEUTILSMENU='Utilidades'
FLUXBOXCOMMAND='Comandos de Fluxbox'
2004-12-10 03:19:54 +00:00
GAMESMENU='Juegos'
GNOMEMENUTEXT='Men<65> s Gnome'
GRAPHICMENU='Gr<47> ficos'
KDEMENUTEXT='Men<65> s KDE'
2006-08-27 15:17:47 +00:00
LOCKSCREEN='Bloquear Pantalla'
2004-12-10 03:19:54 +00:00
MISCMENU='Varios'
MULTIMEDIAMENU='Multimedia'
MUSICMENU='M<> sica'
NETMENU='Red'
2006-08-27 15:17:47 +00:00
NEWS='Noticias'
2004-12-10 03:19:54 +00:00
OFFICEMENU='Oficina'
2006-08-27 15:17:47 +00:00
RANDOMBACKGROUND='Fondo Aleatoreo'
REGENERATEMENU='Regenerar Men<65> '
2004-12-10 03:19:54 +00:00
RELOADITEM='Reconfigurar'
RESTARTITEM='Reiniciar'
2006-08-27 15:17:47 +00:00
RUNCOMMAND='Ejecutar'
SCREENSHOT='Captura de Pantalla'
2004-12-10 03:19:54 +00:00
STYLEMENUTITLE='Escoge un Estilo...'
SYSTEMSTYLES='Estilos del Sistema'
TERMINALMENU='Terminales'
2004-05-21 18:36:06 +00:00
TOOLS='Herramienta'
2006-08-27 15:17:47 +00:00
USERSTYLES='Estilos del Usuario'
VIDEOMENU='Video'
2004-05-21 18:36:06 +00:00
WINDOWMANAGERS='Gestores de Ventanas'
WINDOWNAME='Nombre de Ventana'
2006-08-27 15:17:47 +00:00
WORKSPACEMENU='Lista de Escritorios'
XUTILSMENU='Utilidades X'
2003-11-15 19:29:18 +00:00
;;
pl_PL*) # Polish locales
2004-01-21 21:57:46 +00:00
# Ah my Russian hero. Please help me update the translation
# $ cp fluxbox-generate-menu.in fluxbox-generate-menu.in.orig
# $ $EDITOR fluxbox-generate-menu.in
2007-10-07 16:51:52 +00:00
# $ diff -u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
2004-01-21 21:57:46 +00:00
# email fbgm.diff to han@mijncomputer.nl
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-2
2003-11-15 19:29:18 +00:00
BACKGROUNDMENU='Tapety'
2004-05-21 18:36:06 +00:00
BACKGROUNDMENUTITLE='Ustaw tapet<65> '
BROWSERMENU='Przegl<67> darki'
2003-11-15 19:29:18 +00:00
CONFIGUREMENU='Konfiguracja'
EDITORMENU='Edytory'
2004-05-21 18:36:06 +00:00
EXITITEM='Wyj<79> cie'
2003-11-15 19:29:18 +00:00
FBSETTINGSMENU='Menu Fluxbox'
2004-05-21 18:36:06 +00:00
FILEUTILSMENU='Narz<72> dzia do plik<69> w'
FLUXBOXCOMMAND='Polecenia Fluxbox'
2003-11-15 19:29:18 +00:00
GAMESMENU='Gry'
GNOMEMENUTEXT='Menu Gnome'
GRAPHICMENU='Grafika'
KDEMENUTEXT='Menu KDE'
2004-05-21 18:36:06 +00:00
LOCKSCREEN='Zablokuj ekran'
MISCMENU='R<> <52> ne'
MULTIMEDIAMENU='Multimedia'
2003-11-15 19:29:18 +00:00
MUSICMENU='Muzyka'
2004-05-21 18:36:06 +00:00
NETMENU='Sie<69> '
2003-11-15 19:29:18 +00:00
OFFICEMENU='Aplikacje biurowe'
2004-05-21 18:36:06 +00:00
RANDOMBACKGROUND='Losowa tapeta'
REGENERATEMENU='Wygeneruj menu'
RELOADITEM='Od<4F> wie<69> konfiguracj<63> '
RESTARTITEM='Restartuj'
RUNCOMMAND='Uruchom...'
SCREENSHOT='Zrzut ekranu'
2003-11-15 19:29:18 +00:00
STYLEMENUTITLE='Wybierz styl...'
SYSTEMSTYLES='Style systemowe'
TERMINALMENU='Terminale'
2004-05-21 18:36:06 +00:00
TOOLS='Narz<72> dzia'
USERSTYLES='Style u<> ytkownika'
WINDOWMANAGERS='Menad<61> ery okien'
WINDOWNAME='Nazwy okien'
2003-11-15 19:29:18 +00:00
WORKSPACEMENU='Lista pulpit<69> w'
2004-05-21 18:36:06 +00:00
XUTILSMENU='Narz<72> dzia X'
2003-11-15 19:29:18 +00:00
;;
2004-01-21 21:57:46 +00:00
pt_PT*) # Portuguese locales
2007-03-31 10:53:53 +00:00
MENU_ENCODING=ISO-8859-1
2006-08-27 15:17:47 +00:00
ABOUTMENU="Sobre"
2004-01-21 21:57:46 +00:00
BACKGROUNDMENU='Imagens de Fundo'
BACKGROUNDMENUTITLE='Definir Imagem de Fundo'
BROWSERMENU='Browsers'
2006-08-27 15:17:47 +00:00
BURNINGMENU='Ferramentas de Grava<76> <61> o'
2004-01-21 21:57:46 +00:00
CONFIGUREMENU='Configura<72> <61> o'
EDITORMENU='Editores'
2006-08-27 15:17:47 +00:00
EDUCATIONMENU='Educa<63> <61> o'
2004-01-21 21:57:46 +00:00
EXITITEM='Sair'
FBSETTINGSMENU='Menu Fluxbox'
FILEUTILSMENU='Utilit<69> rios de Ficheiros'
FLUXBOXCOMMAND='Comando Fluxbox'
GAMESMENU='Jogos'
GNOMEMENUTEXT='Menu Gnome'
GRAPHICMENU='Gr<47> ficos'
KDEMENUTEXT='Menu KDE'
LOCKSCREEN='Trancar Ecr<63> '
MISCMENU='Misc.'
MULTIMEDIAMENU='Multim<69> dia'
MUSICMENU='<27> udio'
NETMENU='Rede'
2006-08-27 15:17:47 +00:00
NEWS='Not<6F> cias'
2004-01-21 21:57:46 +00:00
OFFICEMENU='Escrit<69> rio'
RANDOMBACKGROUND='Imagem Aleat<61> ria'
REGENERATEMENU='Regenerar Menu'
RELOADITEM='Recarregar configura<72> <61> o'
RESTARTITEM='Reiniciar'
RUNCOMMAND='Executar'
SCREENSHOT='Capturar Ecr<63> '
STYLEMENUTITLE='Escolha um estilo...'
SYSTEMSTYLES='Estilos do Sistema'
2006-08-27 15:17:47 +00:00
SYSTEMTOOLSMENU='Ferramentas de Sistema'
2004-01-21 21:57:46 +00:00
TERMINALMENU='Terminais'
TOOLS='Ferramentas'
USERSTYLES='Estilos do Utilizador'
VIDEOMENU='V<> deo'
WINDOWMANAGERS='Gestores de Janelas'
WINDOWNAME='Nome da Janela'
WORKSPACEMENU='Lista de <20> reas de Trabalho'
XUTILSMENU='Utilit<69> rios X'
;;
2006-02-01 21:06:40 +00:00
nb_NO*) # Norwegian locales
2007-03-31 10:53:53 +00:00
MENU_ENCODING=UTF-8
2006-02-01 21:06:40 +00:00
ABOUTITEM='Om'
BACKGROUNDMENU='Bakgrunner'
BACKGROUNDMENUTITLE='Velg bakgrunn'
BROWSERMENU='Nettlesere'
CONFIGUREMENU='Oppsett'
EDITORMENU='Tekstredigeringsprogram'
EDUCATIONMENU='Lek og lær'
EXITITEM='Avslutt'
FBSETTINGSMENU='FluxBox-meny'
FILEUTILSMENU='Filverktøy'
FLUXBOXCOMMAND='FluxBox-kommando'
GAMESMENU='Spill'
GNOMEMENUTEXT='Gnome-menyer'
GRAPHICMENU='Grafikk'
KDEMENUTEXT='KDE-menyer'
LOCKSCREEN='Lås skjermen'
MISCMENU='Diverse'
MULTIMEDIAMENU='Multimedia'
MUSICMENU='Lyd'
NETMENU='Nett'
NEWS='Nyheter'
OFFICEMENU='Kontor'
RANDOMBACKGROUND='Tilfeldig bakgrunn'
REGENERATEMENU='Regen Menu'
RELOADITEM='Last oppsett på nytt'
RESTARTITEM='Start på nytt'
RUNCOMMAND='Kjør'
SCREENSHOT='Ta bilde'
STYLEMENUTITLE='Velg en stil . . .'
SYSTEMSTYLES='System-stiler'
TERMINALMENU='Terminaler'
TOOLS='Verktøy'
USERSTYLES='Bruker-stiler'
VIDEOMENU='Video'
WINDOWMANAGERS='Vindusbehandlere'
WINDOWNAME='Vindunavn'
WORKSPACEMENU='Liste over arbeidsområder'
XUTILSMENU='X-verktøy'
;;
2003-11-15 19:29:18 +00:00
*)
;;
esac
# Set Defaults
2007-12-19 23:10:31 +00:00
USERFLUXDIR="${HOME}/.@pkgprefix@fluxbox@pkgsuffix@"
2007-07-07 23:11:04 +00:00
MENUFILENAME="${MENUFILENAME:=${USERFLUXDIR}/menu}"
2003-11-15 19:29:18 +00:00
MENUTITLE="${MENUTITLE:=Fluxbox}"
HOMEPAGE="${HOMEPAGE:=fluxbox.org}"
2007-07-07 23:11:04 +00:00
USERMENU="${USERMENU:=${USERFLUXDIR}/usermenu}"
MENUCONFIG="${MENUCONFIG:=${USERFLUXDIR}/menuconfig}"
2007-10-07 16:51:52 +00:00
DOSUDO="no"
2003-11-15 19:29:18 +00:00
# Read the menuconfig file if it exists or else create it.
# But not during install time, use envvar for sun
if [ ! "${INSTALL}" = Yes ]; then
2007-07-07 23:11:04 +00:00
if [ -r ${MENUCONFIG} ]; then
. ${MENUCONFIG}
2003-11-15 19:29:18 +00:00
else
if [ ! "$WHOAMI" = root ]; then # this is only for users.
2007-07-07 23:11:04 +00:00
if touch ${MENUCONFIG}; then
cat << EOF > ${MENUCONFIG}
2003-11-15 19:29:18 +00:00
# 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. Put the command in quotes if you want to use
# options. Put a backslash in before odd chars
# MY_TERM='Eterm --tint \#123456'
2005-01-20 12:39:16 +00:00
# MY_TERM='aterm -tint \$(random_color)'
2003-11-15 19:29:18 +00:00
# Your favourite browser. You can also specify options.
# MY_BROWSER=mozilla
# Name of the outputfile
2007-07-07 23:11:04 +00:00
# MENUFILENAME=${USERFLUXDIR}/menu
2003-11-15 19:29:18 +00:00
2011-10-28 20:42:18 +00:00
# MENUTITLE=\`@pkgprefix@fluxbox@pkgsuffix@@EXEEXT@ -version|cut -d " " -f-2\`
2003-11-15 19:29:18 +00:00
# standard url for console-browsers
# HOMEPAGE=fluxbox.org
# location with your own menu-entries
2007-07-07 23:11:04 +00:00
# USERMENU=~/.@pkgprefix@fluxbox@pkgsuffix@/usermenu
2003-11-15 19:29:18 +00:00
2005-01-04 13:42:25 +00:00
# Put the launcher you would like to use here
2011-10-28 20:42:18 +00:00
# LAUNCHER=@pkgprefix@fbrun@pkgsuffix@@EXEEXT@
2005-01-04 13:42:25 +00:00
# LAUNCHER=fbgm
2003-11-15 19:29:18 +00:00
# Options for fbrun
# FBRUNOPTIONS='-font 10x20 -fg grey -bg black -title run'
# --- PREFIX'es
2005-10-12 20:59:12 +00:00
# These are prefixes; So if fluxbox is installed in @PREFIX@/bin/fluxbox
# your prefix is: @PREFIX@
2003-11-15 19:29:18 +00:00
# fluxbox-generate already looks in /usr/X11R6, /usr, /usr/local and /opt so
# there should be no need to specify them.
#
2005-01-20 12:39:16 +00:00
# PREFIX=@PREFIX@
2003-11-15 19:29:18 +00:00
# GNOME_PREFIX=/opt/gnome
# KDE_PREFIX=/opt/kde
2008-05-02 10:59:47 +00:00
# Separate the list of background dirs with colons ':'
2007-07-07 23:11:04 +00:00
# BACKGROUND_DIRS="${USERFLUXDIR}/backgrounds/:@PREFIX@/share/fluxbox/backgrounds/:/usr/share/wallpapers"
2003-11-15 19:29:18 +00:00
# --- Boolean variables.
# Setting a variable to ``no'' won't help. Comment them out if you don't
2008-05-02 10:59:47 +00:00
# want them. Settings are overruled by the command-line options.
2003-11-15 19:29:18 +00:00
# Include all backgrounds in your backgrounds-directory
# BACKGROUNDMENUITEM=yes
2008-05-02 10:59:47 +00:00
# Include KDE-menus
2003-11-15 19:29:18 +00:00
# KDEMENU=yes
2008-05-02 10:59:47 +00:00
# Include Gnome-menus
2003-11-15 19:29:18 +00:00
# GNOMEMENU=yes
2008-05-02 10:59:47 +00:00
# Enable sudo commands
2007-10-07 16:51:52 +00:00
# DOSUDO=yes
2003-11-15 19:29:18 +00:00
# Don't cleanup the menu
# REMOVE=no
2011-03-29 02:26:23 +00:00
# Don't add icons to the menu
# NO_ICON=yes
2003-11-15 19:29:18 +00:00
EOF
else
2007-07-07 23:11:04 +00:00
echo "Warning: I couldn't create ${MENUCONFIG}" >&2
2003-11-15 19:29:18 +00:00
fi
fi
fi
fi
2007-06-28 20:59:04 +00:00
BACKUPOPTIONS=$@
2011-03-29 03:21:15 +00:00
if [ -n "$BACKUPOPTIONS" ]; then
FBGM_CMD="@pkgprefix@fluxbox-generate_menu@pkgsuffix@ $BACKUPOPTIONS"
else
FBGM_CMD=@pkgprefix@fluxbox-generate_menu@pkgsuffix@
fi
2003-11-15 19:29:18 +00:00
# Get options.
while [ $# -gt 0 ]; do
case "$1" in
-B) BACKGROUNDMENUITEM=yes; shift;;
-k) KDEMENU=yes; shift;;
-g) GNOMEMENU=yes; shift;;
2005-03-17 11:34:24 +00:00
-in) NO_ICON=yes; shift;;
-is) OTHER_ICONPATHS="
2007-05-14 20:59:22 +00:00
/usr/share/icons
/usr/share/icons/mini
/usr/share/pixmaps
/usr/local/share/icons
/usr/local/share/icons/mini
/usr/local/share/pixmaps
/usr/share/xclass/icons
/usr/share/xclass/pixmaps
/usr/local/share/xclass/icons
/usr/local/share/xclass/pixmaps
/usr/X11R6/share/icons/default/16x16
/usr/X11R6/share/icons/kde/16x16
/usr/X11R6/share/icons/hicolor/16x16
/usr/local/X11R6/share/icons/default/16x16
/usr/local/X11R6/share/icons/kde/16x16
/usr/local/X11R6/share/icons/hicolor/16x16
2005-03-17 11:34:24 +00:00
"
shift;;
-ds) OTHER_DESKTOP_PATHS="
/usr/share/mimelnk
/usr/share/applications
/usr/share/xsessions
/usr/share/services
"
# /usr/share/apps \
shift;;
2005-01-29 19:14:38 +00:00
-i) USER_ICONPATHS=${2};
2005-03-17 11:34:24 +00:00
#needs testing
for aPath in $2; do
testoption di $1 $aPath;
done
shift 2;;
2005-01-29 19:14:38 +00:00
-d) USER_DESKTOP_PATHS=${2};
2005-03-17 11:34:24 +00:00
#needs testing
for aPath in $2; do
testoption di $1 $aPath;
done
shift 2;;
2003-11-15 19:29:18 +00:00
-t) MY_TERM=${2}; testoption ex $1 $2; shift 2;;
-b) MY_BROWSER=${2}; testoption ex $1 $2; shift 2;;
2004-08-05 10:51:40 +00:00
-o) MENUFILENAME=${2}; shift 2; CHECKINIT=NO ;;
2003-11-15 19:29:18 +00:00
-p) PREFIX=${2}; testoption di $1 $2; shift 2;;
-n) GNOME_PREFIX=${2}; testoption di $1 $2; shift 2;;
-q) KDE_PREFIX=${2}; testoption di $1 $2; shift 2;;
-m) MENUTITLE=${2}; testoption sk $1 $2; shift 2;;
-w) HOMEPAGE=${2}; testoption sk $1 $2; shift 2;;
-u) USERMENU=${2}; testoption fl $1 $2; shift 2;;
2007-10-07 16:51:52 +00:00
-su) DOSUDO=yes; shift;;
2003-11-15 19:29:18 +00:00
-r) REMOVE=no; shift;;
-h) display_help ; exit 0 ;;
-a) display_authors ; exit 0 ;;
--*) echo "fluxbox-generate_menu doesn't recognize -- gnu-longopts."
echo 'Use fluxbox-generate_menu -h for a long help message.'
display_usage
exit 1 ;;
-[a-zA-Z][a-zA-Z]*)
# split concatenated single-letter options apart
FIRST="$1"; shift
set -- `echo "$FIRST" | sed 's/^-\(.\)\(.*\)/-\1 -\2/'` "$@"
;;
-*)
echo 1>&2 "fluxbox-generate_menu: unrecognized option "\`"$1'"
display_usage
exit 1
;;
*)
break
;;
esac
done
# Check defaults
# Can we actually create ${MENUFILENAME}
touch ${MENUFILENAME} 2> /dev/null
if [ $? -ne 0 ]; then
echo "Fatal error: can't create or write to $MENUFILENAME" >&2
exit 1
fi
# backup menu
if [ -w "${MENUFILENAME}" ]; then
if [ -f ${MENUFILENAME}.firstbak ]; then
cp ${MENUFILENAME} ${MENUFILENAME}.firstbak
fi
2005-01-24 16:32:57 +00:00
if [ -s "${MENUFILENAME}" ]; then
mv ${MENUFILENAME} ${MENUFILENAME}.bak
2004-09-11 23:59:13 +00:00
fi
2003-11-15 19:29:18 +00:00
fi
# prefix
PREFIX="${PREFIX:=@PREFIX@}"
if [ -z "${PREFIX}" -o ! -d "${PREFIX}" ]; then
2011-10-28 20:42:18 +00:00
hash @pkgprefix@fluxbox@pkgsuffix@@EXEEXT@
PREFIX=`hash | grep @pkgprefix@fluxbox@pkgsuffix@ | sed 's,.*\t/,/,' | sed 's,/bin/@pkgprefix@fluxbox@pkgsuffix@@EXEEXT@$,,'`
2003-11-15 19:29:18 +00:00
fi
# gnome prefix
for GNOME_PREFIX in "${GNOME_PREFIX}" /usr/local /usr/X11R6 /usr /opt "${PREFIX}"; do
if [ -n "${GNOME_PREFIX}" -a -d "$GNOME_PREFIX/share/gnome" ]; then
break;
fi
done
# Will remain $PREFIX if all else fails
# kde prefix
for KDE_PREFIX in "${KDE_PREFIX}" /usr/local /usr/X11R6 /usr /opt "${PREFIX}"; do
if [ -n "${KDE_PREFIX}" -a -d "$KDE_PREFIX/share/applnk" ]; then
break;
fi
done
2005-02-10 02:01:15 +00:00
if [ -z "${INSTALL}" ] && [ -z "${NO_ICON}" ]; then
2005-03-17 11:34:24 +00:00
# [ -z "$dnlamVERBOSE" ] && dnlamVERBOSE=": echo" # for debugging
2007-07-07 23:11:04 +00:00
FB_ICONDIR="$USERFLUXDIR/icons"
2006-04-19 15:48:40 +00:00
[ -r "$FB_ICONDIR" ] || mkdir "$FB_ICONDIR"
2007-07-07 23:11:04 +00:00
ICONMAPPING="$USERFLUXDIR/iconmapping"
2005-03-17 11:34:24 +00:00
if [ "$GNOMEMENU" ] ; then
OTHER_DESKTOP_PATHS="\"$HOME/.gnome/apps\" \"${GNOME_PREFIX}/share/gnome/apps\" $OTHER_DESKTOP_PATHS"
#[ "OTHER_ICONPATHS" ] && OTHER_ICONPATHS=
fi
if [ "$KDEMENU" ] ; then
OTHER_DESKTOP_PATHS="\"$HOME/.kde/share/applnk\" \"${KDE_PREFIX}/share/applnk\" $OTHER_DESKTOP_PATHS"
[ "OTHER_ICONPATHS" ] && OTHER_ICONPATHS="\"$HOME\"/.kde/share/icons/{,*} $OTHER_ICONPATHS"
fi
[ "$GNOMEMENU$KDEMENU" ] && OTHER_DESKTOP_PATHS="\"$ETCAPPLNK\" $OTHER_DESKTOP_PATHS"
checkDirs(){
#echo checkDirs: $* >&2
local CHECKED_DIRS=""
for DIR in "$@"; do
if [ -d "$DIR" ]; then
# todo: should check if there are duplicates
CHECKED_DIRS="$CHECKED_DIRS \"$DIR\""
fi
done
#echo checkDirs - $CHECKED_DIRS >&2
echo $CHECKED_DIRS
}
OTHER_ICONPATHS=`eval checkDirs $OTHER_ICONPATHS`
OTHER_DESKTOP_PATHS=`eval checkDirs $OTHER_DESKTOP_PATHS`
# $dnlamVERBOSE "Using USER_DESKTOP_PATHS=\"$USER_DESKTOP_PATHS\" and USER_ICONPATHS=\"$USER_ICONPATHS\""
# $dnlamVERBOSE "Using OTHER_ICONPATHS=$OTHER_ICONPATHS"
# $dnlamVERBOSE "Using OTHER_DESKTOP_PATHS=$OTHER_DESKTOP_PATHS"
# $dnlamVERBOSE "Calling function: createIconMapping"
# $dnlamVERBOSE "Creating $ICONMAPPING" >&2
touch "$ICONMAPPING"
eval createIconMapping $USER_DESKTOP_PATHS $OTHER_DESKTOP_PATHS
# $dnlamVERBOSE "Done createIconMapping."
2005-01-29 19:14:38 +00:00
fi
2003-11-15 19:29:18 +00:00
# directory for the backgrounds
if [ -z "$BACKGROUND_DIRS" ]; then
2007-07-07 23:11:04 +00:00
BACKGROUND_DIRS="${USERFLUXDIR}/backgrounds/:${PREFIX}/share/fluxbox/backgrounds/"
2003-11-15 19:29:18 +00:00
fi
# find the default terminal
if find_it_options $MY_TERM; then
DEFAULT_TERM=$MY_TERM
else
[ -n "$MY_TERM" ] && echo "Warning: you chose an invalid term." >&2
#The precise order is up for debate.
2007-07-07 23:11:04 +00:00
for term in Eterm urxvt urxvtc aterm mrxvt rxvt wterm konsole gnome-terminal xterm; do
2007-12-24 09:30:49 +00:00
if find_it_options $term; then
2003-11-15 19:29:18 +00:00
DEFAULT_TERM=$term
break
fi
done
fi
2004-04-25 16:27:28 +00:00
# a unix system without any terms. that's odd
if [ -z "$DEFAULT_TERM" ]; then
cat << EOF >&2
Warning: I can't find any terminal-emulators in your PATH. Please fix
your PATH or specify your favourite terminal-emulator with the -t option
EOF
DEFAULT_TERM=xterm
fi
2003-11-15 19:29:18 +00:00
DEFAULT_TERMNAME=`echo $DEFAULT_TERM|awk '{print $1}'`
DEFAULT_TERMNAME=`basename $DEFAULT_TERMNAME`
# find the default browser
if find_it_options $MY_BROWSER; then
DEFAULT_BROWSER=$MY_BROWSER
else
[ -n "$MY_BROWSER" ] && echo "Warning: you chose an invalid browser." >&2
#The precise order is up for debate.
2007-05-17 16:06:40 +00:00
for browser in firefox mozilla-firefox mozilla-firebird MozillaFirebird opera skipstone mozilla seamonkey galeon konqueror dillo netscape w3m amaya links lynx; do
2007-12-24 09:30:49 +00:00
if find_it_options $browser; then
2003-11-15 19:29:18 +00:00
DEFAULT_BROWSER=$browser
break
fi
done
fi
DEFAULT_BROWSERNAME=`echo $DEFAULT_BROWSER|awk '{print $1}'`
DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME`
2007-03-31 11:28:46 +00:00
if [ -z "$LAUNCHER" ]; then
2011-10-28 20:42:18 +00:00
LAUNCHER=@pkgprefix@fbrun@pkgsuffix@@EXEEXT@
2007-03-31 11:28:46 +00:00
fi
2011-03-29 03:21:15 +00:00
if [ -n "$FBRUNOPTIONS" ]; then
# with this, LAUNCHER should be renamed LAUNCHER_NAME, but then there's
# backwards-compatibility...
LAUNCHER_CMD="$LAUNCHER $FBRUNOPTIONS"
else
LAUNCHER_CMD=$LAUNCHER
fi
2003-11-15 19:29:18 +00:00
2011-03-29 04:04:23 +00:00
# if gxmessage exists, use it; else use xmessage
if find_it gxmessage; then
XMESSAGE=gxmessage
else
XMESSAGE=xmessage
fi
2003-11-15 19:29:18 +00:00
# Start of menu
cat << EOF > ${MENUFILENAME}
# Generated by fluxbox-generate_menu
#
# If you read this it means you want to edit this file manually, so here
# are some useful tips:
#
2007-07-07 23:11:04 +00:00
# - You can add your own menu-entries to ~/.@pkgprefix@fluxbox@pkgsuffix@/usermenu
2003-11-15 19:29:18 +00:00
#
# - If you miss apps please let me know and I will add them for the next
# release.
#
# - The -r option prevents removing of empty menu entries and lines which
# makes things much more readable.
#
# - To prevent any other app from overwriting your menu
2007-12-19 23:10:31 +00:00
# you can change the menu name in ~/.@pkgprefix@fluxbox@pkgsuffix@/init to:
# session.menuFile: ~/.@pkgprefix@fluxbox@pkgsuffix@/my-menu
2003-11-15 19:29:18 +00:00
EOF
echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME}
2007-03-31 10:53:53 +00:00
if [ -n "$MENU_ENCODING" ]; then
append_menu "[encoding] {$MENU_ENCODING}"
fi
2004-12-10 03:19:54 +00:00
append "[exec] (${DEFAULT_TERMNAME}) {${DEFAULT_TERM}}"
2003-11-15 19:29:18 +00:00
case "$DEFAULT_BROWSERNAME" in
links|w3m|lynx) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_TERM} -e ${DEFAULT_BROWSER} ${HOMEPAGE}}" ;;
2007-05-17 16:06:40 +00:00
firefox|firebird|mozilla|seamonkey|phoenix|galeon|dillo|netscape|amaya) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_BROWSER}}" ;;
2003-11-15 19:29:18 +00:00
konqueror) append "[exec] (konqueror) {kfmclient openProfile webbrowsing}" ;;
opera) append "[exec] (opera) {env QT_XFT=true opera}" ;;
MozillaFirebird) append "[exec] (firebird) {MozillaFirebird}" ;;
2004-02-10 12:57:42 +00:00
MozillaFirefox) append "[exec] (firefox) {MozillaFirefox}" ;;
2003-11-15 19:29:18 +00:00
*) append "[exec] ($DEFAULT_BROWSERNAME) {$DEFAULT_BROWSER}" ;;
esac
2011-03-29 03:21:15 +00:00
find_it "${LAUNCHER}" append "[exec] (${RUNCOMMAND}) {$LAUNCHER_CMD}"
2003-11-15 19:29:18 +00:00
append_submenu "${TERMINALMENU}"
2005-07-06 06:26:09 +00:00
normal_find xterm urxvt urxvtc gnome-terminal multi-gnome-terminal Eterm \
2008-05-02 10:59:47 +00:00
konsole aterm mlterm multi-aterm rxvt mrxvt
2003-11-15 19:29:18 +00:00
append_menu_end
append_submenu "${NETMENU}"
append_submenu "${BROWSERMENU}"
2007-05-17 16:06:40 +00:00
normal_find firefox mozilla-firefox MozillaFirefox galeon mozilla seamonkey dillo netscape vncviewer
2004-05-21 18:36:06 +00:00
find_it links append "[exec] (links-graphic) {links -driver x ${HOMEPAGE}}"
2003-11-15 19:29:18 +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}}"
append_menu_end
append_submenu IM
2007-08-12 08:15:43 +00:00
normal_find pidgin gaim kopete gnomemeeting sim kadu psi amsn aim ayttm everybuddy gabber ymessenger
2003-11-15 19:29:18 +00:00
find_it licq append "[exec] (licq) {env QT_XFT=true licq}"
2005-03-17 11:34:24 +00:00
cli_find centericq micq
2003-11-15 19:29:18 +00:00
append_menu_end
append_submenu Mail
2005-03-17 11:34:24 +00:00
normal_find sylpheed kmail evolution thunderbird mozilla-thunderbird \
2007-04-14 07:13:17 +00:00
sylpheed-claws claws-mail
2005-03-17 11:34:24 +00:00
cli_find mutt pine
2003-11-15 19:29:18 +00:00
append_menu_end
2005-01-04 13:42:25 +00:00
append_submenu News
2006-04-19 15:44:18 +00:00
normal_find liferea pears pan
2005-03-17 11:34:24 +00:00
cli_find slrn tin
2005-01-04 13:42:25 +00:00
append_menu_end
2003-11-15 19:29:18 +00:00
append_submenu IRC
2007-04-14 07:13:17 +00:00
normal_find xchat xchat-2 ksirc vyqchat lostirc logui konversation kvirc skype
2005-03-17 11:34:24 +00:00
cli_find irssi epic4 weechat ninja
2004-02-10 12:57:42 +00:00
find_it BitchX append "[exec] (BitchX) {${DEFAULT_TERM} -e BitchX -N}" || \
2005-01-04 13:42:25 +00:00
find_it bitchx append "[exec] (BitchX) {${DEFAULT_TERM} -e bitchx -N}"
2004-02-10 12:57:42 +00:00
find_it ircii append "[exec] (ircii) {${DEFAULT_TERM} -e ircii -s}"
2003-11-15 19:29:18 +00:00
append_menu_end
append_submenu P2P
2005-07-05 21:46:13 +00:00
normal_find gtk-gnutella lopster nicotine pyslsk xmule amule \
2007-04-14 07:13:17 +00:00
valknut dcgui-qt dc_qt quickdc asami azureus
2005-03-17 11:34:24 +00:00
cli_find TekNap giFTcurs
2003-11-15 19:29:18 +00:00
append_menu_end
2007-04-14 07:13:17 +00:00
append_submenu FTP
2006-04-19 15:44:18 +00:00
normal_find gftp IglooFTP-PRO kbear
2005-03-17 11:34:24 +00:00
cli_find ncftp pftp ftp lftp yafc
2003-11-15 19:29:18 +00:00
append_menu_end
2007-10-07 16:51:52 +00:00
append_submenu SMB
normal_find LinNeighborhood jags SambaSentinel
append_menu_end
2007-04-14 07:13:17 +00:00
2008-05-02 10:59:47 +00:00
append_submenu "${ANALYZERMENU}"
2007-10-07 16:51:52 +00:00
normal_find xnmap nmapfe wireshark ettercap
sudo_find xnmap nmapfe wireshark ettercap
append_menu_end
2007-04-14 07:13:17 +00:00
2007-06-28 20:59:04 +00:00
normal_find x3270 wpa_gui
2003-11-15 19:29:18 +00:00
append_menu_end
append_submenu "${EDITORMENU}"
2004-05-21 18:36:06 +00:00
normal_find gvim bluefish nedit gedit xedit kword kwrite kate anjuta \
2006-01-07 19:57:42 +00:00
wings xemacs emacs kvim cream evim scite Ted
2005-07-06 06:26:09 +00:00
cli_find nano vim vi zile jed joe
2003-11-15 19:29:18 +00:00
find_it emacs append "[exec] (emacs-nw) {${DEFAULT_TERM} -e emacs -nw}"
2004-03-01 13:15:30 +00:00
find_it xemacs append "[exec] (xemacs-nw) {${DEFAULT_TERM} -e xemacs -nw}"
2003-11-15 19:29:18 +00:00
append_menu_end
2005-08-17 04:24:55 +00:00
append_submenu "${EDUCATIONMENU}"
normal_find celestia scilab geomview scigraphica oregano xcircuit electric \
2007-06-28 20:59:04 +00:00
pymol elem chemtool xdrawchem gperiodic stellarium
2006-08-27 15:17:47 +00:00
find_it drgeo append "[exec] (Dr. Geo) {drgeo}"
2005-08-17 04:24:55 +00:00
find_it R append "[exec] (R) {${DEFAULT_TERM} -e R --gui=gnome}"
cli_find maxima grace yacas octave gnuplot grass coq acl
append_menu_end
2003-11-15 19:29:18 +00:00
append_submenu "${FILEUTILSMENU}"
2005-06-30 09:55:50 +00:00
find_it konqueror append "[exec] (konqueror) {kfmclient openProfile filemanagement}"
2006-04-19 15:44:18 +00:00
normal_find gentoo krusader kcommander linuxcmd rox tuxcmd krename xfe xplore worker endeavour2 evidence
2005-07-06 06:26:09 +00:00
find_it nautilus append "[exec] (nautilus) {nautilus --no-desktop --browser}"
2005-03-17 11:34:24 +00:00
cli_find mc
2003-11-15 19:29:18 +00:00
append_menu_end
append_submenu "${MULTIMEDIAMENU}"
append_submenu "${GRAPHICMENU}"
2005-07-06 06:26:09 +00:00
normal_find gimp gimp2 gimp-2.2 inkscape sodipodi xv gqview showimg xpaint kpaint kiconedit \
2006-08-27 15:17:47 +00:00
ee xzgv xscreensaver-demo xlock gphoto tuxpaint krita skencil
2003-11-15 19:29:18 +00:00
find_it xnview append "[exec] (xnview browser) {xnview -browser}"
find_it blender append "[exec] (blender) {blender -w}"
find_it gears append "[exec] (Mesa gears) {gears}"
find_it morph3d append "[exec] (Mesa morph) {morph3d}"
find_it reflect append "[exec] (Mesa reflect) {reflect}"
append_menu_end
append_submenu "${MUSICMENU}"
2005-06-30 09:55:50 +00:00
normal_find xmms noatun alsaplayer gqmpeg aumix xmixer gnome-alsamixer gmix kmix kscd \
2004-05-21 18:36:06 +00:00
grecord kmidi xplaycd soundtracker grip easytag audacity \
2009-06-28 19:57:42 +00:00
zinf rhythmbox kaboodle beep-media-player amarok tagtool \
audacious bmpx
2005-03-17 11:34:24 +00:00
cli_find cdcd cplay alsamixer orpheus mp3blaster
2003-11-15 19:29:18 +00:00
append_menu_end
append_submenu "${VIDEOMENU}"
2009-06-28 19:57:42 +00:00
normal_find xine gxine aviplay gtv gmplayer xmovie xcdroast xgdb \
realplay xawtv fxtv ogle goggles vlc
2003-11-15 19:29:18 +00:00
find_it dvdrip append "[exec] (dvdrip) {nohup dvdrip}"
append_menu_end
append_submenu "${XUTILSMENU}"
2006-01-07 19:57:42 +00:00
normal_find xfontsel xman xload xbiff editres viewres xclock \
2006-08-27 15:17:47 +00:00
xmag wmagnify gkrellm gkrellm2 vmware portagemaster agave
2007-11-23 23:21:25 +00:00
find_it xrdb append "[exec] (Reload .Xdefaults) {xrdb -load \$HOME/.Xdefaults}"
2003-11-15 19:29:18 +00:00
append_menu_end
append_menu_end
append_submenu "${OFFICEMENU}"
2006-04-19 15:44:18 +00:00
normal_find xclock xcalc kcalc grisbi qbankmanager evolution
2003-11-15 19:29:18 +00:00
find_it gcalc append "[exec] (gcalc) {gcalc}" || \
find_it gnome-calculator append "[exec] (gcalc) {gnome-calculator}"
2006-01-07 19:57:42 +00:00
find_it ical append "[exec] (Calendar) {ical}"
2004-05-21 18:36:06 +00:00
2006-04-19 15:44:18 +00:00
# older <=1.1.3 apparently have stuff like swriter, not sowriter
for ext in s so oo xoo; do
find_it ${ext}ffice2 && (
2007-06-28 20:59:04 +00:00
find_it ${ext}ffice2 append "[exec] (Open Office 2) {${ext}ffice2}"
find_it ${ext}base2 append "[exec] (OO Base 2) {${ext}base2}"
find_it ${ext}calc2 append "[exec] (OO Calc 2) {${ext}calc2}"
find_it ${ext}writer2 append "[exec] (OO Writer 2) {${ext}writer2}"
find_it ${ext}web2 append "[exec] (OO Web 2) {${ext}web2}"
find_it ${ext}html2 append "[exec] (OO HTML 2) {${ext}html2}"
find_it ${ext}impress2 append "[exec] (OO Impress 2) {${ext}impress2}"
find_it ${ext}draw2 append "[exec] (OO Draw 2) {${ext}draw2}"
find_it ${ext}math2 append "[exec] (OO Math 2) {${ext}math2}"
find_it ${ext}fromtemplate2 append "[exec] (OO Templates 2) {${ext}fromtemplate2}"
2006-01-07 19:57:42 +00:00
)
2006-04-19 15:44:18 +00:00
find_it ${ext}ffice && (
2007-06-28 20:59:04 +00:00
find_it ${ext}ffice append "[exec] (Open Office) {${ext}ffice}"
find_it ${ext}base append "[exec] (OO Base) {${ext}base}"
find_it ${ext}calc append "[exec] (OO Calc) {${ext}calc}"
find_it ${ext}writer append "[exec] (OO Writer) {${ext}writer}"
find_it ${ext}web append "[exec] (OO Web) {${ext}web}"
find_it ${ext}impress append "[exec] (OO Impress) {${ext}impress}"
find_it ${ext}draw append "[exec] (OO Draw) {${ext}draw}"
find_it ${ext}math append "[exec] (OO Math) {${ext}math}"
find_it ${ext}fromtemplate append "[exec] (OO Templates) {${ext}fromtemplate}"
find_it ${ext}padmin append "[exec] (OO Printer Admin) {${ext}padmin}"
find_it mrproject append "[exec] (Mr.Project) {mrproject}"
2006-01-07 19:57:42 +00:00
)
2004-05-21 18:36:06 +00:00
done
2006-01-07 19:57:42 +00:00
normal_find abiword kword wordperfect katoob lyx acroread xpdf gv ghostview
2004-12-10 03:19:54 +00:00
normal_find dia xfig
2006-01-07 19:57:42 +00:00
normal_find gnumeric
2003-11-15 19:29:18 +00:00
append_menu_end
append_submenu "${GAMESMENU}"
normal_find bzflag gnibbles gnobots2 tuxpuck gataxx glines \
gnect mahjongg gnomine gnome-stones gnometris gnotravex \
2004-03-01 13:15:30 +00:00
gnotski iagno knights eboard xboard scid freecell pysol \
2006-01-07 19:57:42 +00:00
gtali tuxracer xpenguins xsnow xeyes smclone \
2004-05-21 18:36:06 +00:00
openmortal quake2 quake3 skoosh same-gnome enigma xbill \
2006-04-19 15:44:18 +00:00
icebreaker scorched3d sol dosbox black-box freeciv \
2005-03-17 11:34:24 +00:00
freeciv-server frozen-bubble liquidwar qt-nethack \
2005-07-06 06:26:09 +00:00
nethack-gnome pathological scummvm xqf \
wesnoth canfeild ace_canfeild golf merlin chickens \
supertux tuxdash neverball cube_client blackjack \
2006-08-27 15:17:47 +00:00
doom doom3 quake4 blackshades gltron kpoker concentration \
2008-05-02 10:59:47 +00:00
torrent scramble kiki xmoto warsow wormux zsnes
2007-10-07 16:51:52 +00:00
cli_find gnugo xgame
2004-11-15 20:43:24 +00:00
2003-11-23 01:19:01 +00:00
find_it et append "[exec] (Enemy Territory) {et}"
2004-05-21 18:36:06 +00:00
find_it ut append "[exec] (Unreal Tournament) {ut}"
find_it ut2003 append "[exec] (Unreal Tournament 2003) {ut2003}"
2005-07-06 06:26:09 +00:00
find_it ut2004 append "[exec] (Unreal Tournament 2004) {ut2004}"
2003-11-15 19:29:18 +00:00
append_menu_end
2006-04-19 15:44:18 +00:00
append_submenu "${SYSTEMTOOLSMENU}"
append_submenu "${BURNINGMENU}"
normal_find k3b cdbakeoven graveman xcdroast arson eroaster gcombust \
gtoaster kiso kover gtkcdlabel kcdlabel cdw cdlabelgen
2006-04-19 15:48:40 +00:00
cli_find mp3burn cdrx burncenter
2006-04-19 15:44:18 +00:00
append_menu_end
normal_find firestarter gtk-lshw gproftd gpureftpd guitoo porthole gtk-iptables \
gtk-cpuspeedy
find_it fireglcontrol append "[exec] (ATI Config) {fireglcontrol}"
2008-07-02 17:06:03 +00:00
cli_find top htop iotop ntop powertop
2006-04-19 15:44:18 +00:00
append_menu_end
2003-11-15 19:29:18 +00:00
# We'll only use this once
ETCAPPLNK=/etc/X11/applnk
2005-01-29 19:14:38 +00:00
PARSING_DESKTOP="true"
2003-11-15 19:29:18 +00:00
# gnome menu
if [ "${GNOMEMENU}" ]; then
append_submenu "${GNOMEMENUTEXT}"
recurse_dir_menu "${GNOME_PREFIX}/share/gnome/apps" "$HOME/.gnome/apps" ${ETCAPPLNK}
append_menu_end
unset ETCAPPLNK
fi
# kde submenu
if [ -d "${KDE_PREFIX}/share/applnk/" -a "${KDEMENU}" ]; then
append_submenu "${KDEMENUTEXT}"
recurse_dir_menu "${KDE_PREFIX}/share/applnk" "$HOME/.kde/share/applnk" ${ETCAPPLNK}
append_menu_end
unset ETCAPPLNK
fi
2005-01-29 19:14:38 +00:00
unset PARSING_DESKTOP
2003-11-15 19:29:18 +00:00
#User menu
if [ -r "${USERMENU}" ]; then
cat ${USERMENU} >> ${MENUFILENAME}
fi
append_submenu "${FBSETTINGSMENU}"
append "[config] (${CONFIGUREMENU})"
append_menu "[submenu] (${SYSTEMSTYLES}) {${STYLEMENUTITLE}}"
append "[stylesdir] (${PREFIX}/share/fluxbox/styles)"
append_menu_end
append_menu "[submenu] (${USERSTYLES}) {${STYLEMENUTITLE}}"
2007-07-07 23:11:04 +00:00
append "[stylesdir] (~/.@pkgprefix@fluxbox@pkgsuffix@/styles)"
2003-11-15 19:29:18 +00:00
append_menu_end
# Backgroundmenu
addbackground() {
picturename=`basename "$1"`
2007-12-24 09:30:49 +00:00
append "[exec] (${picturename%.???}) {@pkgprefix@fbsetbg@pkgsuffix@ -a \"$1\" }"
2003-11-15 19:29:18 +00:00
}
if [ "$BACKGROUNDMENUITEM" = yes ]; then
IFS=: # set delimetor for find
NUMBER_OF_BACKGROUNDS=`find $BACKGROUND_DIRS -follow -type f 2> /dev/null|wc -l`
if [ "$NUMBER_OF_BACKGROUNDS" -gt 0 ]; then
append_menu "[submenu] (${BACKGROUNDMENU}) {${BACKGROUNDMENUTITLE}}"
2007-12-24 09:30:49 +00:00
append "[exec] (${RANDOMBACKGROUND}) {@pkgprefix@fbsetbg@pkgsuffix@ -r ${USERFLUXDIR}/backgrounds}"
2003-11-15 19:29:18 +00:00
if [ "$NUMBER_OF_BACKGROUNDS" -gt 30 ]; then
menucounter=1 ; counter=1
append_menu "[submenu] (${BACKGROUNDMENU} $menucounter) {${BACKGROUNDMENUTITLE}}"
find $BACKGROUND_DIRS -follow -type f|sort|while read i; do
counter=`expr $counter + 1`
if [ $counter -eq 30 ]; then
counter=1
menucounter=`expr $menucounter + 1`
append_menu_end
append_menu "[submenu] (${BACKGROUNDMENU} $menucounter) {${BACKGROUNDMENUTITLE}}"
fi
addbackground "$i"
done
append_menu_end
else
find $BACKGROUND_DIRS -follow -type f|sort|while read i; do
addbackground "$i"
done
fi
append_menu_end
else
echo "Warning: You wanted a background-menu but I couldn't find any backgrounds in:
$BACKGROUND_DIRS" >&2
fi
fi
2005-01-20 12:39:16 +00:00
append "[workspaces] (${WORKSPACEMENU})"
2003-11-15 19:29:18 +00:00
2007-06-28 20:59:04 +00:00
append_submenu "${TOOLS}"
2003-11-15 19:29:18 +00:00
normal_find fluxconf fluxkeys fluxmenu
2006-01-07 19:57:42 +00:00
find_it fbpanel append "[exec] (Fluxbox panel) {fbpanel}"
2011-03-29 04:04:23 +00:00
find_it $XMESSAGE append \
"[exec] (${WINDOWNAME}) {xprop WM_CLASS|cut -d \\\" -f 2|$XMESSAGE -file - -center}"
2004-09-09 15:25:26 +00:00
find_it import append "[exec] (${SCREENSHOT} - JPG) {import screenshot.jpg && display -resize 50% screenshot.jpg}"
find_it import append "[exec] (${SCREENSHOT} - PNG) {import screenshot.png && display -resize 50% screenshot.png}"
2011-03-29 03:21:15 +00:00
find_it ${LAUNCHER} append "[exec] (${RUNCOMMAND}) {$LAUNCHER_CMD}"
2003-11-15 19:29:18 +00:00
find_it switch append "[exec] (gtk-theme-switch) {switch}"
find_it switch2 append "[exec] (gtk2-theme-switch) {switch2}"
2011-03-29 03:21:15 +00:00
find_it @pkgprefix@fluxbox-generate_menu@pkgsuffix@ append "[exec] (${REGENERATEMENU}) {$FBGM_CMD}"
2003-11-15 19:29:18 +00:00
append_menu_end
2007-06-28 20:59:04 +00:00
append_submenu "${WINDOWMANAGERS}"
2003-11-15 19:29:18 +00:00
#hard to properly maintain since there are so many exceptions to the rule.
2007-06-28 20:59:04 +00:00
for wm in mwm twm wmii beryl compiz metacity icewm ion kde sawfish enlightenment fvwm openbox evilwm waimea xfce pekwm xfce4 fvwm2 blackbox ; do
2003-11-15 19:29:18 +00:00
find_it start${wm} append "[restart] (${wm}) {start${wm}}" ||\
find_it ${wm} append "[restart] (${wm}) {${wm}}"
done
find_it startgnome append "[restart] (gnome) {startgnome}" ||\
find_it gnome-session append "[restart] (gnome) {gnome-session}"
find_it startwindowmaker append "[restart] (windowmaker) {startwindowmaker}" ||\
find_it wmaker append "[restart] (windowmaker) {wmaker}"
append_menu_end
2004-01-21 21:57:46 +00:00
find_it xlock append "[exec] (${LOCKSCREEN}) {xlock}" ||\
find_it xscreensaver-command append "[exec] (${LOCKSCREEN}) {xscreensaver-command -lock}"
append "[commanddialog] (${FLUXBOXCOMMAND})"
2003-11-15 19:29:18 +00:00
append "[reconfig] (${RELOADITEM})"
append "[restart] (${RESTARTITEM})"
2011-10-28 20:42:18 +00:00
append "[exec] (${ABOUTITEM}) {(@pkgprefix@fluxbox@pkgsuffix@@EXEEXT@ -v; @pkgprefix@fluxbox@pkgsuffix@@EXEEXT@ -info | sed 1d) | $XMESSAGE -file - -center}"
2004-01-03 00:23:48 +00:00
append "[separator]"
2003-11-15 19:29:18 +00:00
append "[exit] (${EXITITEM})"
append_menu_end
2007-03-31 10:53:53 +00:00
if [ -n "$MENU_ENCODING" ]; then
append_menu "[endencoding]"
fi
2003-11-15 19:29:18 +00:00
append_menu_end
# this function removes empty menu items. It can not yet remove nested
# empty submenus :\
if [ ! "${REMOVE}" ]; then
clean_up
fi
2005-01-29 19:14:38 +00:00
# escapes any parentheses in menu label
# e.g., "[exec] (konqueror (web))" becomes "[exec] (konqueror (web\))"
2010-02-28 19:16:46 +00:00
sed 's/(\(.*\)(\(.*\)))/(\1 (\2\\))/' $MENUFILENAME > $MENUFILENAME.tmp
mv -f $MENUFILENAME.tmp $MENUFILENAME
2005-01-29 19:14:38 +00:00
2004-08-19 00:29:10 +00:00
if [ -z "$INSTALL" ]; then
if [ -z "$CHECKINIT" ]; then
2007-07-07 23:11:04 +00:00
INITMENUFILENAME=`awk '/menuFile/ {print $2}' $USERFLUXDIR/init`
2005-03-17 11:34:24 +00:00
INITMENUFILENAME=`replaceWithinString "$INITMENUFILENAME" "~" "$HOME"`
2005-02-09 14:57:49 +00:00
if [ ! "$INITMENUFILENAME" = "$MENUFILENAME" ]; then
2007-07-07 23:11:04 +00:00
echo "Note: In $USERFLUXDIR/init, your \"session.menuFile\" does not point to $MENUFILENAME but to $INITMENUFILENAME" >&2
2004-08-19 00:29:10 +00:00
fi
2004-08-05 10:51:40 +00:00
fi
2005-02-09 14:57:49 +00:00
echo "Menu successfully generated: $MENUFILENAME"
2007-12-24 09:30:49 +00:00
#echo " Make sure \"session.menuFile: $MENUFILENAME\" is in $HOME/.@pkgprefix@fluxbox@pkgsuffix@/init."
2007-07-07 23:11:04 +00:00
echo 'Use @pkgprefix@fluxbox-generate_menu@pkgsuffix@ -h to read about all the latest features.'
2004-08-05 10:51:40 +00:00
fi