]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix: docs: on xclient_windowmove
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 4 Aug 2024 13:10:28 +0000 (10:10 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 4 Aug 2024 13:10:28 +0000 (10:10 -0300)
kvmx
kvmxfile

diff --git a/kvmx b/kvmx
index 2819599cb0325167eaf88fdf174a3b2ce18733e0..b234f5cb15112f651c39508ddb9958f14566a59d 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -295,8 +295,12 @@ function kvmx_spice {
   # Give time to connect
   sleep 2
 
-  # Fix window title an position
+  # Fix window title and position
   if which /usr/bin/xdotool &> /dev/null; then
+    # Set window position
+    #
+    # Configuration xclient_windowmove can be set either at kvmxconfig
+    # or as a user setting at ~/.config/kvmxconfig (which will affect all guests).
     if [ ! -z "$xclient_windowmove" ]; then
       #xdotool search --name "SPICEc:0" windowmove $xclient_windowmove
       xdotool search --name "spice display 0:0" windowmove $xclient_windowmove
index 0e7e56f9620007ee6dc0bbe7b405453638264948..dab6f2de0994e43c6e666c02493729741687a1c9 100644 (file)
--- a/kvmxfile
+++ b/kvmxfile
@@ -132,6 +132,14 @@ run_spice_client="0"
 #spice_client="virt-viewer"
 spice_client="spicy"
 
+# Move the SPICE window client to a specific position in the desktop.
+#
+# Configuration xclient_windowmove can be set either at kvmxconfig
+# or as a user setting at ~/.config/kvmxconfig (which will affect all guests).
+#
+# Example: move X11 client window below the WM bar
+#xclient_windowmove="0 21"
+
 # Set this if you want that kvmx-vdagent is triggered after the machine boots.
 kvmx_vdagent="0"