You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
361 B
Bash

#!/bin/bash
VAL_TO_USE=1;
if [ $# -eq 0 ]
then
echo "No arguments supplied. Assuming default value of 1."
else
VAL_TO_USE=${1}
fi
sleep 1
for (( i = 1; i <= $VAL_TO_USE; i++ ))
do
sleep 1
xdotool key Print
sleep 1
xdotool key Enter
sleep 0.8
xdotool key Home
sleep 1
xdotool key Print
sleep 1
xdotool key Enter
sleep 0.8
xdotool key Ctrl+w
done