game -> Game, for scripts

This commit is contained in:
dec05eba
2024-06-03 20:56:25 +02:00
parent 04db56aa8f
commit f608c6b74c
3 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
# gpu-screen-recorder -w screen -f 60 -a "$(pactl get-default-sink).monitor" -r 60 -sc scripts/record-save-application-name.sh -c mp4 -o "$HOME/Videos"
window=$(xdotool getwindowfocus)
window_name=$(xdotool getwindowclassname "$window" || xdotool getwindowname "$window" || echo "game")
window_name=$(xdotool getwindowclassname "$window" || xdotool getwindowname "$window" || echo "Game")
window_name="$(echo "$window_name" | tr '/\\' '_')"
video_dir="$HOME/Videos/Replays/$window_name"