diff options
author | Niels Martignène | 2016-09-08 22:06:40 +0200 |
---|---|---|
committer | Niels Martignène | 2016-09-08 22:17:16 +0200 |
commit | f77cdf6bff83bf9b0a8edd2073881745f39777ff (patch) | |
tree | 33e5b418a04c7f5fcb601a9cec8f4d69ac548adf | |
parent | eb1b48e9f8d7f4b45907d4df6c4336925823f75d (diff) | |
download | aur-f77cdf6bff83bf9b0a8edd2073881745f39777ff.tar.gz |
Fix repeating keystrokes in broken xdotool script
-rw-r--r-- | PKGBUILD | 4 | ||||
-rwxr-xr-x | teensyduino.sh | 26 |
2 files changed, 15 insertions, 15 deletions
@@ -30,7 +30,7 @@ source_i686+=("http://downloads.arduino.cc/arduino-${_arduino}-linux32.tar.xz" source_x86_64+=("http://downloads.arduino.cc/arduino-${_arduino}-linux64.tar.xz" "http://www.pjrc.com/teensy/td_${_pkgver//./}/TeensyduinoInstall.linux64") sha256sums=('473b82156505e9bd903e4d8484e8d183f2e3bf3c1f7e29940b815929ae597b68' - 'ee25f5421e529aacb11c19307c78ce97202329b14935f8eb6cbbf70806ae183b' + '0ad3b85a1b5a9a0dc0cd64685742b66368a338777a80a0bff29d01ac26816173' '270b55353eb438d3790c7245e5ae16ff8bac9f98cfe927d6c9f2146a34499323' 'SKIP' 'fa7eff0e0f1e8230941c3b016c40617887f52f1991db655a498309824291ca54' @@ -47,7 +47,7 @@ elif [ "$CARCH" == 'i686' ]; then fi build() { - msg2 "Running Teensyduino installer (takes around 60 seconds)" + msg2 "Running Teensyduino installer (takes around 50 seconds)" chmod +x "TeensyduinoInstall.linux${_bits}" xvfb-run ./teensyduino.sh "./TeensyduinoInstall.linux${_bits}" "${srcdir}/arduino-${_arduino}" diff --git a/teensyduino.sh b/teensyduino.sh index 1eea0988e185..b53d362911c9 100755 --- a/teensyduino.sh +++ b/teensyduino.sh @@ -8,19 +8,19 @@ $1 & sleep 5 xdotool search --class "teensyduino" \ windowfocus \ - key --delay 1000 space \ - key --delay 400 Tab \ - key --delay 400 Tab \ - key --delay 400 Tab \ - key --delay 400 Tab \ - key --delay 1000 space \ - key --delay 400 Tab \ - key --delay 400 Tab \ - key --delay 400 Tab \ - key --delay 400 Tab \ - key --delay 400 space \ - key --delay 400 Tab \ - key --delay 40000 space + key space sleep 1 \ + key Tab sleep 0.4 \ + key Tab sleep 0.4 \ + key Tab sleep 0.4 \ + key Tab sleep 0.4 \ + key space sleep 1 \ + key Tab sleep 0.4 \ + key Tab sleep 0.4 \ + key Tab sleep 0.4 \ + key Tab sleep 0.4 \ + key space sleep 1 \ + key Tab sleep 0.4 \ + key space sleep 35 killall $(basename $1) >/dev/null || exit 1 [ -d $2/hardware/teensy ] || exit 1 |