summaryrefslogtreecommitdiff
path: root/lib/keyringer/actions/sclip
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-12-21 10:19:48 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-12-21 10:19:48 -0200
commit491ea8e72879c9c9244c2740e8a428b97249b58a (patch)
treeb4ae36d0568d80b9ff75596dfb6c1131b2ae2e56 /lib/keyringer/actions/sclip
parent7cb12867a3818b25ecca7bc8706563af7c7e4f93 (diff)
parentea9326628e6e872798a96063fccd76d964a75583 (diff)
downloadkeyringer-491ea8e72879c9c9244c2740e8a428b97249b58a.tar.gz
keyringer-491ea8e72879c9c9244c2740e8a428b97249b58a.tar.bz2
Imported Upstream version 0.5.0upstream_keyringer_0.5.0
Diffstat (limited to 'lib/keyringer/actions/sclip')
-rwxr-xr-xlib/keyringer/actions/sclip9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/keyringer/actions/sclip b/lib/keyringer/actions/sclip
index e4c88fa..6016f2b 100755
--- a/lib/keyringer/actions/sclip
+++ b/lib/keyringer/actions/sclip
@@ -11,13 +11,18 @@ source "$LIB" || exit 1
shift
keyringer $KEYRING xclip $*
+# Se window switch combo
+if [ -z "$XDOTOOL_NEXT_WINDOW" ]; then
+ XDOTOOL_NEXT_WINDOW="alt+Tab"
+fi
+
# Move to the next window
if which xdotool &> /dev/null; then
- xdotool key alt+Tab
+ xdotool key $XDOTOOL_NEXT_WINDOW
fi
# Sleep
sleep 5
# Overwrite clipboard
-cat $RANDOM | sha256sum | base64 -d | xclip
+echo $RANDOM | sha256sum | base64 | xclip