Your current Bash bot is doing a decent job simulating behavior, but as you mentioned, the movement is too deterministic and lacks enough randomness and multidimensional presence. Especially:
- Mouse movement has a horizontal bias but lacks believable complex paths (like loops or arcs).
- Vertical WASD movement (S and Space) is underrepresented.
- Mouse movement dynamics (parabolic, cubic) could be more natural and less static.
🔧 Key Improvements to Make Movement More Natural:
Let's tackle each bottleneck:
✅ More Vertical Movement
You currently have:
- "S" keypress at 10%
- "Spacebar" at 15%
That totals 25% vertical movement, which is low when compared to 90% “W” hold. Let's:
- Reduce W to 75%
- Increase "S" key and "Spacebar" to 25% and 25% respectively
Update:
### W KEY (75% hold)
if [ "$chance" -le 75 ]; then
...
Update S logic:
### S Key (25%)
if [ "$chance" -gt 75 ] && [ "$chance" -le 100 ]; then
xdotool keydown s; sleep 0.08; xdotool keyup s
echo "Tapped S"
fi
Then separate Spacebar chance completely:
space_chance=$((RANDOM % 100))
### Spacebar (25%)
if [ "$space_chance" -lt 25 ]; then
xdotool key space
echo "Pressed SPACE"
fi
✅ More Natural “WASD” Movement
Make A/D hold occasionally or tap with delays:
move_chance=$((RANDOM % 100))
if [ "$move_chance" -lt 33 ]; then
xdotool keydown a; sleep 0.05; xdotool keyup a
echo "Tapped A"
elif [ "$move_chance" -lt 66 ]; then
xdotool keydown d; sleep 0.05; xdotool keyup d
echo "Tapped D"
fi
Add some small lateral hold behavior for realism:
ad_hold=$((RANDOM % 100))
if [ "$ad_hold" -lt 5 ]; then
key=$((RANDOM % 2))
if [ "$key" -eq 0 ]; then
xdotool keydown a; sleep 0.15; xdotool keyup a
echo "Held A"
else
xdotool keydown d; sleep 0.15; xdotool keyup d
echo "Held D"
fi
fi
✅ More Complex Mouse Movements (Linear, Parabolic, Cubic, Loops)
Improved smooth_move() with:
- Cubic movement
- Loop movement (circular/oscillating)