mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
* Use alacritty when legacy gpu when install omarchy * Inline legacy GPU detection, install Alacritty only when needed
18 lines
515 B
Bash
18 lines
515 B
Bash
# Ghostty requires modern GPU acceleration (OpenGL/Vulkan) which is often unstable
|
|
# or missing on legacy hardware. Detect legacy GPU drivers and fall back to Alacritty.
|
|
|
|
legacy_drivers=("radeon")
|
|
|
|
for card in /sys/class/drm/card*; do
|
|
if [[ -e "$card/device/driver" ]]; then
|
|
driver=$(basename "$(readlink -f "$card/device/driver")")
|
|
|
|
for legacy in "${legacy_drivers[@]}"; do
|
|
if [[ "$driver" == "$legacy" ]]; then
|
|
omarchy-install-terminal alacritty
|
|
exit 0
|
|
fi
|
|
done
|
|
fi
|
|
done
|