Skip to content

Commit 25b190d

Browse files
committed
changes:
- fixed single tablet when used on the right - more testing
1 parent 009fc89 commit 25b190d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

exttab.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function main()
2424
exit 1
2525
fi
2626

27-
trap finish 1 2 3 9 15 SIGINT INT
27+
trap stop 1 2 3 9 15 SIGINT INT
2828
}
2929

3030
function start()
@@ -45,6 +45,13 @@ function start()
4545
local _1_SIDE=${3}
4646
fi
4747

48+
if [[ "${_1_SIDE}" == "right" ]]
49+
then
50+
_CLIP=${_EX_MNTR_HREZ}
51+
else
52+
_CLIP=0
53+
fi
54+
4855
#### modeline and name
4956
local _MD=$(cvt ${_LREZ%%x*} ${_LREZ##*x} \
5057
| tail -n 1 \
@@ -69,7 +76,7 @@ function start()
6976
## start x11vnc
7077
x11vnc \
7178
-display :0 \
72-
-clip ${_LREZ}+0+0 \
79+
-clip ${_LREZ}+${_CLIP}+0 \
7380
-rfbport ${_1_PORT} \
7481
-quiet \
7582
2>/dev/null 1>&2 &
@@ -178,7 +185,7 @@ elif [[ ${_TBL_CNT} -eq 1 ]]
178185
then
179186
echo "Tablet resolution in format #####x#####"
180187
read -p 'resoultion: ' _TBL_REZ
181-
read -p 'left or right of monitor [l or r]: ' _TBL_SIDE
188+
read -p 'left or right of monitor [left or right]: ' _TBL_SIDE
182189
main
183190
start 1 ${_TBL_REZ} ${_TBL_SIDE}
184191
elif [[ ${_TBL_CNT} -eq 0 ]]

0 commit comments

Comments
 (0)