gpu [intel]: Show driver version if glxinfo isn't installed
This commit is contained in:
parent
77596ea868
commit
f2300d3306
1 changed files with 4 additions and 1 deletions
5
neofetch
5
neofetch
|
@ -1244,9 +1244,12 @@ get_gpu() {
|
|||
;;
|
||||
|
||||
*"intel"*)
|
||||
gpu="$(glxinfo | grep "Device:.*Intel")"
|
||||
type -p glxinfo >/dev/null && \
|
||||
gpu="$(glxinfo | grep "Device:.*Intel")"
|
||||
|
||||
gpu="${gpu/*Intel/Intel}"
|
||||
gpu="${gpu/'(R)'}"
|
||||
gpu="${gpu/'Corporation'}"
|
||||
gpu="${gpu/ \(*}"
|
||||
|
||||
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
|
||||
|
|
Loading…
Reference in a new issue