From 540ad510f6bd479d678e0b3e0896dc5d112c4016 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 24 Jan 2024 22:34:01 +0100 Subject: record window instead in script --- scripts/record-application-name.sh | 2 +- scripts/replay-application-name.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/record-application-name.sh b/scripts/record-application-name.sh index 723d067..da8b262 100755 --- a/scripts/record-application-name.sh +++ b/scripts/record-application-name.sh @@ -2,4 +2,4 @@ window=$(xdotool selectwindow) window_name=$(xdotool getwindowclassname "$window" || xdotool getwindowname "$window" || echo "game") -gpu-screen-recorder -w screen -f 60 -a "$(pactl get-default-sink).monitor" -o "$HOME/Videos/recording/$window_name/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")" +gpu-screen-recorder -w "$window" -f 60 -a "$(pactl get-default-sink).monitor" -o "$HOME/Videos/recording/$window_name/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")" diff --git a/scripts/replay-application-name.sh b/scripts/replay-application-name.sh index ada517c..a5b4a88 100755 --- a/scripts/replay-application-name.sh +++ b/scripts/replay-application-name.sh @@ -2,4 +2,4 @@ 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" +gpu-screen-recorder -w "$window" -f 60 -c mkv -a "$(pactl get-default-sink).monitor" -r 60 -o "$HOME/Videos/replay/$window_name" -- cgit v1.2.3