summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-10-23 18:24:56 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-10-23 18:24:56 -0200
commit18d90207bf78a8763f112ab7da9d560f0454a8a6 (patch)
tree4a94c535b0973b14cf5cbd6789996b3cc58d9c41
parentf702a0a5edc84cd3a0002c1622db803212f8a5d1 (diff)
downloadkeyringer-18d90207bf78a8763f112ab7da9d560f0454a8a6.tar.gz
keyringer-18d90207bf78a8763f112ab7da9d560f0454a8a6.tar.bz2
Adds sclip action
-rwxr-xr-xlib/keyringer/actions/sclip18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/keyringer/actions/sclip b/lib/keyringer/actions/sclip
new file mode 100755
index 0000000..8f2debd
--- /dev/null
+++ b/lib/keyringer/actions/sclip
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+#
+# Decrypt secret header to clipboard, sleep and cleanup.
+#
+
+# Load functions
+LIB="`dirname $0`/../functions"
+source "$LIB" || exit 1
+
+# Clip password
+shift
+keyringer $KEYRING xclip $*
+
+# Sleep
+sleep 5
+
+# Overwrite clipboard
+cat $RANDOM | sha256sum | base64 -d | xclip