More resilience here too

This commit is contained in:
David Heinemeier Hansson 2025-08-24 17:49:26 +02:00
parent 9834a40796
commit a29237e070

View File

@ -18,7 +18,11 @@ screenrecording() {
else
if ! command -v wl-screenrec >/dev/null; then
notify-send "Installing wl-screenrec in order to make screen recordings..."
yay -S --noconfirm wl-screenrec
if omarchy-pkg-aur-accessible; then
yay -S --noconfirm wl-screenrec
else
notify-send "Installing wl-screenrec failed due to AUR being unavailable..."
fi
fi
wl-screenrec -f "$filename" --ffmpeg-encoder-options="-c:v libx264 -crf 23 -preset medium -movflags +faststart" "$@"