]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Adds spice_windowmove config
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 17 Aug 2017 19:32:57 +0000 (16:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 17 Aug 2017 19:32:57 +0000 (16:32 -0300)
kvmx

diff --git a/kvmx b/kvmx
index a670f55696cca3ea86e169d96caea8885c7c8f28..dc7b468f68477e4564db5976fc69c54bf88138c7 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -224,8 +224,12 @@ function kvmx_spice {
   # Give time to connect
   sleep 5
 
-  # Fix window titles
+  # Fix window title an position
   if which /usr/bin/xdotool &> /dev/null; then
+    if [ ! -z "$spice_windowmove" ]; then
+      xdotool search --name "SPICEc:0" windowmove $spice_windowmove
+    fi
+
     xdotool search --name "SPICEc:0" set_window --name $VM
   fi
 }