Files
gpu-screen-recorder/scripts/replay-application-name.sh
2024-03-22 01:14:12 +01:00

7 lines
325 B
Bash
Executable File

#!/bin/sh
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"