Created
February 28, 2021 15:45
-
-
Save shvchk/ecfcb9c43050a08cb55ece9efb935da9 to your computer and use it in GitHub Desktop.
Do not let xdotool fail, see jordansissel/xdotool#60
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env sh | |
T0=$(date +%s) | |
while [ $(( `date +%s` - T0 )) -lt 10 ]; do | |
[ -z "$(xdotool $@ 2>&1)" ] && break | |
sleep 0.1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment