]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Awesome UX support at kvmx-spice-copy
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 28 Nov 2018 12:30:00 +0000 (10:30 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 28 Nov 2018 12:30:00 +0000 (10:30 -0200)
kvmx-spice-copy

index 6d9d3bd103bf8495201732804b3ec1d0fd75e670..524553dfa813cfea3bc60ab52d4aa79065580046 100755 (executable)
@@ -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