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

@@ -1,6 +1,6 @@
#!/bin/sh
window=$(xdotool selectwindow)
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 '/\\' '_')"
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")"