From 26fe57d376f9cd704b9fbea3555d90d151efa9dc Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 2 Oct 2016 18:26:50 +1100 Subject: [PATCH] Add gpu_brand to enable/disable gpu brand in output --- 1.9.md | 6 ++++++ README.md | 1 + config/config | 6 +++++- neofetch | 9 +++++++++ neofetch.1 | 3 +++ 5 files changed, 24 insertions(+), 1 deletion(-) diff --git a/1.9.md b/1.9.md index 4d6d808c..91e01597 100644 --- a/1.9.md +++ b/1.9.md @@ -1 +1,7 @@ # Neofetch 1.9 + +### Info + +**GPU**
+ +- Added `gpu_shorthand` to enable/disable showing GPU brand in output. (AMD/NVIDIA/Intel) diff --git a/README.md b/README.md index e766e5d8..ff2c721d 100644 --- a/README.md +++ b/README.md @@ -382,6 +382,7 @@ alias neofetch2="neofetch \ --refresh_rate on/off Whether to display the refresh rate of each monitor Unsupported on Windows --gpu_shorthand on/off Shorten the output of GPU (tiny, on, off) + --gpu_brand on/off Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel) --gtk_shorthand on/off Shorten output of gtk theme/icons --gtk2 on/off Enable/Disable gtk2 theme/icons output --gtk3 on/off Enable/Disable gtk3 theme/icons output diff --git a/config/config b/config/config index 26a4e0a3..b18a8089 100644 --- a/config/config +++ b/config/config @@ -122,10 +122,14 @@ cpu_cores="on" # GPU -# Shorten output of the getgpu funcion +# shorten output of the getgpu funcion # --gpu_shorthand on/off/tiny gpu_shorthand="on" +# Enable/Disable GPU Brand +# --gpu_brand on/off +gpu_brand="on" + # Resolution # Display refresh rate next to each monitor diff --git a/neofetch b/neofetch index 09d63113..fa2d2b08 100755 --- a/neofetch +++ b/neofetch @@ -1124,10 +1124,17 @@ getgpu() { gpu="${gpu/GeForce }" gpu="${gpu/Radeon }" ;; + esac ;; esac + if [ "$gpu_brand" == "off" ]; then + gpu="${gpu/AMD}" + gpu="${gpu/NVIDIA}" + gpu="${gpu/Intel}" + fi + gpu="${gpu}${count}" } @@ -2840,6 +2847,7 @@ usage() { cat << EOF --refresh_rate on/off Whether to display the refresh rate of each monitor Unsupported on Windows --gpu_shorthand on/off Shorten the output of GPU (tiny, on, off) + --gpu_brand on/off Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel) --gtk_shorthand on/off Shorten output of gtk theme/icons --gtk2 on/off Enable/Disable gtk2 theme/icons output --gtk3 on/off Enable/Disable gtk3 theme/icons output @@ -2962,6 +2970,7 @@ getargs() { --uptime_shorthand) uptime_shorthand="$2" ;; --cpu_shorthand) cpu_shorthand="$2" ;; --gpu_shorthand) gpu_shorthand="$2" ;; + --gpu_brand) gpu_brand="$2" ;; --refresh_rate) refresh_rate="$2" ;; --gtk_shorthand) gtk_shorthand="$2" ;; --gtk2) gtk2="$2" ;; diff --git a/neofetch.1 b/neofetch.1 index 6a1febf6..5b4af043 100644 --- a/neofetch.1 +++ b/neofetch.1 @@ -62,6 +62,9 @@ Unsupported on Windows .B \--gpu_shorthand 'on/off' Shorten the output of GPU (tiny, on, off) .TP +.B \--gpu_brand on/off +Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel) +.TP .B \--gtk_shorthand 'on/off' Shorten output of gtk theme/icons .TP