Skip to content

Instantly share code, notes, and snippets.

@ShikherVerma
Created July 27, 2017 12:49
Show Gist options
  • Save ShikherVerma/93ee3a5d4e25f726d4b34f9bdf0435f1 to your computer and use it in GitHub Desktop.
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.
#!/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
@ShikherVerma
Copy link
Author

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 that sleep 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment