Skip to content

Instantly share code, notes, and snippets.

@dzervas
Created April 26, 2025 21:15
Show Gist options
  • Save dzervas/5115fd3dbf802961d0d2682664f94e46 to your computer and use it in GitHub Desktop.
Save dzervas/5115fd3dbf802961d0d2682664f94e46 to your computer and use it in GitHub Desktop.
Read Dead Redemption 2 five finger fillet auto script
#!/usr/bin/env fish
# Check if wtype is installed
if not command -v wtype > /dev/null
echo "Error: wtype is not installed. Please install it first:"
echo "For most distros: sudo apt install wtype or sudo pacman -S wtype"
exit 1
end
# Get start time
set start_time (date +%s)
set duration 20 # Duration in seconds
echo "Starting key simulation for $duration seconds..."
echo "Press Ctrl+C to stop"
# alias press_key="wtype -k"
alias press_key="xdotool key --delay 55"
hyprctl dispatch focusmonitor +1
sleep 2
press_key p
sleep 3
# Main loop
set wait_time 0.10
for lap in (seq 13)
# Current time
# set current_time (date +%s)
# set elapsed_time (math $current_time - $start_time)
# Check if we've passed the duration
# if test $elapsed_time -ge $duration
# echo "Finished $duration seconds of key simulation"
# break
# end
for key in a a a a a # Practice
# Strawberry
# for key in s s s s s # 0.75 1st
# for key in d d d d d # 0.74 2nd
# for key in s s s a a # 1.5 1st
# for key in a a a d d # 1.5 2nd
# for key in d s a s d # 3 1st
# for key in a d s d a # 3 2nd
# for key in s d a s a # 6 1st
# for key in d a s d s # 6 2nd
press_key w
sleep $wait_time
# wtype -k $key
press_key $key
sleep $wait_time
end
# sleep $wait_time
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment