diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-01-24 21:05:04 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-01-24 21:05:04 +0100 |
commit | c70c0c18bd57bc139b993c2fdf09055cf8f0acda (patch) | |
tree | 6858c300a1934348dac5f2a644b4c69f73369687 /scripts/replay-application-name.sh | |
parent | bbf509caf2dbf355ebc3d68ecc1b84e7669f195f (diff) |
Add example scripts to save recording in application specific directory
Diffstat (limited to 'scripts/replay-application-name.sh')
-rwxr-xr-x | scripts/replay-application-name.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/replay-application-name.sh b/scripts/replay-application-name.sh new file mode 100755 index 0000000..ada517c --- /dev/null +++ b/scripts/replay-application-name.sh @@ -0,0 +1,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" |