diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-03-22 01:14:12 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-03-22 01:14:12 +0100 |
commit | c691c7213798e6aeec09c44da1cce4f2725a1964 (patch) | |
tree | 228e777b91f374fb11e3b479bcf0dcc35856142f /scripts/record-application-name.sh | |
parent | 1e466832b4d65e1dca54afb6214250ca86f63e7d (diff) |
application name scripts: replace / and \ with _
Diffstat (limited to 'scripts/record-application-name.sh')
-rwxr-xr-x | scripts/record-application-name.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/record-application-name.sh b/scripts/record-application-name.sh index da8b262..0411781 100755 --- a/scripts/record-application-name.sh +++ b/scripts/record-application-name.sh @@ -2,4 +2,5 @@ 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")" |