configs/desktop/scripts/macro.sh
Lucas Barbieri b55a2629fb move scripts to the right dir
turns out i was dumping them in 2 different places lmao
2024-01-16 13:08:59 -03:00

28 lines
428 B
Bash
Executable File

#!/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