mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Add -sc example script to save the replay video to a folder with the game name
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
window=$(xdotool selectwindow)
|
||||
window_name=$(xdotool getwindowclassname "$window" || xdotool getwindowname "$window" || echo "game")
|
||||
window_name="$(echo "$window_name" | tr '/\\' '_')"
|
||||
gpu-screen-recorder -w "$window" -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/Replays/$window_name"
|
||||
|
||||
Reference in New Issue
Block a user