diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-11-09 10:22:20 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-11-09 10:22:20 -0200 |
commit | 232c85ea9323771b09cad4b2363498f7534989fe (patch) | |
tree | 12339fea83da2d359131a53a657ccc8ecbd9ff99 /lib/keyringer/actions/sclip | |
parent | 29d1d44e723441d76cd5a426b94c9e0d0feef01b (diff) | |
parent | dc4c62e5bffc41a3a128440341078de9075bd856 (diff) | |
download | keyringer-232c85ea9323771b09cad4b2363498f7534989fe.tar.gz keyringer-232c85ea9323771b09cad4b2363498f7534989fe.tar.bz2 |
Merge branch 'develop'
Diffstat (limited to 'lib/keyringer/actions/sclip')
-rwxr-xr-x | lib/keyringer/actions/sclip | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/keyringer/actions/sclip b/lib/keyringer/actions/sclip new file mode 100755 index 0000000..e4c88fa --- /dev/null +++ b/lib/keyringer/actions/sclip @@ -0,0 +1,23 @@ +#!/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 $* + +# Move to the next window +if which xdotool &> /dev/null; then + xdotool key alt+Tab +fi + +# Sleep +sleep 5 + +# Overwrite clipboard +cat $RANDOM | sha256sum | base64 -d | xclip |