make screen recorder's default format .mp4 (#331)

This commit is contained in:
Cameron Smith
2024-10-17 17:08:38 +10:00
committed by GitHub
parent a366224786
commit 166120f603

View File

@@ -18,7 +18,7 @@ startRecording() {
target="$2" target="$2"
outputFile="recording_$(date +%Y-%m-%d_%H-%M-%S).mkv" outputFile="recording_$(date +%Y-%m-%d_%H-%M-%S).mp4"
outputPath="$outputDir/$outputFile" outputPath="$outputDir/$outputFile"
mkdir -p "$outputDir" mkdir -p "$outputDir"
@@ -41,7 +41,7 @@ stopRecording() {
fi fi
pkill -f gpu-screen-recorder pkill -f gpu-screen-recorder
recentFile=$(ls -t "$outputDir"/recording_*.mkv | head -n 1) recentFile=$(ls -t "$outputDir"/recording_*.mp4 | head -n 1)
notify-send "Recording stopped" "Your recording has been saved." \ notify-send "Recording stopped" "Your recording has been saved." \
-i video-x-generic \ -i video-x-generic \
-a "Screen Recorder" \ -a "Screen Recorder" \