]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Terminal: adds stterm support
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 26 May 2016 20:44:30 +0000 (17:44 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 26 May 2016 20:44:30 +0000 (17:44 -0300)
terminal

index 57f7bf403f140253db3d02738fae609d2b01ea55..f5aa6757128ef67382945f421149a7c6e91f7dfa 100755 (executable)
--- a/terminal
+++ b/terminal
@@ -20,9 +20,16 @@ fi
 if [ ! -z "$FONT" ]; then
   F_FONT="-F $FONT"
   FN_FONT="-fn $FONT"
+  f_FONT="-f $FONT"
 fi
 
-if [ "$TERM" == "rxvt" ]; then
+if [ "$TERM" == "stterm" ]; then
+  if [ ! -z "$1" ]; then
+    stterm $f_FONT -T $TITLE -e bash -rcfile $HOME/.terminal -c "$*"
+  else
+    stterm $f_FONT -T $TITLE -e bash -rcfile $HOME/.terminal
+  fi
+elif [ "$TERM" == "rxvt" ]; then
   if [ ! -z "$1" ]; then
     rxvt-unicode -bg black +sb -fg white $FN_FONT $DIMENSIONS -title $TITLE \
                  -e bash -rcfile $HOME/.terminal -c "$*"