]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Switch windows at sclip
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Oct 2016 18:20:51 +0000 (16:20 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 27 Oct 2016 18:20:51 +0000 (16:20 -0200)
lib/keyringer/actions/sclip

index 8f2debdcf087dad2aa45fd22f3fe64043f5ea312..e4c88fa79161be8de034ab4c26ec2d90f9a2523f 100755 (executable)
@@ -11,6 +11,11 @@ source "$LIB" || exit 1
 shift
 keyringer $KEYRING xclip $*
 
+# Move to the next window
+if which xdotool &> /dev/null; then
+  xdotool key alt+Tab
+fi
+
 # Sleep
 sleep 5