diff options
Diffstat (limited to 'scripts/replay-application-name.sh')
-rwxr-xr-x | scripts/replay-application-name.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/replay-application-name.sh b/scripts/replay-application-name.sh index a5b4a88..826ca3b 100755 --- a/scripts/replay-application-name.sh +++ b/scripts/replay-application-name.sh @@ -2,4 +2,5 @@ window=$(xdotool selectwindow) window_name=$(xdotool getwindowclassname "$window" || xdotool getwindowname "$window" || echo "game") +window_name="$(echo "$window_name" | tr '/\\' '_')" gpu-screen-recorder -w "$window" -f 60 -c mkv -a "$(pactl get-default-sink).monitor" -r 60 -o "$HOME/Videos/replay/$window_name" |