blob: 8cb548eb1e8133be04253624a4a4ca60eb365774 (
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
|
#!/bin/bash
thisfile=$(readlink -f "$0")
thisdir=$(dirname "$thisfile")
cd "$thisdir"
LAYOUT=${1:-""}
[ -x "$(which $COLORTERM)" ] && TERM=$COLORTERM
[ -z $TERM ] && TERM=xterm
XHC_HB04=$(which xhc-hb04)
if [ ! -z "$LAYOUT" ] ; then
dashI="-I $LAYOUT"
fi
if [ ! -z "$debug" ] ; then
echo "COLORTERM=$COLORTERM"
echo "TERM=$TERM"
echo "XHC_HB04=$XHC_HB04"
echo "LAYOUT=$LAYOUT"
fi
$TERM -e "$XHC_HB04 -x $dashI"
|