aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-08-04 10:53:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-08-04 10:53:09 -0300
commite599ade1dfb590fc21bfd53a64dcff718ae7b110 (patch)
tree8422d5fa73a063c9a1079b765853364713b8095f
parent9627eb1b00e1c21a4d6d37752193969feea1bf14 (diff)
downloadkvmx-e599ade1dfb590fc21bfd53a64dcff718ae7b110.tar.gz
kvmx-e599ade1dfb590fc21bfd53a64dcff718ae7b110.tar.bz2
Feat: spice: notification on Awesome VM when a Spice session is triggered
-rw-r--r--ChangeLog.md11
-rwxr-xr-xkvmx5
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog.md b/ChangeLog.md
index 6347bad..668816c 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -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 1af07f2..3a7e59d 100755
--- 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