From 8d87ca5155aa95bf3b3ab94e419cc46ab862becd Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 15 Apr 2018 17:01:29 -0300 Subject: Run kvmx_xrandr when connecting using spice --- kvmx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kvmx') diff --git a/kvmx b/kvmx index c2a620e..6af78f9 100755 --- a/kvmx +++ b/kvmx @@ -249,6 +249,11 @@ function kvmx_spice { xdotool search --name "SPICEc:0" set_window --name $VM fi + # Set screen resolution + if [ "$xrandr" == "1" ]; then + kvmx_xrandr + fi + # Restart vdagent if [ "$ssh_support" == "y" ]; then echo "which kvmx-vdagent > /dev/null && DISPLAY=:0 kvmx-vdagent" | kvmx_ssh -- cgit v1.2.3