From a29237e0700e11f0c97ec9ff86df4edd646372b2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 24 Aug 2025 17:49:26 +0200 Subject: [PATCH] More resilience here too --- bin/omarchy-cmd-screenrecord | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-cmd-screenrecord b/bin/omarchy-cmd-screenrecord index a0c781b1..5914fd5b 100755 --- a/bin/omarchy-cmd-screenrecord +++ b/bin/omarchy-cmd-screenrecord @@ -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" "$@"