diff options
author | Andrew Cady <d@jerkface.net> | 2020-05-30 15:42:48 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-05-30 15:42:48 -0400 |
commit | fc49cb44ae436bd2988ed0ae507ea0bec251548f (patch) | |
tree | e7768dccc8388160ee2d43978a7754dc972d7c93 /dot | |
parent | 26672cb9450af1fd61e4b55958f2ced3c0aa83a5 (diff) |
xvnc fix for local $DISPLAY > :0
Diffstat (limited to 'dot')
-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 \ |