From fc49cb44ae436bd2988ed0ae507ea0bec251548f Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Sat, 30 May 2020 15:42:48 -0400 Subject: xvnc fix for local $DISPLAY > :0 --- dot/local/bin/xvnc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dot/local') diff --git a/dot/local/bin/xvnc b/dot/local/bin/xvnc index 9378254..96a4395 100755 --- a/dot/local/bin/xvnc +++ b/dot/local/bin/xvnc @@ -21,7 +21,9 @@ quietly() reverse_connection() { - port=5500 + d=${DISPLAY%.*} + d=${d#:} + port=$((5500 + d)) xvncviewer -fullscreen -encodings "copyrect tight zrle hextile" -listen & pid=$! quietly ssh -o ControlPath=none \ -- cgit v1.2.3