2022-11-25 16:42:32 +00:00
|
|
|
#!/bin/sh
|
2022-11-25 18:21:59 +00:00
|
|
|
paru --needed --noconfirm -Syu nvidia nvidia-utils sway-nvidia nvidia-vaapi-driver-git #lib32-nvidia-utils-beta
|
2022-11-25 16:42:32 +00:00
|
|
|
BLCONF=$(find /boot/loader/entries/ -type f -name '*.conf' -print0 | xargs -0 grep -l "arch")
|
|
|
|
echo "LOADER: ${BLCONF}"
|
|
|
|
|
|
|
|
if grep -R "nvidia_drm.modeset" $BLCONF > /dev/null
|
|
|
|
then
|
|
|
|
echo "modeset already set"
|
|
|
|
else
|
|
|
|
sudo sed -ie 's/^options.*$/& nvidia_drm.modeset=1/g' ${BLCONF}
|
|
|
|
fi
|