aboutsummaryrefslogtreecommitdiff
path: root/scripts/replay.sh
blob: 2781e1e57f68d7bbac1d4564fcc843810a8c0b65 (plain)
1
2
3
4
5
6
#!/bin/sh -e

[ "$#" -ne 4 ] && echo "usage: replay.sh <window_id> <fps> <replay_time_sec> <output_directory>" && exit 1
active_sink="$(pactl get-default-sink).monitor"
mkdir -p "$4"
gpu-screen-recorder -w "$1" -c mkv -f "$2" -a "$active_sink" -r "$3" -o "$4"