From 961fff2de6ef80c8ef0ccc4b2e3324f39ab619e6 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Wed, 12 Aug 2026 11:27:28 +0530 Subject: vnc extend like second monitor --- scripts/vnc-extend.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 scripts/vnc-extend.sh (limited to 'scripts') diff --git a/scripts/vnc-extend.sh b/scripts/vnc-extend.sh new file mode 100755 index 0000000..6004958 --- /dev/null +++ b/scripts/vnc-extend.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env bash + +set -euo pipefail + +DISPLAY=:0 + +x11vnc \ + -display :0 \ + -auth /run/user/1000/lyxauth \ + -clip 1366x768+1920+0 \ + -viewonly \ + -noshm \ + -noxdamage \ + -nowf \ + -forever \ + -shared \ + -rfbauth "$HOME/.config/vnc/passwd" + +# x11vnc \ +# -display :0 \ +# -auth /run/user/1000/lyxauth \ +# -clip 1366x768+1920+0 \ +# -xwarppointer \ +# -noshm \ +# -noxdamage \ +# -forever \ +# -shared \ +# -rfbauth "$HOME/.config/vnc/passwd" \ +# -debug_pointer + +# x11vnc \ +# -display :0 \ +# -auth /run/user/1000/lyxauth \ +# -clip 1366x768+1920+0 \ +# -noshm \ +# -noxdamage \ +# -nowf \ +# -forever \ +# -shared \ +# -rfbauth "$HOME/.config/vnc/passwd" \ +# -debug_pointer -- cgit v1.2.3