mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-07 15:19:55 +09:00
Add example scripts to save recording in application specific directory
This commit is contained in:
5
scripts/record-application-name.sh
Executable file
5
scripts/record-application-name.sh
Executable 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")"
|
||||
Reference in New Issue
Block a user