From e599ade1dfb590fc21bfd53a64dcff718ae7b110 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 4 Aug 2024 10:53:09 -0300 Subject: Feat: spice: notification on Awesome VM when a Spice session is triggered --- ChangeLog.md | 11 +++++++---- kvmx | 5 +++++ 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 -- cgit v1.2.3