aboutsummaryrefslogtreecommitdiff
path: root/scripts/record-application-name.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-01-24 22:34:01 +0100
committerdec05eba <dec05eba@protonmail.com>2024-01-24 22:34:01 +0100
commit540ad510f6bd479d678e0b3e0896dc5d112c4016 (patch)
treed9b96ad1c02682b0821fd1fddf0079ec0e160eac /scripts/record-application-name.sh
parentc160cda2f98ef653cea9ebd7c34f487ce6e7f873 (diff)
record window instead in script
Diffstat (limited to 'scripts/record-application-name.sh')
-rwxr-xr-xscripts/record-application-name.sh2
1 files changed, 1 insertions, 1 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")"