I wanted to run an autoclick but it only worked with the maximized terminal, when it was minimized by pressing f1 I did not answer the clicks I was reading a post on execution in the background but I did not understand how I could do it here is the script:
#!/bin/bash
while true; do
read -sn3 key
if [ "$key" = "$(tput kf1) " ]; then
xdotool click 1
xdotool click 1
xdotool click 1
fi
done
How could I make it work?
I also want to know how (tput kf1)
modify it to the left click