From a391b64e61388812b9687c9d6763b863e2ac7cdf Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 24 Aug 2025 16:51:20 +0200 Subject: [PATCH] Install wl-screenrec as a just-in-time dependence --- bin/omarchy-cmd-screenrecord | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/omarchy-cmd-screenrecord b/bin/omarchy-cmd-screenrecord index 4abffc6c..c0111cc6 100755 --- a/bin/omarchy-cmd-screenrecord +++ b/bin/omarchy-cmd-screenrecord @@ -1,5 +1,10 @@ #!/bin/bash +if ! lspci | grep -Eqi 'nvidia|intel.*graphics' && ! command -v wl-screenrec >/dev/null; then + notify-send "Installing wl-screenrec in order to make screen recordings..." + yay -S --noconfirm wl-screenrec +fi + [[ -f ~/.config/user-dirs.dirs ]] && source ~/.config/user-dirs.dirs OUTPUT_DIR="${OMARCHY_SCREENRECORD_DIR:-${XDG_VIDEOS_DIR:-$HOME/Videos}}"