This shows you the differences between the selected revision and the current version of the page.
| dzen:dz9menu 2008/07/16 17:46 | dzen:dz9menu 2009/04/08 11:45 current | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| # Syntax: dz9menu <menufile> | # Syntax: dz9menu <menufile> | ||
| + | #Position | ||
| X=20 | X=20 | ||
| Y=0 | Y=0 | ||
| WIDTH=110 | WIDTH=110 | ||
| + | #Font | ||
| FONT='-*-fixed-medium-*-*-*-10-*-*-*-*-*-iso10646-*' | FONT='-*-fixed-medium-*-*-*-10-*-*-*-*-*-iso10646-*' | ||
| + | # Width of the graphical separator (default 80% of window's width) | ||
| SEPARATOR_WIDTH=`expr $WIDTH - \( $WIDTH / 100 \) \* 20` | SEPARATOR_WIDTH=`expr $WIDTH - \( $WIDTH / 100 \) \* 20` | ||
| [ -f "$1" ] && MENUFILE="$1" || exit | [ -f "$1" ] && MENUFILE="$1" || exit | ||
| + | # number of visible menu entries (access the others through scrolling up/down) | ||
| LINES=`wc -l "$MENUFILE"|sed -e 's/ .*//'` | LINES=`wc -l "$MENUFILE"|sed -e 's/ .*//'` | ||
| [ $LINES -gt 20 ] && LINES=20 | [ $LINES -gt 20 ] && LINES=20 | ||