aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-04-15 17:01:29 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-04-15 17:01:29 -0300
commit8d87ca5155aa95bf3b3ab94e419cc46ab862becd (patch)
treeebe445a279a02687e75ba1d473911a94bdc4dccb
parent1e0962a05a99456ea6bba97065c1e63aa3f0b881 (diff)
downloadkvmx-8d87ca5155aa95bf3b3ab94e419cc46ab862becd.tar.gz
kvmx-8d87ca5155aa95bf3b3ab94e419cc46ab862becd.tar.bz2
Run kvmx_xrandr when connecting using spice
-rwxr-xr-xkvmx5
1 files changed, 5 insertions, 0 deletions
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