Skip to content

Commit

Permalink
feat: dynamically set GPU variable in chromium.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiogenesis authored Dec 20, 2024
1 parent fd37a76 commit 17cc5c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/chromium.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
ARCH="$(arch)"

# GRAPHIC_DRIVER=[amd|intel|nvidia|default]
GRAPHIC_DRIVER=default
GPU_INFO=$(lspci | grep -E "VGA|3D" | grep -o -i -E "amd|intel|nvidia" | sort -u | tr '[:upper:]' '[:lower:]' | xargs)
if [ $(echo "$GPU_INFO" | wc -w) -gt 1 ]; then
GRAPHIC_DRIVER="default"
else
GRAPHIC_DRIVER=${GPU_INFO:-default}
fi

# WEB_DARKMODE=[on|off]
WEB_DARKMODE=off
Expand Down

0 comments on commit 17cc5c4

Please sign in to comment.