aboutsummaryrefslogtreecommitdiff
path: root/scripts/replay-application-name.sh
blob: a5b4a88ece818857d9f72ce6729ee06438f80e6f (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 "$window" -f 60 -c mkv -a "$(pactl get-default-sink).monitor" -r 60 -o "$HOME/Videos/replay/$window_name"