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
550185fa
Commit
550185fa
authored
Apr 24, 2016
by
Dylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made progress bars more customizable
parent
db1f3851
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
7 deletions
+61
-7
1.7.md
1.7.md
+33
-0
config
config/config
+7
-2
neofetch
neofetch
+21
-5
No files found.
1.7.md
View file @
550185fa
...
@@ -72,6 +72,7 @@ underline_enabled="on"
...
@@ -72,6 +72,7 @@ underline_enabled="on"
-
Added KDE neon ascii art.
-
Added KDE neon ascii art.
### Colors
### Colors
-
Fixed bug with
`--colors`
not working with all 256 terminal colors.
-
Fixed bug with
`--colors`
not working with all 256 terminal colors.
...
@@ -82,3 +83,35 @@ underline_enabled="on"
...
@@ -82,3 +83,35 @@ underline_enabled="on"
would be white or black. This caused issues for those setting the foreground<br
\>
would be white or black. This caused issues for those setting the foreground<br
\>
color to red or etc. This change adds a new value for
`--colors`
and
`colors=()`
<br
\>
color to red or etc. This change adds a new value for
`--colors`
and
`colors=()`
<br
\>
called
`fg`
which will set the color to your foreground color.
called
`fg`
which will set the color to your foreground color.
### Progress Bars
-
You can now enable/disable a border around the progress bars.
```
sh
# $progress_border on
[=====
-----
]
# $progress_border off
=====
-----
```
-
You can now individually set the progress bar characters. This means that you can<br
\>
have a seperate character for the elapsed and total portions of the bar.
```
sh
# Examples with $progress_border on
# Elapsed: =
# Total: -
[=====
-----
]
# Elapsed: .
# Total: " "
[
.....
]
# Elapsed: /
# Total: " "
[
/////
]
```
config/config
View file @
550185fa
...
@@ -250,8 +250,13 @@ prompt_height=1
...
@@ -250,8 +250,13 @@ prompt_height=1
# Progress bar character
# Progress bar character
# --progress_char char
# --progress_char elapsed_char total_char
progress_char
=
"━"
progress_char_elapsed
=
"-"
progress_char_total
=
"="
# Progress vorder
# --progress_border on/off
progress_border
=
"on"
# Progress bar length in spaces
# Progress bar length in spaces
# Number of chars long to make the progress bars.
# Number of chars long to make the progress bars.
...
...
neofetch
View file @
550185fa
...
@@ -275,8 +275,13 @@ prompt_height=1
...
@@ -275,8 +275,13 @@ prompt_height=1
# Progress bar character
# Progress bar character
# --progress_char char
# --progress_char elapsed_char total_char
progress_char
=
"━"
progress_char_elapsed
=
"="
progress_char_total
=
"-"
# Progress vorder
# --progress_border on/off
progress_border
=
"on"
# Progress bar length in spaces
# Progress bar length in spaces
# Number of chars long to make the progress bars.
# Number of chars long to make the progress bars.
...
@@ -2547,8 +2552,15 @@ bar() {
...
@@ -2547,8 +2552,15 @@ bar() {
total
=
$(
printf
%
"
$((
progress_length
-
elapsed
))
"
s
)
total
=
$(
printf
%
"
$((
progress_length
-
elapsed
))
"
s
)
# Set the colors and swap the spaces for $progress_char
# Set the colors and swap the spaces for $progress_char
bar
=
"
${
progress_color_elapsed
}${
prog
// /
$progress_char
}
"
bar+
=
"
${
progress_color_elapsed
}${
prog
// /
$progress_char_elapsed
}
"
bar+
=
"
${
progress_color_total
}${
total
// /
$progress_char
}
"
bar+
=
"
${
progress_color_total
}${
total
// /
$progress_char_total
}
"
# Borders
if
[
"
$progress_border
"
==
"on"
]
;
then
bar+
=
"
$(
color
fg
)
]"
bar
=
"
$(
color
fg
)
[
$bar
"
fi
printf
"%b%s
\n
"
"
${
bar
}${
clear
}
"
printf
"%b%s
\n
"
"
${
bar
}${
clear
}
"
}
}
...
@@ -2779,7 +2791,11 @@ while [ "$1" ]; do
...
@@ -2779,7 +2791,11 @@ while [ "$1" ]; do
--block_width
)
block_width
=
"
$2
"
;;
--block_width
)
block_width
=
"
$2
"
;;
# Progress Bars
# Progress Bars
--progress_char
)
progress_char
=
"
$2
"
;;
--progress_char
)
progress_char_elapsed
=
"
$2
"
progress_char_total
=
"
$3
"
;;
--progress_border
)
progress_border
=
"
$2
"
;;
--progress_length
)
progress_length
=
"
$2
"
;;
--progress_length
)
progress_length
=
"
$2
"
;;
--progress_colors
)
--progress_colors
)
progress_color_elapsed
=
"
$2
"
progress_color_elapsed
=
"
$2
"
...
...
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