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