summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-08-19 09:06:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-08-19 09:06:42 -0300
commit610db184b851c21f69db412ce6d1870e0b438789 (patch)
treee7f45b2442a6e918aca709f1aa8202fdbd07522e
parent5d3a8d7c25c2ec07b0dc74bdf6603dea1e12180e (diff)
downloadkeyringer-610db184b851c21f69db412ce6d1870e0b438789.tar.gz
keyringer-610db184b851c21f69db412ce6d1870e0b438789.tar.bz2
Give delay on xdotool at sclip
-rwxr-xr-xlib/keyringer/actions/sclip6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/keyringer/actions/sclip b/lib/keyringer/actions/sclip
index 156762a..de9c3b5 100755
--- a/lib/keyringer/actions/sclip
+++ b/lib/keyringer/actions/sclip
@@ -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