Skip to content

Instantly share code, notes, and snippets.

@mishajib
Last active May 30, 2023 19:08
Show Gist options
  • Save mishajib/4966a472e0a4a27f5a9c28d8f5fae360 to your computer and use it in GitHub Desktop.
Save mishajib/4966a472e0a4a27f5a9c28d8f5fae360 to your computer and use it in GitHub Desktop.
Window changer by xdotool in linux by bash scripts. Here automate the `alt + tab` command.
#!/bin/bash
while true; do
xdotool keydown alt key Tab; sleep 2; xdotool keyup alt
sleep 30;
done
# First need to make executable by Run this command.
# chmod +x file_name.sh
# And then run like this from folder -> ./file_name.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment