2015-08-20 14:37:06 -06:00
#!/bin/bash
. ./lib
options=()
2016-04-03 15:53:36 -06:00
options+=("virtualbox-guest-utils" "(For Virtualbox)" off)
2015-08-20 14:37:06 -06:00
options+=("nvidia" "" off)
2020-04-09 16:07:45 -06:00
options+=("nvidia-390xx" "(AUR) End of life" off)
2019-06-06 14:02:26 -06:00
#options+=("nvidia-340xx" "" off) #DEAD ?
2016-04-03 15:53:02 -06:00
options+=("nvidia-dkms" "(For custom kernel)" off)
2020-03-15 16:17:27 -06:00
options+=("nvidia-390xx-dkms" "(AUR) (For custom kernel)" off)
2019-06-06 14:02:26 -06:00
#options+=("nvidia-340xx-dkms" "(For custom kernel)" off) #DEAD ?
2015-08-20 14:37:06 -06:00
#options+=("catalyst" "(AUR)" off)
#options+=("catalyst-total-hd234k" "(AUR)" off)
2022-11-10 14:27:23 -07:00
sel=$(dialog --backtitle "$apptitle" --title "XOrg video drivers :" --cancel-button "Back" --checklist "Choose video drivers for your system :" 0 0 0 \
2015-08-20 14:37:06 -06:00
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then
exit 1
fi
for itm in $sel; do
case $itm in
2022-11-10 14:27:23 -07:00
"nvidia-390xx" | \
"nvidia-390xx-dkms") aurpkg="$aurpkg $(echo $itm | sed 's/"//g')";;
2015-08-20 14:37:06 -06:00
*) pkg="$pkg $(echo $itm | sed 's/"//g')";;
esac
done
instpkg "$pkg" "$aurpkg"
exit 0