Files
gpu-screen-recorder/scripts/record-application-name.sh
2025-12-28 13:55:10 -08:00

7 lines
333 B
Bash
Executable File

#!/bin/sh
window=$(xdotool selectwindow)
window_name=$(xdotool getwindowname "$window" || xdotool getwindowclassname "$window" || echo "Game")
window_name="$(echo "$window_name" | tr '/\\' '_')"
gpu-screen-recorder -w "$window" -f 60 -a default_output -o "$HOME/Videos/recording/$window_name/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")"