Add gpu_brand to enable/disable gpu brand in output

This commit is contained in:
Dylan Araps 2016-10-02 18:26:50 +11:00
parent acb9b8b0e6
commit 26fe57d376
5 changed files with 24 additions and 1 deletions

6
1.9.md
View File

@ -1 +1,7 @@
# Neofetch 1.9 # Neofetch 1.9
### Info
**GPU**<br \>
- Added `gpu_shorthand` to enable/disable showing GPU brand in output. (AMD/NVIDIA/Intel)

View File

@ -382,6 +382,7 @@ alias neofetch2="neofetch \
--refresh_rate on/off Whether to display the refresh rate of each monitor --refresh_rate on/off Whether to display the refresh rate of each monitor
Unsupported on Windows Unsupported on Windows
--gpu_shorthand on/off Shorten the output of GPU (tiny, on, off) --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 --gtk_shorthand on/off Shorten output of gtk theme/icons
--gtk2 on/off Enable/Disable gtk2 theme/icons output --gtk2 on/off Enable/Disable gtk2 theme/icons output
--gtk3 on/off Enable/Disable gtk3 theme/icons output --gtk3 on/off Enable/Disable gtk3 theme/icons output

View File

@ -122,10 +122,14 @@ cpu_cores="on"
# GPU # GPU
# Shorten output of the getgpu funcion # shorten output of the getgpu funcion
# --gpu_shorthand on/off/tiny # --gpu_shorthand on/off/tiny
gpu_shorthand="on" gpu_shorthand="on"
# Enable/Disable GPU Brand
# --gpu_brand on/off
gpu_brand="on"
# Resolution # Resolution
# Display refresh rate next to each monitor # Display refresh rate next to each monitor

View File

@ -1124,10 +1124,17 @@ getgpu() {
gpu="${gpu/GeForce }" gpu="${gpu/GeForce }"
gpu="${gpu/Radeon }" gpu="${gpu/Radeon }"
;; ;;
esac esac
;; ;;
esac esac
if [ "$gpu_brand" == "off" ]; then
gpu="${gpu/AMD}"
gpu="${gpu/NVIDIA}"
gpu="${gpu/Intel}"
fi
gpu="${gpu}${count}" gpu="${gpu}${count}"
} }
@ -2840,6 +2847,7 @@ usage() { cat << EOF
--refresh_rate on/off Whether to display the refresh rate of each monitor --refresh_rate on/off Whether to display the refresh rate of each monitor
Unsupported on Windows Unsupported on Windows
--gpu_shorthand on/off Shorten the output of GPU (tiny, on, off) --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 --gtk_shorthand on/off Shorten output of gtk theme/icons
--gtk2 on/off Enable/Disable gtk2 theme/icons output --gtk2 on/off Enable/Disable gtk2 theme/icons output
--gtk3 on/off Enable/Disable gtk3 theme/icons output --gtk3 on/off Enable/Disable gtk3 theme/icons output
@ -2962,6 +2970,7 @@ getargs() {
--uptime_shorthand) uptime_shorthand="$2" ;; --uptime_shorthand) uptime_shorthand="$2" ;;
--cpu_shorthand) cpu_shorthand="$2" ;; --cpu_shorthand) cpu_shorthand="$2" ;;
--gpu_shorthand) gpu_shorthand="$2" ;; --gpu_shorthand) gpu_shorthand="$2" ;;
--gpu_brand) gpu_brand="$2" ;;
--refresh_rate) refresh_rate="$2" ;; --refresh_rate) refresh_rate="$2" ;;
--gtk_shorthand) gtk_shorthand="$2" ;; --gtk_shorthand) gtk_shorthand="$2" ;;
--gtk2) gtk2="$2" ;; --gtk2) gtk2="$2" ;;

View File

@ -62,6 +62,9 @@ Unsupported on Windows
.B \--gpu_shorthand 'on/off' .B \--gpu_shorthand 'on/off'
Shorten the output of GPU (tiny, on, off) Shorten the output of GPU (tiny, on, off)
.TP .TP
.B \--gpu_brand on/off
Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel)
.TP
.B \--gtk_shorthand 'on/off' .B \--gtk_shorthand 'on/off'
Shorten output of gtk theme/icons Shorten output of gtk theme/icons
.TP .TP