mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
gpu [intel]: Show driver version if glxinfo isn't installed
This commit is contained in:
3
neofetch
3
neofetch
@@ -1244,9 +1244,12 @@ get_gpu() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*"intel"*)
|
*"intel"*)
|
||||||
|
type -p glxinfo >/dev/null && \
|
||||||
gpu="$(glxinfo | grep "Device:.*Intel")"
|
gpu="$(glxinfo | grep "Device:.*Intel")"
|
||||||
|
|
||||||
gpu="${gpu/*Intel/Intel}"
|
gpu="${gpu/*Intel/Intel}"
|
||||||
gpu="${gpu/'(R)'}"
|
gpu="${gpu/'(R)'}"
|
||||||
|
gpu="${gpu/'Corporation'}"
|
||||||
gpu="${gpu/ \(*}"
|
gpu="${gpu/ \(*}"
|
||||||
|
|
||||||
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
|
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
|
||||||
|
|||||||
Reference in New Issue
Block a user