Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
f5d2aac5
Commit
f5d2aac5
authored
Dec 22, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GPU: Add --gpu_type
parent
ab4edd42
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
config
config/config
+17
-0
neofetch
neofetch
+4
-2
neofetch.1
neofetch.1
+3
-0
No files found.
config/config
View file @
f5d2aac5
...
@@ -210,6 +210,23 @@ cpu_temp="off"
...
@@ -210,6 +210,23 @@ cpu_temp="off"
# off: 'HD 7950'
# off: 'HD 7950'
gpu_brand
=
"on"
gpu_brand
=
"on"
# Which GPU to display
#
# Default: 'all'
# Values: 'all', 'dedicated', 'integrated'
# Flag: --gpu_type
#
# Example:
# all:
# GPU1: AMD HD 7950
# GPU2: Intel Integrated Graphics
#
# dedicated:
# GPU1: AMD HD 7950
#
# integrated:
# GPU1: Intel Integrated Graphics
gpu_type
=
"all"
# Resolution
# Resolution
...
...
neofetch
View file @
f5d2aac5
...
@@ -973,8 +973,8 @@ get_gpu() {
...
@@ -973,8 +973,8 @@ get_gpu() {
for
gpu
in
"
${
gpus
[@]
}
"
;
do
for
gpu
in
"
${
gpus
[@]
}
"
;
do
# GPU shorthand tests.
# GPU shorthand tests.
[[
"
$gpu_
show
"
==
"dedicated"
&&
"
$gpu
"
=
~
(
i|I
)
ntel
]]
||
\
[[
"
$gpu_
type
"
==
"dedicated"
&&
"
$gpu
"
=
~
(
i|I
)
ntel
]]
||
\
[[
"
$gpu_
show
"
==
"integrated"
&&
!
"
$gpu
"
=
~
(
i|I
)
ntel
]]
&&
\
[[
"
$gpu_
type
"
==
"integrated"
&&
!
"
$gpu
"
=
~
(
i|I
)
ntel
]]
&&
\
{
unset
-v
gpu
;
continue
;
}
{
unset
-v
gpu
;
continue
;
}
case
"
$gpu
"
in
case
"
$gpu
"
in
...
@@ -3045,6 +3045,7 @@ INFO
...
@@ -3045,6 +3045,7 @@ INFO
--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_brand on/off Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel)
--gpu_brand on/off Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel)
--gpu_type type Which GPU to display. (all, dedicated, integrated)
--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/font/icons output
--gtk2 on/off Enable/Disable gtk2 theme/font/icons output
--gtk3 on/off Enable/Disable gtk3 theme/font/icons output
--gtk3 on/off Enable/Disable gtk3 theme/font/icons output
...
@@ -3205,6 +3206,7 @@ get_args() {
...
@@ -3205,6 +3206,7 @@ get_args() {
"--uptime_shorthand"
)
uptime_shorthand
=
"
$2
"
;;
"--uptime_shorthand"
)
uptime_shorthand
=
"
$2
"
;;
"--cpu_shorthand"
)
cpu_shorthand
=
"
$2
"
;;
"--cpu_shorthand"
)
cpu_shorthand
=
"
$2
"
;;
"--gpu_brand"
)
gpu_brand
=
"
$2
"
;;
"--gpu_brand"
)
gpu_brand
=
"
$2
"
;;
"--gpu_type"
)
gpu_type
=
"
$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
"
;;
...
...
neofetch.1
View file @
f5d2aac5
...
@@ -68,6 +68,9 @@ Unsupported on Windows
...
@@ -68,6 +68,9 @@ Unsupported on Windows
\fB\-\-gpu_brand\fR on/off
\fB\-\-gpu_brand\fR on/off
Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel)
Enable/Disable GPU brand in output. (AMD/NVIDIA/Intel)
.TP
.TP
\fB\-\-gpu_type\fR type
Which GPU to display. (all, dedicated, integrated)
.TP
\fB\-\-gtk_shorthand\fR on/off
\fB\-\-gtk_shorthand\fR on/off
Shorten output of gtk theme/icons
Shorten output of gtk theme/icons
.TP
.TP
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment