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
ae144cee
Commit
ae144cee
authored
Mar 03, 2016
by
Dylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added disk support to progress bars
parent
fe3e78d2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletion
+18
-1
1.4.md
1.4.md
+5
-1
README.md
README.md
+1
-0
config
config/config
+2
-0
neofetch
neofetch
+10
-0
No files found.
1.4.md
View file @
ae144cee
...
@@ -26,7 +26,11 @@ the output.
...
@@ -26,7 +26,11 @@ the output.
**Battery**
<br
\>
**Battery**
<br
\>
-
Added support for NetBSD
-
Added support for NetBSD
-
Added
`--battery_bar`
and
`$batter_bar`
to enable/disable displaying a progress bar in<br
\>
-
Added
`--battery_bar`
and
`$battery_bar`
to enable/disable displaying a progress bar in<br
\>
the output.
**Disk**
:<br
\>
-
Added
`--disk_bar`
and
`$disk_bar`
to enable/disable displaying a progress bar in<br
\>
the output.
the output.
### Ascii
### Ascii
...
...
README.md
View file @
ae144cee
...
@@ -288,6 +288,7 @@ alias fetch2="fetch \
...
@@ -288,6 +288,7 @@ alias fetch2="fetch \
--cpu_usage_bar on/off Whether or not to print a progress bar for cpu usage.
--cpu_usage_bar on/off Whether or not to print a progress bar for cpu usage.
--memory_bar on/off Whether or not to print a progress bar for memory usage.
--memory_bar on/off Whether or not to print a progress bar for memory usage.
--battery_bar on/off Whether or not to print a progress bar for battery usage.
--battery_bar on/off Whether or not to print a progress bar for battery usage.
--disk_bar on/off Whether or not to print a progress bar for disk usage.
Image:
Image:
...
...
config/config
View file @
ae144cee
...
@@ -238,9 +238,11 @@ progress_color_total="8"
...
@@ -238,9 +238,11 @@ progress_color_total="8"
# --cpu_usage_bar on/off
# --cpu_usage_bar on/off
# --memory_bar on/off
# --memory_bar on/off
# --battery_bar on/off
# --battery_bar on/off
# --disk_bar on/off
cpu_usage_bar
=
"off"
cpu_usage_bar
=
"off"
memory_bar
=
"off"
memory_bar
=
"off"
battery_bar
=
"off"
battery_bar
=
"off"
disk_bar
=
"off"
# }}}
# }}}
...
...
neofetch
View file @
ae144cee
...
@@ -260,9 +260,11 @@ progress_color_total="8"
...
@@ -260,9 +260,11 @@ progress_color_total="8"
# --cpu_usage_bar on/off
# --cpu_usage_bar on/off
# --memory_bar on/off
# --memory_bar on/off
# --battery_bar on/off
# --battery_bar on/off
# --disk_bar on/off
cpu_usage_bar
=
"off"
cpu_usage_bar
=
"off"
memory_bar
=
"off"
memory_bar
=
"off"
battery_bar
=
"off"
battery_bar
=
"off"
disk_bar
=
"off"
# }}}
# }}}
...
@@ -1379,6 +1381,12 @@ getdisk () {
...
@@ -1379,6 +1381,12 @@ getdisk () {
# Put it all together
# Put it all together
disk="
${
disk_used
}
/
${
disk_total
}
(
${
disk_total_per
}
)
"
disk="
${
disk_used
}
/
${
disk_total
}
(
${
disk_total_per
}
)
"
if [ "
$disk_bar
" == "
on
" ]; then
disk_used=
${
disk_used
/T
}
disk_total=
${
disk_total
/T
}
disk+="
$(
bar
"
${
disk_used
/
'.'
}
"
"
${
disk_total
/
'.'
}
"
)
"
fi
}
}
# }}}
# }}}
...
@@ -2361,6 +2369,7 @@ usage () { cat << EOF
...
@@ -2361,6 +2369,7 @@ usage () { cat << EOF
--cpu_usage_bar on/off Whether or not to print a progress bar for cpu usage.
--cpu_usage_bar on/off Whether or not to print a progress bar for cpu usage.
--memory_bar on/off Whether or not to print a progress bar for memory usage.
--memory_bar on/off Whether or not to print a progress bar for memory usage.
--battery_bar on/off Whether or not to print a progress bar for battery usage.
--battery_bar on/off Whether or not to print a progress bar for battery usage.
--disk_bar on/off Whether or not to print a progress bar for disk usage.
Image:
Image:
...
@@ -2486,6 +2495,7 @@ while [ "$1" ]; do
...
@@ -2486,6 +2495,7 @@ while [ "$1" ]; do
--cpu_usage_bar) cpu_usage_bar="
$2
" ;;
--cpu_usage_bar) cpu_usage_bar="
$2
" ;;
--memory_bar) memory_bar="
$2
" ;;
--memory_bar) memory_bar="
$2
" ;;
--battery_bar) battery_bar="
$2
" ;;
--battery_bar) battery_bar="
$2
" ;;
--disk_bar) disk_bar="
$2
" ;;
# Image
# Image
--image)
--image)
...
...
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