Skip to content

Instantly share code, notes, and snippets.

@shvchk
Created February 28, 2021 15:45
Show Gist options
  • Save shvchk/ecfcb9c43050a08cb55ece9efb935da9 to your computer and use it in GitHub Desktop.
Save shvchk/ecfcb9c43050a08cb55ece9efb935da9 to your computer and use it in GitHub Desktop.
Do not let xdotool fail, see jordansissel/xdotool#60
#! /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