diff options
Diffstat (limited to 'dot/local/bin/xvnc')
-rwxr-xr-x | dot/local/bin/xvnc | 4 |
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 | ||
22 | reverse_connection() | 22 | reverse_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 \ |