Files
omarchy/bin/omarchy-install-gaming-gpu-lib32
T
Kike FerraterandClaude Opus 5.5 65883c3890 Keep the lib32 driver helper from failing when no GPU is detected
With an empty package list the trailing && left the helper with exit
status 1, which stopped the Steam installer before Steam was installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 19:26:21 +02:00

33 lines
725 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Install lib32 graphics drivers (Vulkan + NVIDIA) for any detected GPUs.
# omarchy:group=install
# omarchy:name=gaming gpu-lib32
# omarchy:requires-sudo=true
set -e
echo "Installing lib32 graphics drivers..."
PACKAGES=()
declare -A VULKAN_DRIVERS=(
[Intel]=lib32-vulkan-intel
[AMD]=lib32-vulkan-radeon
)
for vendor in "${!VULKAN_DRIVERS[@]}"; do
if lspci | grep -iE "(VGA|Display).*$vendor" >/dev/null; then
PACKAGES+=("${VULKAN_DRIVERS[$vendor]}")
fi
done
if omarchy-hw-nvidia-gsp; then
PACKAGES+=(lib32-nvidia-utils)
elif omarchy-hw-nvidia-without-gsp; then
PACKAGES+=(lib32-nvidia-580xx-utils)
fi
if (( ${#PACKAGES[@]} > 0 )); then
omarchy-pkg-add "${PACKAGES[@]}"
fi