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
b3d15cd1
Commit
b3d15cd1
authored
Aug 02, 2017
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
general: Fix whitespace
parent
4c48b426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
neofetch
neofetch
+9
-9
No files found.
neofetch
View file @
b3d15cd1
...
@@ -765,7 +765,7 @@ get_wm_theme() {
...
@@ -765,7 +765,7 @@ get_wm_theme() {
"E17" | "Enlightenment")
"E17" | "Enlightenment")
if type -p eet >/dev/null; then
if type -p eet >/dev/null; then
wm_theme="$(eet -d "${HOME}/.e/e/config/standard/e.cfg" config |
\
wm_theme="$(eet -d "${HOME}/.e/e/config/standard/e.cfg" config |\
awk '
/value \
"file
\"
string.*.edj/ {print
$4
}')"
awk '
/value \
"file
\"
string.*.edj/ {print
$4
}')"
wm_theme=
"
${
wm_theme
##*/
}
"
wm_theme=
"
${
wm_theme
##*/
}
"
wm_theme=
"
${
wm_theme
%.*
}
"
wm_theme=
"
${
wm_theme
%.*
}
"
...
@@ -900,9 +900,9 @@ get_cpu() {
...
@@ -900,9 +900,9 @@ get_cpu() {
# Get CPU speed.
# Get CPU speed.
if [[ -d
"
$speed_dir
"
]]; then
if [[ -d
"
$speed_dir
"
]]; then
# Fallback to bios_limit if
$speed_type
fails.
# Fallback to bios_limit if
$speed_type
fails.
speed=
"
$(
<
"
${
speed_dir
}
/
${
speed_type
}
"
)
"
||
\
speed=
"
$(
<
"
${
speed_dir
}
/
${
speed_type
}
"
)
"
||\
speed=
"
$(
<
"
${
speed_dir
}
/bios_limit"
)
"
||
\
speed=
"
$(
<
"
${
speed_dir
}
/bios_limit"
)
"
||\
speed=
"
$(
<
"
${
speed_dir
}
/scaling_max_freq"
)
"
||
\
speed=
"
$(
<
"
${
speed_dir
}
/scaling_max_freq"
)
"
||\
speed=
"
$(
<
"
${
speed_dir
}
/cpuinfo_max_freq"
)
"
speed=
"
$(
<
"
${
speed_dir
}
/cpuinfo_max_freq"
)
"
speed=
"
$((
speed
/
1000
))
"
speed=
"
$((
speed
/
1000
))
"
...
@@ -1161,7 +1161,7 @@ get_gpu() {
...
@@ -1161,7 +1161,7 @@ get_gpu() {
for gpu in "
${
gpus
[@]
}
"; do
for gpu in "
${
gpus
[@]
}
"; do
# GPU shorthand tests.
# GPU shorthand tests.
[[ "
$gpu_type
" == "
dedicated
" && "
$gpu
" =~ (i|I)ntel ]] ||
\
[[ "
$gpu_type
" == "
dedicated
" && "
$gpu
" =~ (i|I)ntel ]] ||
\
[[ "
$gpu_type
" == "
integrated
" && ! "
$gpu
" =~ (i|I)ntel ]] &&
\
[[ "
$gpu_type
" == "
integrated
" && ! "
$gpu
" =~ (i|I)ntel ]] &&
\
{ unset -v gpu; continue; }
{ unset -v gpu; continue; }
...
@@ -1215,7 +1215,7 @@ get_gpu() {
...
@@ -1215,7 +1215,7 @@ get_gpu() {
source "
${
cache_dir
}
/neofetch/gpu
"
source "
${
cache_dir
}
/neofetch/gpu
"
else
else
gpu="
$(
system_profiler SPDisplaysDataType |
\
gpu="
$(
system_profiler SPDisplaysDataType |
\
awk
-F
': '
'/^\ *Chipset Model:/ {printf $2 ", "}'
)
"
awk
-F
': '
'/^\ *Chipset Model:/ {printf $2 ", "}'
)
"
gpu="
${
gpu
//
'/ $'
}
"
gpu="
${
gpu
//
'/ $'
}
"
gpu="
${
gpu
%,*
}
"
gpu="
${
gpu
%,*
}
"
...
@@ -1262,7 +1262,7 @@ get_gpu() {
...
@@ -1262,7 +1262,7 @@ get_gpu() {
;;
;;
"
Haiku
")
"
Haiku
")
gpu="
$(
listdev |
grep
-A2
-F
'device Display controller'
|
\
gpu="
$(
listdev |
grep
-A2
-F
'device Display controller'
|
\
awk
-F
':'
'/device beef/ {print $2}'
)
"
awk
-F
':'
'/device beef/ {print $2}'
)
"
;;
;;
...
@@ -1568,7 +1568,7 @@ get_resolution() {
...
@@ -1568,7 +1568,7 @@ get_resolution() {
;;
;;
"
off
")
"
off
")
resolution="
$(
xrandr
--nograb
--current
|
\
resolution="
$(
xrandr
--nograb
--current
|
\
awk
-F
'connected |\\+'
'/ connected/ {printf $2 ", "}'
)
"
awk
-F
'connected |\\+'
'/ connected/ {printf $2 ", "}'
)
"
resolution="
${
resolution
/primary
}
"
resolution="
${
resolution
/primary
}
"
;;
;;
...
@@ -1984,7 +1984,7 @@ get_term_font() {
...
@@ -1984,7 +1984,7 @@ get_term_font() {
}
}
get_disk
()
{
get_disk
()
{
type
-
p
df
>/
dev/null
2
>&
1
||
\
type
-
p
df
>/
dev/null
2
>&
1
||
\
{
err
"Disk requires 'df' to function. Install 'df' to get disk info."
;
return
;
}
{
err
"Disk requires 'df' to function. Install 'df' to get disk info."
;
return
;
}
# Get "df" version.
# Get "df" version.
...
...
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