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
b8869656
Commit
b8869656
authored
Nov 26, 2016
by
Dylan Araps
Committed by
GitHub
Nov 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #464 from konimex/bsdtemp
CPU: Added cpu_temp support for BSDs
parents
29cba223
4d939690
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
neofetch
neofetch
+17
-1
neofetch.1
neofetch.1
+3
-1
No files found.
neofetch
View file @
b8869656
...
...
@@ -787,6 +787,20 @@ get_cpu() {
# Get cpu cores
cores=
"
$(
sysctl
-n
hw.ncpu
)
"
# Get cpu temp
if [[
"
$cpu_temp
"
==
"on"
]]; then
case
"
$distro
"
in
"FreeBSD"
* |
"PacBSD"
* |
"DragonFly"
* |
"PCBSD"
*)
temp=
"
$(
sysctl
-n
dev.cpu.0.temperature
)
"
temp=
"[
${
temp
/C/°C
}
]"
;;
"OpenBSD"
* |
"Bitrig"
*)
temp=
"
$(
sysctl
-n
hw.sensors.lm0.temp0
)
"
temp=
"[
${
temp
/ degC/°C
}
]"
;;
esac
fi
;;
"Solaris"
)
...
...
@@ -2936,7 +2950,9 @@ usage() { printf "%s" "
NOTE: 'physical' doesn't work on BSD.
--cpu_speed on/off Hide/Show cpu speed.
--cpu_temp on/off Hide/Show cpu temperature.
NOTE This only works on linux.
NOTE: This only works on Linux and BSD.
NOTE: For FreeBSD-based systems, you need to enable coretemp
kernel module.
--distro_shorthand on/off Shorten the output of distro (tiny, on, off)
NOTE: This option won't work in Windows (Cygwin)
--kernel_shorthand on/off Shorten the output of kernel
...
...
neofetch.1
View file @
b8869656
...
...
@@ -48,7 +48,9 @@ Hide/Show cpu speed.
.B \--cpu_temp 'on/off'
Hide/Show cpu temperature.
.br
NOTE This only works on linux.
NOTE: This only works on Linux and BSD.
.br
NOTE: For FreeBSD-based systems, you need to enable coretemp kernel module.
.TP
.B \--distro_shorthand 'on/off'
Shorten the output of distro (tiny, on, off)
...
...
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