Created
July 27, 2017 12:49
-
-
Save ShikherVerma/93ee3a5d4e25f726d4b34f9bdf0435f1 to your computer and use it in GitHub Desktop.
A xdotool script to insert Tab in 600 lines. Just an example for future me. I don't remember where I used this script.
This file contains 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
#!/bin/bash | |
WID=`xdotool search --title "Chromium" | head -1` | |
xdotool windowfocus $WID | |
for i in {1..600} | |
do | |
xdotool key Tab | |
xdotool key Enter | |
sleep 4 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it was probably on a very shitty website which required me to repeatedly press
Enter
Tab
and I couldn't do it quickly because of a crappy animation so that's why I added thatsleep 4
.