aboutsummaryrefslogtreecommitdiff
path: root/terminal
blob: 47441e7e576cbfbffcea74f5f7cdcb3a7ccfd740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#
# Terminal emulator wrapper
#

source ~/.geometry || exit 1

if [ "$TERM" == "rxvt" ]; then
  if [ ! -z "$1" ]; then
    rxvt-unicode -bg black +sb -fg white -fn $FONT -g $GEOMETRY -title terminal \
                 -e bash -rcfile $HOME/.terminal -c "$*"
  else
    rxvt-unicode -bg black +sb -fg white -fn $FONT -g $GEOMETRY -title terminal \
                 -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 -nterminal -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 -nterminal -e bash -rcfile $HOME/.terminal
  fi
elif [ "$TERM" == "xterm" ]; then
  if [ ! -z "$1" ]; then
    xterm -u8 -fn $FONT -geometry $GEOMETRY -title terminal -e bash -c "$*"
  else
    xterm -u8 -fn $FONT -geometry $GEOMETRY -title terminal -e bash
  fi
fi