Skip to content

Commit 68bd22f

Browse files
committed
plugins/openvscode-drive: Shrink VNC display to 800x600 to be friendly to smaller screens
1 parent 83dd599 commit 68bd22f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/openvscode-drive

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22

3+
readonly DISPLAY_MODE="800x600"
34
readonly X11_PORT="5900"
45
readonly VNC_PORT="6080"
56

@@ -37,6 +38,7 @@ then
3738
sleep 2
3839

3940
export DISPLAY=":$display"
41+
[ -n "$DISPLAY_MODE" ] && xrandr --output VNC-0 --mode "$DISPLAY_MODE"
4042
fi
4143

4244
exec unshare -U openvscode-server "$@"

0 commit comments

Comments
 (0)