Files
gpu-screen-recorder/scripts/replay-application-name.sh

6 lines
270 B
Bash
Executable File

#!/bin/sh
window=$(xdotool selectwindow)
window_name=$(xdotool getwindowclassname "$window" || xdotool getwindowname "$window" || echo "game")
gpu-screen-recorder -w screen -f 60 -c mkv -a "$(pactl get-default-sink).monitor" -r 60 -o "$HOME/Videos/replay/$window_name"