mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
* install the needed packages for intel GPUs * keep forgetting that this is included by source --------- Co-authored-by: Nirav Patel <eclecticc@users.noreply.github.com>
15 lines
541 B
Bash
Executable File
15 lines
541 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This installs hardware video acceleration for Intel GPUs
|
|
# Check if we have an Intel GPU at all
|
|
if INTEL_GPU=$(lspci | grep -iE 'vga|3d|display' | grep -i 'intel'); then
|
|
# HD Graphics and newer uses intel-media-driver
|
|
if [[ "${INTEL_GPU,,}" =~ "hd graphics"|"xe"|"iris" ]]; then
|
|
sudo pacman -S --needed --noconfirm intel-media-driver
|
|
elif [[ "${INTEL_GPU,,}" =~ "gma" ]]; then
|
|
# Older generations from 2008 to ~2014-2017 use libva-intel-driver
|
|
sudo pacman -S --needed --noconfirm libva-intel-driver
|
|
fi
|
|
fi
|
|
|