aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-11-28 10:30:00 -0200
committerSilvio Rhatto <rhatto@riseup.net>2018-11-28 10:30:00 -0200
commit9ece175e58b5743073eb608c3210a037e5b09408 (patch)
treee1ce078ca1fb5dc4253451f8bcf3de1cb8cd6a64
parent432ad867c44e761ba26e303dcd9c2c3d58f63331 (diff)
downloadkvmx-9ece175e58b5743073eb608c3210a037e5b09408.tar.gz
kvmx-9ece175e58b5743073eb608c3210a037e5b09408.tar.bz2
Awesome UX support at kvmx-spice-copy
-rwxr-xr-xkvmx-spice-copy15
1 files changed, 15 insertions, 0 deletions
diff --git a/kvmx-spice-copy b/kvmx-spice-copy
index 6d9d3bd..524553d 100755
--- a/kvmx-spice-copy
+++ b/kvmx-spice-copy
@@ -29,6 +29,11 @@ if [ "$BASENAME" == "kvmx-spice-copy" ]; then
mkdir -p "$TMP"
echo "$DEST" > $SPOOL
+ # UX
+ if which awesome-client &> /dev/null; then
+ echo "naughty.notify({title = \"KVMX Clipboard:\", text =\"Set orig to active window's system\", timeout = 2})" | awesome-client
+ fi
+
# Optional logging to ~/.xsession-erros
#echo "[kvmx-copy] [`date '+%Y%m%d %H:%M:%S'`] set ORIG to $DEST"
else
@@ -57,6 +62,16 @@ else
# Optional logging to ~/.xsession-erros
#echo "[kvmx-paste] [`date '+%Y%m%d %H:%M:%S'`] from $ORIG to $DEST"
+ # UX
+ #if which awesome-client &> /dev/null; then
+ # echo "naughty.notify({title = \"KVMX Clipboard:\", text =\"Pasting from $ORIG to $DEST\", timeout = 2})" | awesome-client
+ #fi
+
# Dispatch
kvmx-clipboard $ORIG $DEST
+
+ # UX
+ if which awesome-client &> /dev/null; then
+ echo "naughty.notify({title = \"KVMX Clipboard:\", text =\"Done pasting from $ORIG to $DEST\", timeout = 2})" | awesome-client
+ fi
fi