aboutsummaryrefslogtreecommitdiff
path: root/terminal
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-06-08 18:32:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-06-08 18:32:59 -0300
commitf039096df6f7a611bd52b2dfd4d61f2fdc1c1e6d (patch)
tree89ba330b0d11fd79f737e71356bd98408d48196f /terminal
parent0354255a97fa2fb52853ada69318ee5b00c716ce (diff)
downloadutils-x11-f039096df6f7a611bd52b2dfd4d61f2fdc1c1e6d.tar.gz
utils-x11-f039096df6f7a611bd52b2dfd4d61f2fdc1c1e6d.tar.bz2
Make terminal work with undefined geometries
Diffstat (limited to 'terminal')
-rwxr-xr-xterminal12
1 files changed, 8 insertions, 4 deletions
diff --git a/terminal b/terminal
index e76974a..955c0a1 100755
--- a/terminal
+++ b/terminal
@@ -13,21 +13,25 @@ if [ -z "$TITLE" ]; then
fi
fi
+if [ ! -z "$GEOMETRY" ]; then
+ DIMENSIONS="-g $GEOMETRY"
+fi
+
if [ "$TERM" == "rxvt" ]; then
if [ ! -z "$1" ]; then
- rxvt-unicode -bg black +sb -fg white -fn $FONT -g $GEOMETRY -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 -g $GEOMETRY -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 \
- --buttonbar 0 -g $GEOMETRY -n$TITLE -e bash -rcfile $HOME/.terminal -c "$*"
+ --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 \
- --buttonbar 0 -g $GEOMETRY -n$TITLE -e bash -rcfile $HOME/.terminal
+ --buttonbar 0 $DIMENSIONS -n$TITLE -e bash -rcfile $HOME/.terminal
fi
elif [ "$TERM" == "xterm" ]; then
if [ ! -z "$1" ]; then