aboutsummaryrefslogtreecommitdiff
path: root/scripts/record-application-name.sh
blob: 0411781b6bc922c77b5cec336ea3851feb2fe7ec (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 "$(pactl get-default-sink).monitor" -o "$HOME/Videos/recording/$window_name/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")"