summaryrefslogtreecommitdiff
path: root/dot/local
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-05-30 15:42:48 -0400
committerAndrew Cady <d@jerkface.net>2020-05-30 15:42:48 -0400
commitfc49cb44ae436bd2988ed0ae507ea0bec251548f (patch)
treee7768dccc8388160ee2d43978a7754dc972d7c93 /dot/local
parent26672cb9450af1fd61e4b55958f2ced3c0aa83a5 (diff)
xvnc fix for local $DISPLAY > :0
Diffstat (limited to 'dot/local')
-rwxr-xr-xdot/local/bin/xvnc4
1 files changed, 3 insertions, 1 deletions
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()
21 21
22reverse_connection() 22reverse_connection()
23{ 23{
24 port=5500 24 d=${DISPLAY%.*}
25 d=${d#:}
26 port=$((5500 + d))
25 xvncviewer -fullscreen -encodings "copyrect tight zrle hextile" -listen & 27 xvncviewer -fullscreen -encodings "copyrect tight zrle hextile" -listen &
26 pid=$! 28 pid=$!
27 quietly ssh -o ControlPath=none \ 29 quietly ssh -o ControlPath=none \