gpu [intel]: Show driver version if glxinfo isn't installed

This commit is contained in:
Dylan Araps 2017-12-22 10:42:58 +11:00
parent 77596ea868
commit f2300d3306

View file

@ -1244,9 +1244,12 @@ get_gpu() {
;;
*"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"