aboutsummaryrefslogtreecommitdiff
path: root/scripts/replay-application-name.sh
blob: 826ca3bd28d570a62a4f7dc23d158c46f551fab1 (plain)
1
2
3
4
5
6
#!/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"