aboutsummaryrefslogtreecommitdiff
path: root/scripts/record-application-name.sh
blob: 4139c9c94090caf4d7204169cc1e12945ba5e4b1 (plain)
1
2
3
4
5
6
#!/bin/sh

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