some fixes to x11vnc

This commit is contained in:
Shihaam Abdul Rahman 2022-11-10 08:57:01 +05:00
parent 729f2ea8ea
commit b5ea01a380
Signed by: shihaam
GPG Key ID: 3B007D22E5584980

View File

@ -29,11 +29,15 @@ xrandr | grep disconnected | awk '{print $1}'
echo "---------------"
read -p 'Enter one of the ports to be used for VNC: ' PORT
echo Adding new display
xrandr --addmode $PORT $RESOLUTION
sleep 2
echo Activating new display
sleep 2
xrandr --output $PORT --mode $RESOLUTION
echo "---------------"
echo Configure the new diplay where you want
echo "---------------"
sleep 3
arandr >> /dev/null
GEO=$(xrandr | grep $PORT | awk '{print $3}')