]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Feat: spice: notification on Awesome VM when a Spice session is triggered
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 4 Aug 2024 13:53:09 +0000 (10:53 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 4 Aug 2024 13:53:09 +0000 (10:53 -0300)
ChangeLog.md
kvmx

index 6347bad6e1e4c691c4b97c1167083f8038609970..668816cc505fee3b40dacbc68c0d7671c99f6143 100644 (file)
@@ -2,12 +2,15 @@
 
 ## 0.3.0 - unreleased
 
-* Improved spice window handling.
-
 * Per-mountpoint mode option (ro, rw).
 
-* Inotify action for watching a folder in the host and issuing commands in the
-  guest upon change.
+* Spice:
+  * Improved spice window handling.
+
+  * Inotify action for watching a folder in the host and issuing commands in the
+    guest upon change.
+
+  * Notification on Awesome VM when a Spice session is triggered.
 
 ## 0.2.0 - 2024-07-02
 
diff --git a/kvmx b/kvmx
index 1af07f28317cdafc9e4a9d7737029f854b701348..3a7e59d23ccf55b6905694495b8fdc0422ee62bb 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -265,6 +265,11 @@ function kvmx_spice {
     exit 1
   fi
 
+  # UX
+  if which awesome-client &> /dev/null; then
+    echo "naughty.notify({title = \"KVMX:\", text =\"Starting GUI session for $VM\", timeout = 2})" | awesome-client
+  fi
+
   local spicestring
 
   if [ "$spice_client" == "spicy" ] && which spicy &> /dev/null; then