mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
GPU: [Linux] lspci, look for 'Display'
This commit is contained in:
2
neofetch
2
neofetch
@@ -927,7 +927,7 @@ get_gpu() {
|
||||
if [[ -f "/tmp/neofetch/gpu" ]]; then
|
||||
source "/tmp/neofetch/gpu"
|
||||
else
|
||||
gpu="$(PATH="/sbin:$PATH" lspci -mm | awk -F '\\"|\\" \\"' '/3D|VGA/ {print $3 " " $4}')"
|
||||
gpu="$(PATH="/sbin:$PATH" lspci -mm | awk -F '\\"|\\" \\"' '/Display|3D|VGA/ {print $3 " " $4}')"
|
||||
|
||||
case "$gpu" in
|
||||
*"advanced"*)
|
||||
|
||||
Reference in New Issue
Block a user