mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
gpu_driver: Add linux support.
This commit is contained in:
@@ -26,6 +26,7 @@ print_info() {
|
|||||||
info "GPU" gpu
|
info "GPU" gpu
|
||||||
info "Memory" memory
|
info "Memory" memory
|
||||||
|
|
||||||
|
# info "GPU Driver" gpu_driver # Linux only
|
||||||
# info "CPU Usage" cpu_usage
|
# info "CPU Usage" cpu_usage
|
||||||
# info "Disk" disk
|
# info "Disk" disk
|
||||||
# info "Battery" battery
|
# info "Battery" battery
|
||||||
|
@@ -21,6 +21,7 @@ print_info() {
|
|||||||
info "Terminal Font" term_font
|
info "Terminal Font" term_font
|
||||||
info "CPU" cpu
|
info "CPU" cpu
|
||||||
info "GPU" gpu
|
info "GPU" gpu
|
||||||
|
info "GPU Driver" gpu_driver
|
||||||
info "Memory" memory
|
info "Memory" memory
|
||||||
|
|
||||||
info "CPU Usage" cpu_usage
|
info "CPU Usage" cpu_usage
|
||||||
|
8
neofetch
8
neofetch
@@ -2258,6 +2258,14 @@ get_locale() {
|
|||||||
locale="$sys_locale"
|
locale="$sys_locale"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get_gpu_driver() {
|
||||||
|
case "$os" in
|
||||||
|
"Linux")
|
||||||
|
gpu_driver="$(lspci -nnk | awk -F ': ' '/VGA/{nr[NR+2]}; NR in nr {print $2}')"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
get_cols() {
|
get_cols() {
|
||||||
if [[ "$color_blocks" == "on" ]]; then
|
if [[ "$color_blocks" == "on" ]]; then
|
||||||
# Convert the width to space chars.
|
# Convert the width to space chars.
|
||||||
|
Reference in New Issue
Block a user