aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx6
-rw-r--r--kvmxfile8
2 files changed, 13 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index 2819599..b234f5c 100755
--- 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
diff --git a/kvmxfile b/kvmxfile
index 0e7e56f..dab6f2d 100644
--- 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"