mirror of https://github.com/Chizi123/Scripts.git

Joel Grunbaum
2021-08-24 40f5e4e11932669aeb0838612fea9bebd5c5182c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
 
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
    TOOL=ydotool
else
    TOOL=xdotool
fi
 
if [ "$(pgrep autoclick | wc -l)" = "2" ]; then 
    true
else
    pkill autoclick 
fi
 
while :; do
    $TOOL click 1
    sleep 0.1
done