mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-26 10:35:06 +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
|
if [[ -f "/tmp/neofetch/gpu" ]]; then
|
||||||
source "/tmp/neofetch/gpu"
|
source "/tmp/neofetch/gpu"
|
||||||
else
|
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
|
case "$gpu" in
|
||||||
*"advanced"*)
|
*"advanced"*)
|
||||||
|
|||||||
Reference in New Issue
Block a user