]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Give delay on xdotool at sclip
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 19 Aug 2017 12:06:42 +0000 (09:06 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 19 Aug 2017 12:06:42 +0000 (09:06 -0300)
lib/keyringer/actions/sclip

index 156762a71d05edd4b9d6a9ae34a52aa6a5e4e024..de9c3b58c5e5bc552aad015dbfcee955c4f897ee 100755 (executable)
@@ -13,12 +13,14 @@ keyringer $KEYRING xclip $*
 
 # Se window switch combo
 if [ -z "$XDOTOOL_NEXT_WINDOW" ]; then
-  XDOTOOL_NEXT_WINDOW="alt+Tab"
+  XDOTOOL_NEXT_WINDOW="Alt_L+Tab"
 fi
 
 # Move to the next window
 if which xdotool &> /dev/null; then
-  xdotool key $XDOTOOL_NEXT_WINDOW
+  # Use a smaller delay otherwise the window
+  # manager might ignore the key combo
+  xdotool key --delay 2 $XDOTOOL_NEXT_WINDOW
 fi
 
 # Sleep