From: Silvio Rhatto Date: Sun, 15 Apr 2018 20:01:29 +0000 (-0300) Subject: Run kvmx_xrandr when connecting using spice X-Git-Tag: 0.1.0~266 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8d87ca5155aa95bf3b3ab94e419cc46ab862becd;p=kvmx.git Run kvmx_xrandr when connecting using spice --- 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