closes #1081200
added some ideas from the gentoo's ebuild (thanx ciaranm) minor cosmetic updates
This commit is contained in:
parent
09439fe83a
commit
910215d0a5
1 changed files with 33 additions and 30 deletions
|
@ -173,8 +173,8 @@ append_menu_end() {
|
||||||
menu_entry() {
|
menu_entry() {
|
||||||
if [ -f "$1" ]; then
|
if [ -f "$1" ]; then
|
||||||
# space&tab here
|
# space&tab here
|
||||||
entry_name=`grep '^[ ]*Name=' "$1" | head -1 | cut -d = -f 2`
|
entry_name=`grep '^[ ]*Name=' "$1" | head -n 1 | cut -d = -f 2`
|
||||||
entry_exec=`grep '^[ ]*Exec=' "$1" | head -1 | cut -d = -f 2`
|
entry_exec=`grep '^[ ]*Exec=' "$1" | head -n 1 | cut -d = -f 2`
|
||||||
if [ -n "$entry_name" -a -n "$entry_exec" ]; then
|
if [ -n "$entry_name" -a -n "$entry_exec" ]; then
|
||||||
append "[exec] ($entry_name) {$entry_exec}"
|
append "[exec] ($entry_name) {$entry_exec}"
|
||||||
fi
|
fi
|
||||||
|
@ -248,6 +248,7 @@ rm -f ${MENUFILENAME}.tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
# menu defaults (if translation forget to set one of them)
|
# menu defaults (if translation forget to set one of them)
|
||||||
|
ABOUTITEM='About'
|
||||||
BACKGROUNDMENU='Backgrounds'
|
BACKGROUNDMENU='Backgrounds'
|
||||||
BACKGROUNDMENUTITLE='Set the Background'
|
BACKGROUNDMENUTITLE='Set the Background'
|
||||||
BROWSERMENU='Browsers'
|
BROWSERMENU='Browsers'
|
||||||
|
@ -642,29 +643,29 @@ case ${LC_ALL} in
|
||||||
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
# $ diff u fluxbox-generate-menu.in.orig fluxbox-generate-menu.in > fbgm.diff
|
||||||
# email fbgm.diff to han@mijncomputer.nl
|
# email fbgm.diff to han@mijncomputer.nl
|
||||||
|
|
||||||
BACKGROUNDMENUTITLE='Seleccionar Fondo'
|
BACKGROUNDMENUTITLE='Seleccionar Fondo'
|
||||||
BROWSERMENU='Navegadores'
|
BROWSERMENU='Navegadores'
|
||||||
CONFIGUREMENU='Configurar'
|
CONFIGUREMENU='Configurar'
|
||||||
EDITORMENU='Editores'
|
EDITORMENU='Editores'
|
||||||
EXITITEM='Salir'
|
EXITITEM='Salir'
|
||||||
FBSETTINGSMENU='Menú fluxbox'
|
FBSETTINGSMENU='Menú fluxbox'
|
||||||
GAMESMENU='Juegos'
|
GAMESMENU='Juegos'
|
||||||
GNOMEMENUTEXT='Menús Gnome'
|
GNOMEMENUTEXT='Menús Gnome'
|
||||||
GRAPHICMENU='Gráficos'
|
GRAPHICMENU='Gráficos'
|
||||||
KDEMENUTEXT='Menús KDE'
|
KDEMENUTEXT='Menús KDE'
|
||||||
MISCMENU='Varios'
|
MISCMENU='Varios'
|
||||||
MULTIMEDIAMENU='Multimedia'
|
MULTIMEDIAMENU='Multimedia'
|
||||||
MUSICMENU='Música'
|
MUSICMENU='Música'
|
||||||
NETMENU='Red'
|
NETMENU='Red'
|
||||||
OFFICEMENU='Oficina'
|
OFFICEMENU='Oficina'
|
||||||
RELOADITEM='Reconfigurar'
|
RELOADITEM='Reconfigurar'
|
||||||
RESTARTITEM='Reiniciar'
|
RESTARTITEM='Reiniciar'
|
||||||
STYLEMENUTITLE='Escoge un Estilo...'
|
STYLEMENUTITLE='Escoge un Estilo...'
|
||||||
SYSTEMSTYLES='Estilos del Sistema'
|
SYSTEMSTYLES='Estilos del Sistema'
|
||||||
TERMINALMENU='Terminales'
|
TERMINALMENU='Terminales'
|
||||||
USERSTYLES='Estilos del Usuario'
|
USERSTYLES='Estilos del Usuario'
|
||||||
WORKSPACEMENU='Lista de Escritorios'
|
WORKSPACEMENU='Lista de Escritorios'
|
||||||
XUTILSMENU='Utilidades X'
|
XUTILSMENU='Utilidades X'
|
||||||
BACKGROUNDMENU='Fondos'
|
BACKGROUNDMENU='Fondos'
|
||||||
FILEUTILSMENU='Utilidades'
|
FILEUTILSMENU='Utilidades'
|
||||||
FLUXBOXCOMMAND='Comandos de Fluxbox'
|
FLUXBOXCOMMAND='Comandos de Fluxbox'
|
||||||
|
@ -964,7 +965,7 @@ if find_it_options $MY_TERM; then
|
||||||
else
|
else
|
||||||
[ -n "$MY_TERM" ] && echo "Warning: you chose an invalid term." >&2
|
[ -n "$MY_TERM" ] && echo "Warning: you chose an invalid term." >&2
|
||||||
#The precise order is up for debate.
|
#The precise order is up for debate.
|
||||||
for term in Eterm aterm rxvt wterm xterm konsole gnome-terminal; do
|
for term in Eterm urxvt urxvtc aterm rxvt wterm xterm konsole gnome-terminal; do
|
||||||
if find_it $term; then
|
if find_it $term; then
|
||||||
DEFAULT_TERM=$term
|
DEFAULT_TERM=$term
|
||||||
break
|
break
|
||||||
|
@ -1026,7 +1027,7 @@ EOF
|
||||||
|
|
||||||
echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME}
|
echo "[begin] (${MENUTITLE})" >> ${MENUFILENAME}
|
||||||
|
|
||||||
append "[exec] (${DEFAULT_TERMNAME}) {${DEFAULT_TERM}}"
|
append "[exec] (${DEFAULT_TERMNAME}) {${DEFAULT_TERM}}"
|
||||||
|
|
||||||
case "$DEFAULT_BROWSERNAME" in
|
case "$DEFAULT_BROWSERNAME" in
|
||||||
links|w3m|lynx) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_TERM} -e ${DEFAULT_BROWSER} ${HOMEPAGE}}" ;;
|
links|w3m|lynx) append "[exec] (${DEFAULT_BROWSERNAME}) {${DEFAULT_TERM} -e ${DEFAULT_BROWSER} ${HOMEPAGE}}" ;;
|
||||||
|
@ -1099,7 +1100,7 @@ append_menu_end
|
||||||
|
|
||||||
append_submenu "${EDITORMENU}"
|
append_submenu "${EDITORMENU}"
|
||||||
normal_find gvim bluefish nedit gedit xedit kword kwrite kate anjuta \
|
normal_find gvim bluefish nedit gedit xedit kword kwrite kate anjuta \
|
||||||
wings xemacs emacs
|
wings xemacs emacs kvim cream
|
||||||
find_it nano append "[exec] (nano) {${DEFAULT_TERM} -e nano}"
|
find_it nano append "[exec] (nano) {${DEFAULT_TERM} -e nano}"
|
||||||
find_it vi append "[exec] (vi) {${DEFAULT_TERM} -e vi}" ||\
|
find_it vi append "[exec] (vi) {${DEFAULT_TERM} -e vi}" ||\
|
||||||
find_it vim append "[exec] (vim) {${DEFAULT_TERM} -e vim}"
|
find_it vim append "[exec] (vim) {${DEFAULT_TERM} -e vim}"
|
||||||
|
@ -1117,7 +1118,7 @@ append_menu_end
|
||||||
|
|
||||||
append_submenu "${MULTIMEDIAMENU}"
|
append_submenu "${MULTIMEDIAMENU}"
|
||||||
append_submenu "${GRAPHICMENU}"
|
append_submenu "${GRAPHICMENU}"
|
||||||
normal_find gimp xv gqview showimg xpaint kpaint kiconedit \
|
normal_find gimp gimp2 inkscape sodipodi xv gqview showimg xpaint kpaint kiconedit \
|
||||||
ee xzgv xscreensaver-demo xlock
|
ee xzgv xscreensaver-demo xlock
|
||||||
find_it xnview append "[exec] (xnview browser) {xnview -browser}"
|
find_it xnview append "[exec] (xnview browser) {xnview -browser}"
|
||||||
find_it blender append "[exec] (blender) {blender -w}"
|
find_it blender append "[exec] (blender) {blender -w}"
|
||||||
|
@ -1165,6 +1166,7 @@ append_submenu "${OFFICEMENU}"
|
||||||
done
|
done
|
||||||
|
|
||||||
normal_find abiword kword wordperfect katoob acroread xpdf lyx
|
normal_find abiword kword wordperfect katoob acroread xpdf lyx
|
||||||
|
normal_find dia xfig
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append_submenu "${GAMESMENU}"
|
append_submenu "${GAMESMENU}"
|
||||||
|
@ -1210,7 +1212,7 @@ append_submenu "${FBSETTINGSMENU}"
|
||||||
|
|
||||||
append_menu "[submenu] (${SYSTEMSTYLES}) {${STYLEMENUTITLE}}"
|
append_menu "[submenu] (${SYSTEMSTYLES}) {${STYLEMENUTITLE}}"
|
||||||
append "[stylesdir] (${PREFIX}/share/fluxbox/styles)"
|
append "[stylesdir] (${PREFIX}/share/fluxbox/styles)"
|
||||||
append "[stylesdir] (/usr/share/commonbox/styles/)"
|
append "[stylesdir] (/usr/share/commonbox/styles/)"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append_menu "[submenu] (${USERSTYLES}) {${STYLEMENUTITLE}}"
|
append_menu "[submenu] (${USERSTYLES}) {${STYLEMENUTITLE}}"
|
||||||
|
@ -1289,6 +1291,7 @@ append_submenu "${FBSETTINGSMENU}"
|
||||||
append "[commanddialog] (${FLUXBOXCOMMAND})"
|
append "[commanddialog] (${FLUXBOXCOMMAND})"
|
||||||
append "[reconfig] (${RELOADITEM})"
|
append "[reconfig] (${RELOADITEM})"
|
||||||
append "[restart] (${RESTARTITEM})"
|
append "[restart] (${RESTARTITEM})"
|
||||||
|
append "[exec] (${ABOUTITEM}) {(fluxbox -v; fluxbox -info | sed 1d) 2> /dev/null | xmessage -file - -center}"
|
||||||
append "[separator]"
|
append "[separator]"
|
||||||
append "[exit] (${EXITITEM})"
|
append "[exit] (${EXITITEM})"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue