Files
gpu-screen-recorder/scripts/replay-application-name.sh
2025-12-28 13:55:10 -08:00

7 lines
322 B
Bash
Executable File

#!/bin/sh
window=$(xdotool selectwindow)
window_name=$(xdotool getwindowname "$window" || xdotool getwindowclassname "$window" || echo "Game")
window_name="$(echo "$window_name" | tr '/\\' '_')"
gpu-screen-recorder -w "$window" -f 60 -c mkv -a default_output -bm cbr -q 40000 -r 60 -o "$HOME/Videos/Replays/$window_name"