all repos — fluxbox @ e4b63778369c461980720bf345e95eb8e13579c2

custom fork of the fluxbox windowmanager

fixed so it runs on SunOS
fluxgen fluxgen
commit

e4b63778369c461980720bf345e95eb8e13579c2

parent

0b1e5a15dc42cb66fdcc3c381f4b3de4e14f68e5

1 files changed, 21 insertions(+), 10 deletions(-)

jump to
M data/fluxbox-generate_menudata/fluxbox-generate_menu

@@ -69,21 +69,21 @@ fi

} append() { - echo " $*" >> $FILENAME + echo " $*" >> ${FILENAME} } append_menu() { - echo "$*" >> $FILENAME + echo "$*" >> ${FILENAME} } append_submenu() { - echo >> $FILENAME + echo >> ${FILENAME} append_menu "[submenu] ($1)" } append_menu_end() { append_menu "[end]" - echo >> $FILENAME + echo >> ${FILENAME} } menu_entry() {

@@ -150,19 +150,30 @@

# Set Defaults # menufile name and make a backup -[ ! $FILENAME ] && FILENAME=~/.fluxbox/menu -[ -e $FILENAME ] && cp -f $FILENAME ${FILENAME}.bak +if [ -z ${FILENAME} ]; then + FILENAME=~/.fluxbox/menu +fi + +if [ ! -z ${FILENAME} ]; then + if [ -w ${FILENAME} ]; then + cp -f ${FILENAME} ${FILENAME}.bak + fi +fi #packagedatadir -[ ! $PKGDATADIR ] && PKGDATADIR=/usr/share +if [ -z "${PKGDATADIR}" ]; then + PKGDATADIR=/usr/share +fi # menutitle -[ ! $MENUTITLE ] && MENUTITLE="Fluxbox" +if [ -z "${MENUTITLE}" ]; then + MENUTITLE="Fluxbox" +fi # Start of menu -echo "[begin] ($MENUTITLE)" > $FILENAME +echo "[begin] ($MENUTITLE)" > ${FILENAME} find_it xterm append "[exec] (xterm) {xterm -fg white -bg black}" find_it nedit append "[exec] (nedit) {nedit}"

@@ -298,7 +309,7 @@ append_menu_end

fi -append_submenu Settings +append_submenu FB-Settings append "[workspaces] (Workspace List)" append_menu "[submenu] (Styles) {Choose a style...}"