File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
3030function 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 ]]
178185then
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}
184191elif [[ ${_TBL_CNT} -eq 0 ]]
You can’t perform that action at this time.
0 commit comments