update from Han
This commit is contained in:
parent
8d3bd5be1d
commit
70f4c49f29
1 changed files with 79 additions and 28 deletions
|
@ -22,7 +22,7 @@
|
||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
# DEALINGS IN THE SOFTWARE.
|
# DEALINGS IN THE SOFTWARE.
|
||||||
#
|
#
|
||||||
# $Id: fluxbox-generate_menu,v 1.36 2003/06/06 02:18:34 rathnor Exp $
|
# $Id: fluxbox-generate_menu,v 1.37 2003/06/10 12:14:35 fluxgen Exp $
|
||||||
|
|
||||||
#
|
#
|
||||||
# Portability notes:
|
# Portability notes:
|
||||||
|
@ -100,18 +100,27 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# ugly code for solaris compat.
|
# ugly code for solaris compat.
|
||||||
find_it() {
|
case $(uname) in
|
||||||
file=`which $1 2> /dev/null`
|
Linux|*BSD)
|
||||||
if [ -x "$file" ]; then
|
find_it() {
|
||||||
if [ $# -gt 1 ]; then
|
which $1 > /dev/null 2>&1 && shift && $*
|
||||||
shift
|
}
|
||||||
$*
|
;;
|
||||||
fi
|
*)
|
||||||
return 0
|
find_it() {
|
||||||
else
|
file=`which $1 2> /dev/null`
|
||||||
return 1
|
if [ -x "$file" ]; then
|
||||||
fi
|
if [ $# -gt 1 ]; then
|
||||||
}
|
shift
|
||||||
|
$*
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
else
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
append() {
|
append() {
|
||||||
echo " $*" >> ${FILENAME}
|
echo " $*" >> ${FILENAME}
|
||||||
|
@ -189,6 +198,7 @@ SYSTEMSTYLES='System Styles'
|
||||||
TERMINALMENU='Terminals'
|
TERMINALMENU='Terminals'
|
||||||
USERSTYLES='User Styles'
|
USERSTYLES='User Styles'
|
||||||
VIDEOMENU='Video'
|
VIDEOMENU='Video'
|
||||||
|
WINDOWMANAGERS='Window Managers'
|
||||||
WORKSPACEMENU='Workspace List'
|
WORKSPACEMENU='Workspace List'
|
||||||
XUTILSMENU='X-utils'
|
XUTILSMENU='X-utils'
|
||||||
|
|
||||||
|
@ -201,6 +211,7 @@ case ${LC_ALL} in
|
||||||
#OFFICEMENU='Office'
|
#OFFICEMENU='Office'
|
||||||
#SYSTEMSTYLES='óÔÉÌÉ'
|
#SYSTEMSTYLES='óÔÉÌÉ'
|
||||||
#USERSTYLES='óÔÉÌÉ'
|
#USERSTYLES='óÔÉÌÉ'
|
||||||
|
#WINDOWMANAGERS='WindowManagers'
|
||||||
BROWSERMENU='âÒÁÕÚÅÒÙ'
|
BROWSERMENU='âÒÁÕÚÅÒÙ'
|
||||||
CONFIGUREMENU='îÁÓÔÒÏÊËÁ'
|
CONFIGUREMENU='îÁÓÔÒÏÊËÁ'
|
||||||
EDITORMENU='òÅÄÁËÔÏÒÙ'
|
EDITORMENU='òÅÄÁËÔÏÒÙ'
|
||||||
|
@ -220,6 +231,7 @@ case ${LC_ALL} in
|
||||||
XUTILSMENU='X-ÕÔÉÌÉÔÙ'
|
XUTILSMENU='X-ÕÔÉÌÉÔÙ'
|
||||||
;;
|
;;
|
||||||
de_DE*) # german locales
|
de_DE*) # german locales
|
||||||
|
#WINDOWMANAGERS='Window Managers'
|
||||||
BACKGROUNDMENU='Hintergrundbilder'
|
BACKGROUNDMENU='Hintergrundbilder'
|
||||||
BACKGROUNDMENUTITLE='Hintergrundbild setzen'
|
BACKGROUNDMENUTITLE='Hintergrundbild setzen'
|
||||||
BROWSERMENU='Internet-Browser'
|
BROWSERMENU='Internet-Browser'
|
||||||
|
@ -251,6 +263,7 @@ case ${LC_ALL} in
|
||||||
#OFFICEMENU='Office'
|
#OFFICEMENU='Office'
|
||||||
#SYSTEMSTYLES='Stiler'
|
#SYSTEMSTYLES='Stiler'
|
||||||
#USERSTYLES='Stiler'
|
#USERSTYLES='Stiler'
|
||||||
|
#WINDOWMANAGERS='Window Managers'
|
||||||
BROWSERMENU='Browsers'
|
BROWSERMENU='Browsers'
|
||||||
CONFIGUREMENU='Konfiguration'
|
CONFIGUREMENU='Konfiguration'
|
||||||
EDITORMENU='Editorer'
|
EDITORMENU='Editorer'
|
||||||
|
@ -291,6 +304,7 @@ case ${LC_ALL} in
|
||||||
SYSTEMSTYLES='Systeem Stylen'
|
SYSTEMSTYLES='Systeem Stylen'
|
||||||
TERMINALMENU='Terminals'
|
TERMINALMENU='Terminals'
|
||||||
USERSTYLES='Gebruikers Stylen'
|
USERSTYLES='Gebruikers Stylen'
|
||||||
|
WINDOWMANAGERS='Window Managers'
|
||||||
WORKSPACEMENU='Werkveld Lijst'
|
WORKSPACEMENU='Werkveld Lijst'
|
||||||
XUTILSMENU='X-utils'
|
XUTILSMENU='X-utils'
|
||||||
;;
|
;;
|
||||||
|
@ -301,6 +315,7 @@ case ${LC_ALL} in
|
||||||
#OFFICEMENU='Office'
|
#OFFICEMENU='Office'
|
||||||
#SYSTEMSTYLES='Tyylit'
|
#SYSTEMSTYLES='Tyylit'
|
||||||
#USERSTYLES='Tyylit'
|
#USERSTYLES='Tyylit'
|
||||||
|
#WINDOWMANAGERS='Window Managers'
|
||||||
BROWSERMENU='Selaimet'
|
BROWSERMENU='Selaimet'
|
||||||
CONFIGUREMENU='Konfigurointi'
|
CONFIGUREMENU='Konfigurointi'
|
||||||
EDITORMENU='Editorit'
|
EDITORMENU='Editorit'
|
||||||
|
@ -326,6 +341,7 @@ case ${LC_ALL} in
|
||||||
#OFFICEMENU='Office'
|
#OFFICEMENU='Office'
|
||||||
#SYSTEMSTYLES='¥¹¥¿¥¤¥ë'
|
#SYSTEMSTYLES='¥¹¥¿¥¤¥ë'
|
||||||
#USERSTYLES='¥¹¥¿¥¤¥ë'
|
#USERSTYLES='¥¹¥¿¥¤¥ë'
|
||||||
|
#WINDOWMANAGERS='Window Managers'
|
||||||
BROWSERMENU='¥Ö¥é¥¦¥¶'
|
BROWSERMENU='¥Ö¥é¥¦¥¶'
|
||||||
CONFIGUREMENU='ÀßÄê'
|
CONFIGUREMENU='ÀßÄê'
|
||||||
EDITORMENU='¥¨¥Ç¥£¥¿'
|
EDITORMENU='¥¨¥Ç¥£¥¿'
|
||||||
|
@ -350,7 +366,8 @@ case ${LC_ALL} in
|
||||||
#FILEUTILSMENU='File utils'
|
#FILEUTILSMENU='File utils'
|
||||||
#OFFICEMENU='Office'
|
#OFFICEMENU='Office'
|
||||||
#SYSTEMSTYLES='Styles de la Systeme'
|
#SYSTEMSTYLES='Styles de la Systeme'
|
||||||
#USERSTYLES='Styles de la '
|
#USERSTYLES='Styles de la'
|
||||||
|
#WINDOWMANAGERS='Window Managers'
|
||||||
BROWSERMENU='Navigateurs'
|
BROWSERMENU='Navigateurs'
|
||||||
CONFIGUREMENU='Configurer'
|
CONFIGUREMENU='Configurer'
|
||||||
EDITORMENU='Editeurs'
|
EDITORMENU='Editeurs'
|
||||||
|
@ -376,6 +393,7 @@ case ${LC_ALL} in
|
||||||
#OFFICEMENU='Office'
|
#OFFICEMENU='Office'
|
||||||
#SYSTEMSTYLES='Stile'
|
#SYSTEMSTYLES='Stile'
|
||||||
#USERSTYLES='Stile'
|
#USERSTYLES='Stile'
|
||||||
|
#WINDOWMANAGERS='Window Managers'
|
||||||
BROWSERMENU='Browsers'
|
BROWSERMENU='Browsers'
|
||||||
CONFIGUREMENU='Configurazione'
|
CONFIGUREMENU='Configurazione'
|
||||||
EDITORMENU='Editori'
|
EDITORMENU='Editori'
|
||||||
|
@ -399,6 +417,7 @@ case ${LC_ALL} in
|
||||||
#FILEUTILSMENU='File utils'
|
#FILEUTILSMENU='File utils'
|
||||||
#OFFICEMENU='Office'
|
#OFFICEMENU='Office'
|
||||||
#RESTARTITEM='Restart'
|
#RESTARTITEM='Restart'
|
||||||
|
#WINDOWMANAGERS='WindowManagers'
|
||||||
BACKGROUNDMENU='Fundaluri'
|
BACKGROUNDMENU='Fundaluri'
|
||||||
BACKGROUNDMENUTITLE='Alege fundalul'
|
BACKGROUNDMENUTITLE='Alege fundalul'
|
||||||
BROWSERMENU='Navigatoare'
|
BROWSERMENU='Navigatoare'
|
||||||
|
@ -424,6 +443,7 @@ case ${LC_ALL} in
|
||||||
;;
|
;;
|
||||||
es_ES*) # spanish locales
|
es_ES*) # spanish locales
|
||||||
#FILEUTILSMENU='File utils'
|
#FILEUTILSMENU='File utils'
|
||||||
|
#WINDOWMANAGERS='WindowManagers'
|
||||||
BACKGROUNDMENU='Fondos'
|
BACKGROUNDMENU='Fondos'
|
||||||
BACKGROUNDMENUTITLE='Seleccionar Fondo'
|
BACKGROUNDMENUTITLE='Seleccionar Fondo'
|
||||||
BROWSERMENU='Navegadores'
|
BROWSERMENU='Navegadores'
|
||||||
|
@ -451,6 +471,7 @@ case ${LC_ALL} in
|
||||||
;;
|
;;
|
||||||
pl_PL*) # Polish locales
|
pl_PL*) # Polish locales
|
||||||
#FILEUTILSMENU='File utils'
|
#FILEUTILSMENU='File utils'
|
||||||
|
#WINDOWMANAGERS='WindowManagers'
|
||||||
BACKGROUNDMENU='Tapety'
|
BACKGROUNDMENU='Tapety'
|
||||||
BACKGROUNDMENUTITLE='Ustaw tapet?'
|
BACKGROUNDMENUTITLE='Ustaw tapet?'
|
||||||
BROWSERMENU='Przegl?darki'
|
BROWSERMENU='Przegl?darki'
|
||||||
|
@ -508,6 +529,19 @@ if [ ! "${INSTALL}" = "Yes" ];then
|
||||||
# Name of the outputfile
|
# Name of the outputfile
|
||||||
# FILENAME=${HOME}/.fluxbox/menu
|
# FILENAME=${HOME}/.fluxbox/menu
|
||||||
|
|
||||||
|
# MENUTITLE=\`fluxbox -version|cut -d " " -f-2\`
|
||||||
|
|
||||||
|
# standard url for console-browsers
|
||||||
|
# HOMEPAGE=fluxbox.org
|
||||||
|
|
||||||
|
# location with your own menu-entries
|
||||||
|
# USERMENU=~/.fluxbox/usermenu
|
||||||
|
|
||||||
|
# --- Datadirs
|
||||||
|
# These are datadirs; So if fluxbox data is installed in
|
||||||
|
# /usr/share/fluxbox
|
||||||
|
# your datadir is: /usr/share
|
||||||
|
|
||||||
# Data-dir
|
# Data-dir
|
||||||
# PKGDATADIR=/usr/share
|
# PKGDATADIR=/usr/share
|
||||||
|
|
||||||
|
@ -518,21 +552,12 @@ if [ ! "${INSTALL}" = "Yes" ];then
|
||||||
# Kde data-dir
|
# Kde data-dir
|
||||||
# KPKGDATADIR=/opt/kde/share
|
# KPKGDATADIR=/opt/kde/share
|
||||||
|
|
||||||
# MENUTITLE=\`fluxbox -version|cut -d " " -f-2\`
|
|
||||||
|
|
||||||
# standard url for console-browsers
|
|
||||||
# HOMEPAGE=fluxbox.org
|
|
||||||
|
|
||||||
# location with your own menu-entries
|
|
||||||
# USERMENU=~/.fluxbox/usermenu
|
|
||||||
|
|
||||||
# Sepparate the list of background-dirs with semicolumns ':'
|
# Sepparate the list of background-dirs with semicolumns ':'
|
||||||
# BACKGROUND_DIRS="${HOME}/.fluxbox/backgrounds/:/usr/local/share/fluxbox/backgrounds/:/usr/share/wallpapers"
|
# BACKGROUND_DIRS="${HOME}/.fluxbox/backgrounds/:/usr/local/share/fluxbox/backgrounds/:/usr/share/wallpapers"
|
||||||
|
|
||||||
|
|
||||||
# --- Boolean variables.
|
# --- Boolean variables.
|
||||||
# Setting a variable to no won't help. Comment them out if you don't want them.
|
# Setting a variable to ``no'' won't help. Comment them out if you don't
|
||||||
# Setting are overruled by the command-line options.
|
# want them. Setting are overruled by the command-line options.
|
||||||
|
|
||||||
# Include all backgrounds in your backgrounds-directory
|
# Include all backgrounds in your backgrounds-directory
|
||||||
# BACKGROUNDMENUITEM=yes
|
# BACKGROUNDMENUITEM=yes
|
||||||
|
@ -763,7 +788,7 @@ append_submenu "${MULTIMEDIAMENU}"
|
||||||
|
|
||||||
append_submenu "${MUSICMENU}"
|
append_submenu "${MUSICMENU}"
|
||||||
normal_find xmms noatun alsaplayer gqmpeg aumix xmixer gmix kmix grecord \
|
normal_find xmms noatun alsaplayer gqmpeg aumix xmixer gmix kmix grecord \
|
||||||
kmidi xplaycd soundtracker grip easytag audacity zinf
|
kmidi xplaycd soundtracker grip easytag audacity zinf rhythmbox
|
||||||
find_it cdcd append "[exec] (cdcd) {${DEFAULT_TERM} -e cdcd}"
|
find_it cdcd append "[exec] (cdcd) {${DEFAULT_TERM} -e cdcd}"
|
||||||
find_it cplay append "[exec] (cplay) {${DEFAULT_TERM} -e cplay}"
|
find_it cplay append "[exec] (cplay) {${DEFAULT_TERM} -e cplay}"
|
||||||
find_it alsamixer append "[exec] (AlsaMixer) {${DEFAULT_TERM} -e alsamixer}"
|
find_it alsamixer append "[exec] (AlsaMixer) {${DEFAULT_TERM} -e alsamixer}"
|
||||||
|
@ -890,7 +915,7 @@ append_submenu "${FBSETTINGSMENU}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
else
|
else
|
||||||
echo "Warning: You wanted a background-menu but I couldn't find any backgrounds in:
|
echo "Warning: You wanted a background-menu but I couldn't find any backgrounds in:
|
||||||
$BACKGROUND_DIRS"
|
$BACKGROUND_DIRS" >&2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -905,7 +930,33 @@ append_submenu "${FBSETTINGSMENU}"
|
||||||
"[exec] (Windowname) {xprop WM_CLASS|cut -d \\\" -f 2|xmessage -file - -center}"
|
"[exec] (Windowname) {xprop WM_CLASS|cut -d \\\" -f 2|xmessage -file - -center}"
|
||||||
find_it import append "[exec] (screenshot) {import screenshot.png && qiv -W 50 screenshot.png}"
|
find_it import append "[exec] (screenshot) {import screenshot.png && qiv -W 50 screenshot.png}"
|
||||||
find_it fbrun append "[exec] (Run) {fbrun}"
|
find_it fbrun append "[exec] (Run) {fbrun}"
|
||||||
find_it fluxbox-generate_menu append "[exec] (Regen menu) {fluxbox-generate_menu}"
|
find_it fluxbox-generate_menu append "[exec] (regenerate menu) {fluxbox-generate_menu}"
|
||||||
|
append_menu_end
|
||||||
|
|
||||||
|
append_submenu ${WINDOWMANAGERS}
|
||||||
|
find_it starticewm append "[restart] (icewm) {starticewm}" ||\
|
||||||
|
find_it icewm append "[restart] (icewm) {icewm}"
|
||||||
|
find_it ion append "[restart] (ion) {ion}"
|
||||||
|
find_it startkde append "[restart] (kde) {startkde}"
|
||||||
|
find_it startsawfish append "[restart] (sawfish) {startsawfish}" ||\
|
||||||
|
find_it sawfish append "[restart] (sawfish) {sawfish}"
|
||||||
|
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}"
|
||||||
|
find_it startenlightenment append "[restart] (enlightenment) {startenlightenment}" ||\
|
||||||
|
find_it enlightenment append "[restart] (enlightenment) {enlightenment}"
|
||||||
|
find_it startafterstep append "[restart] (afterstep) {startafterstep}" ||\
|
||||||
|
find_it afterstep append "[restart] (afterstep) {afterstep}"
|
||||||
|
find_it startopenbox append "[restart] (openbox) {startopenbox}" ||\
|
||||||
|
find_it openbox append "[restart] (openbox) {openbox}"
|
||||||
|
find_it startevilwm append "[restart] (evilwm) {startevilwm}" ||\
|
||||||
|
find_it evilwm append "[restart] (evilwm) {evilwm}"
|
||||||
|
find_it startwaimea append "[restart] (waimea) {startwaimea}" ||\
|
||||||
|
find_it waimea append "[restart] (waimea) {waimea}"
|
||||||
|
find_it startxfce append "[restart] (xfce) {startxfce}"
|
||||||
|
find_it startpekwm append "[restart] (pekwm) {startpekwm}" ||\
|
||||||
|
find_it pekwm append "[restart] (pekwm) {pekwm}"
|
||||||
append_menu_end
|
append_menu_end
|
||||||
|
|
||||||
append "[reconfig] (${RELOADITEM})"
|
append "[reconfig] (${RELOADITEM})"
|
||||||
|
|
Loading…
Reference in a new issue