]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Notify awesome at xclip-clean
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 6 Jun 2019 21:56:58 +0000 (18:56 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 6 Jun 2019 21:56:58 +0000 (18:56 -0300)
xclip-clean

index fff98a1e4b832715e15cc5c69d8069d7db4b6b46..cabb79a6785d63d6ed7078b9a32f3e9bba1f7c4a 100755 (executable)
@@ -3,4 +3,9 @@
 # Clipboard cleaner
 #
 
-echo $RANDOM | xclip
+# Parameters
+CONTENT="$RANDOM"
+
+# Dispatch
+echo $CONTENT | xclip
+echo "naughty.notify({title = \"New clipboard content:\", text =\"$CONTENT\", timeout = 2})" | awesome-client