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
7e94fec6
Commit
7e94fec6
authored
Aug 29, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gpu_driver: Add linux support.
parent
ae2f2702
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
config.conf
config/config.conf
+1
-0
travis.conf
config/travis.conf
+1
-0
neofetch
neofetch
+8
-0
No files found.
config/config.conf
View file @
7e94fec6
...
...
@@ -26,6 +26,7 @@ print_info() {
info
"GPU"
gpu
info
"Memory"
memory
# info "GPU Driver" gpu_driver # Linux only
# info "CPU Usage" cpu_usage
# info "Disk" disk
# info "Battery" battery
...
...
config/travis.conf
View file @
7e94fec6
...
...
@@ -21,6 +21,7 @@ print_info() {
info
"Terminal Font"
term_font
info
"CPU"
cpu
info
"GPU"
gpu
info
"GPU Driver"
gpu_driver
info
"Memory"
memory
info
"CPU Usage"
cpu_usage
...
...
neofetch
View file @
7e94fec6
...
...
@@ -2258,6 +2258,14 @@ get_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
()
{
if
[[
"
$color_blocks
"
==
"on"
]]
;
then
# Convert the width to space chars.
...
...
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