mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
Added gpu support base
This commit is contained in:
27
fetch
27
fetch
@@ -631,6 +631,33 @@ getcpu () {
|
|||||||
cpu=${cpu// Six-Core/}
|
cpu=${cpu// Six-Core/}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getgpu () {
|
||||||
|
case "os" in
|
||||||
|
"Linux")
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
"Mac OS X")
|
||||||
|
|
||||||
|
;;
|
||||||
|
|
||||||
|
"BSD")
|
||||||
|
case "$distro" in
|
||||||
|
"FreeBSD")
|
||||||
|
gpu=$(pciconf -lv 2>/dev/null | grep -B 4 "VGA" | grep "device")
|
||||||
|
gpu=${gpu/device*=/}
|
||||||
|
gpu=${gpu//\'/}
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
|
||||||
|
|
||||||
|
"Windows")
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
# Get memory
|
# Get memory
|
||||||
getmemory () {
|
getmemory () {
|
||||||
case "$os" in
|
case "$os" in
|
||||||
|
|||||||
Reference in New Issue
Block a user