Merge branch 'master' of github.com:dylanaraps/neofetch

This commit is contained in:
Dylan Araps 2017-01-23 23:59:38 +11:00
commit 546c13c100
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,10 @@
## Contributors
- **[@SomaUlte](https://github.com/SomaUlte)**
## Info
**GPU**<br \>
- [Linux] Display detailed information about Intel GPUs. **[@SomaUlte](https://github.com/SomaUlte)**

View file

@ -1075,7 +1075,12 @@ get_gpu() {
;;
*"intel"*)
gpu="Intel Integrated Graphics"
gpu="$(glxinfo | grep "Device:.*Intel")"
gpu="${gpu/*Intel/Intel}"
gpu="${gpu/'(R)'}"
gpu="${gpu/ \(*}"
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
;;
*"virtualbox"*)