wf-recorder instead of wl-screenrec (NVIDIA support for screen recording) (#278)

* use wf-recorder instead of wl-screenrec

wl-screenrec does not support NVIDIA drivers as of now

* install wf-recorder and migration for it

* use wl-screenrec for non-nvidia and wf-recorder otherwise

* useless comment

* only use one of the screen recording features
This commit is contained in:
Andreas Nigg
2025-07-22 15:47:25 +02:00
committed by GitHub
parent a94ee3dee8
commit 6d8a1e3bcf
3 changed files with 49 additions and 12 deletions

11
migrations/1753176520.sh Normal file
View File

@ -0,0 +1,11 @@
echo "Install wf-recorder for screen recording for nvidia"
if [ -n "$(lspci | grep -i 'nvidia')" ]; then
if ! command -v wf-recorder &>/dev/null; then
yay -S --noconfirm --needed wf-recorder
fi
if command -v wl-screenrec &>/dev/null; then
yay -R --noconfirm wl-screenrec
fi
fi