aboutsummaryrefslogtreecommitdiff
path: root/scripts/replay-application-name.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/replay-application-name.sh')
-rwxr-xr-xscripts/replay-application-name.sh5
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"