Files
2026-09-29 16:24:41 -04:00

12 lines
316 B
Bash
Executable File

#!/usr/bin/env bash
# scrollburst.sh — burst of mouse-wheel scrolling for N seconds
# Usage: scrollburst.sh [seconds] (default: 5)
DUR="${1:-5}"
CLICKS=$(( DUR * 50 )) # 50 wheel clicks/sec
for ((i=0; i<CLICKS; i++)); do
ydotool click 5C # 5 = wheel down, C = click
sleep 0.02
done