diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-07-22 19:22:41 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-07-22 19:22:41 -0300 |
commit | 3235385f6c89fe1295e2f7eca93710ed72d2fb47 (patch) | |
tree | d71f3efca199398980608679247911ac3e28fcbc /terminal | |
parent | f039096df6f7a611bd52b2dfd4d61f2fdc1c1e6d (diff) | |
download | utils-x11-3235385f6c89fe1295e2f7eca93710ed72d2fb47.tar.gz utils-x11-3235385f6c89fe1295e2f7eca93710ed72d2fb47.tar.bz2 |
Support for null FONT config on terminal
Diffstat (limited to 'terminal')
-rwxr-xr-x | terminal | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -17,26 +17,31 @@ if [ ! -z "$GEOMETRY" ]; then DIMENSIONS="-g $GEOMETRY" fi +if [ ! -z "$FONT" ]; then + F_FONT="-F $FONT" + FN_FONT="-fn $FONT" +fi + if [ "$TERM" == "rxvt" ]; then if [ ! -z "$1" ]; then - rxvt-unicode -bg black +sb -fg white -fn $FONT $DIMENSIONS -title $TITLE \ + rxvt-unicode -bg black +sb -fg white $FN_FONT $DIMENSIONS -title $TITLE \ -e bash -rcfile $HOME/.terminal -c "$*" else - rxvt-unicode -bg black +sb -fg white -fn $FONT $DIMENSIONS -title $TITLE \ + rxvt-unicode -bg black +sb -fg white $FN_FONT $DIMENSIONS -title $TITLE \ -e bash -rcfile $HOME/.terminal fi elif [ "$TERM" == "Eterm" ]; then if [ ! -z "$1" ]; then - Eterm --background-pixmap 0 --scrollbar 0 +sb -b black -f white -F $FONT --borderless no \ + Eterm --background-pixmap 0 --scrollbar 0 +sb -b black -f white $F_FONT --borderless no \ --buttonbar 0 $DIMENSIONS -n$TITLE -e bash -rcfile $HOME/.terminal -c "$*" else - Eterm --background-pixmap 0 --scrollbar 0 +sb -b black -f white -F $FONT --borderless no \ + Eterm --background-pixmap 0 --scrollbar 0 +sb -b black -f white $F_FONT --borderless no \ --buttonbar 0 $DIMENSIONS -n$TITLE -e bash -rcfile $HOME/.terminal fi elif [ "$TERM" == "xterm" ]; then if [ ! -z "$1" ]; then - xterm -u8 -fn $FONT -geometry $GEOMETRY -title $TITLE -e bash -c "$*" + xterm -u8 $FN_FONT -geometry $GEOMETRY -title $TITLE -e bash -c "$*" else - xterm -u8 -fn $FONT -geometry $GEOMETRY -title $TITLE -e bash + xterm -u8 $FN_FONT -geometry $GEOMETRY -title $TITLE -e bash fi fi |