28 lines
428 B
Bash
28 lines
428 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
running="/tmp/running"
|
||
|
if [ -f "$running" ]; then
|
||
|
pid=$(cat "$running")
|
||
|
kill $pid
|
||
|
rm "$running"
|
||
|
else
|
||
|
while true; do
|
||
|
# spam e
|
||
|
# xdotool keydown ctrl ; xdotool keyup ctrl
|
||
|
# xdotool keydown e
|
||
|
# xdotool keyup e
|
||
|
|
||
|
# glaive
|
||
|
# xdotool keydown e
|
||
|
# sleep 1.1
|
||
|
# xdotool keyup e
|
||
|
# sleep 0.3
|
||
|
# xdotool click 2
|
||
|
# sleep 0.2
|
||
|
xdotool click 1
|
||
|
sleep 1
|
||
|
|
||
|
done &
|
||
|
echo "$!" >"$running"
|
||
|
fi
|