Add example scripts to save recording in application specific directory

This commit is contained in:
dec05eba
2024-01-24 21:05:04 +01:00
parent bbf509caf2
commit c70c0c18bd
4 changed files with 12 additions and 2 deletions

View File

@@ -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 -a "$(pactl get-default-sink).monitor" -o "$HOME/Videos/recording/$window_name/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")"