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
b88eb6a9
Commit
b88eb6a9
authored
Dec 19, 2016
by
Dylan Araps
Committed by
GitHub
Dec 19, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #551 from dylanaraps/logosize
Ascii: Remove ascii_logo_size
parents
93a36e23
fc8e8ce6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
36 deletions
+27
-36
config
config/config
+5
-13
neofetch
neofetch
+15
-16
neofetch.1
neofetch.1
+7
-7
No files found.
config/config
View file @
b88eb6a9
...
@@ -278,7 +278,7 @@ public_ip_host="http://ident.me"
...
@@ -278,7 +278,7 @@ public_ip_host="http://ident.me"
# Song
# Song
# Print the Artist and Title on sep
e
rate lines
# Print the Artist and Title on sep
a
rate lines
#
#
# Default: 'off'
# Default: 'off'
# Values: 'on', 'off'
# Values: 'on', 'off'
...
@@ -565,10 +565,12 @@ ascii="distro"
...
@@ -565,10 +565,12 @@ ascii="distro"
# Values: 'auto', 'distro_name'
# Values: 'auto', 'distro_name'
# Flag: --ascii_distro
# Flag: --ascii_distro
#
#
# NOTE: Arch and Ubuntu have 'old' logo vari
e
nts.
# NOTE: Arch and Ubuntu have 'old' logo vari
a
nts.
# Change this to 'arch_old' or 'ubuntu_old' to use the old logos.
# Change this to 'arch_old' or 'ubuntu_old' to use the old logos.
# NOTE: Ubuntu has flavor vari
e
nts.
# NOTE: Ubuntu has flavor vari
a
nts.
# Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors.
# Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors.
# NOTE: Arch, Crux and Gentoo have a smaller logo variant.
# Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos.
ascii_distro
=
"auto"
ascii_distro
=
"auto"
# Ascii Colors
# Ascii Colors
...
@@ -582,16 +584,6 @@ ascii_distro="auto"
...
@@ -582,16 +584,6 @@ ascii_distro="auto"
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
ascii_colors
=(
distro
)
ascii_colors
=(
distro
)
# Logo size
# Arch, Crux and Gentoo have a smaller logo
# variant. Changing the value below to small
# will make neofetch use the small logo.
#
# Default: 'normal'
# Values: 'normal', 'small'
# Flag: --ascii_logo_size
ascii_logo_size
=
"normal"
# Bold ascii logo
# Bold ascii logo
# Whether or not to bold the ascii logo.
# Whether or not to bold the ascii logo.
#
#
...
...
neofetch
View file @
b88eb6a9
...
@@ -886,7 +886,7 @@ get_cpu() {
...
@@ -886,7 +886,7 @@ get_cpu() {
cpu=
"
$cpu
@
${
speed
}
GHz
$temp
"
cpu=
"
$cpu
@
${
speed
}
GHz
$temp
"
fi
fi
# Remove uneeded patterns from cpu output
# Remove un
n
eeded patterns from cpu output
cpu=
"
${
cpu
//(TM)
}
"
cpu=
"
${
cpu
//(TM)
}
"
cpu=
"
${
cpu
//(tm)
}
"
cpu=
"
${
cpu
//(tm)
}
"
cpu=
"
${
cpu
//(R)
}
"
cpu=
"
${
cpu
//(R)
}
"
...
@@ -1149,7 +1149,7 @@ get_song() {
...
@@ -1149,7 +1149,7 @@ get_song() {
get_song_dbus
()
{
get_song_dbus
()
{
# Multiple players use an almost identical dbus command to get the information.
# Multiple players use an almost identical dbus command to get the information.
# This function saves us including the same command through
t
out the function.
# This function saves us including the same command throughout the function.
song
=
"
$(
\
song
=
"
$(
\
dbus-send
--print-reply
--dest
=
org.mpris.MediaPlayer2.
"
${
1
}
"
/org/mpris/MediaPlayer2
\
dbus-send
--print-reply
--dest
=
org.mpris.MediaPlayer2.
"
${
1
}
"
/org/mpris/MediaPlayer2
\
org.freedesktop.DBus.Properties.Get string:
'org.mpris.MediaPlayer2.Player'
string:
'Metadata'
|
\
org.freedesktop.DBus.Properties.Get string:
'org.mpris.MediaPlayer2.Player'
string:
'Metadata'
|
\
...
@@ -1210,7 +1210,7 @@ get_song() {
...
@@ -1210,7 +1210,7 @@ get_song() {
;;
;;
esac
esac
# Display Artist and Title on sep
e
rate lines.
# Display Artist and Title on sep
a
rate lines.
if
[[
"
$song_shorthand
"
==
"on"
]]
;
then
if
[[
"
$song_shorthand
"
==
"on"
]]
;
then
artist
=
"
${
song
/ -*
}
"
artist
=
"
${
song
/ -*
}
"
song
=
"
${
song
/
$artist
-
}
"
song
=
"
${
song
/
$artist
-
}
"
...
@@ -1849,11 +1849,6 @@ get_ascii() {
...
@@ -1849,11 +1849,6 @@ get_ascii() {
ascii
=
"
${
ascii_distro
,,
}
"
ascii
=
"
${
ascii_distro
,,
}
"
fi
fi
if
[[
"
$ascii_logo_size
"
==
"small"
]]
;
then
ascii
=
"
${
ascii
/ *
}
_small"
prompt_loc
=
"3"
fi
if
[[
-f
"/usr/share/neofetch/ascii/distro/
${
ascii
/ *
}
"
]]
;
then
if
[[
-f
"/usr/share/neofetch/ascii/distro/
${
ascii
/ *
}
"
]]
;
then
ascii
=
"/usr/share/neofetch/ascii/distro/
${
ascii
/ *
}
"
ascii
=
"/usr/share/neofetch/ascii/distro/
${
ascii
/ *
}
"
...
@@ -2146,7 +2141,7 @@ make_thumbnail() {
...
@@ -2146,7 +2141,7 @@ make_thumbnail() {
og_width
=
"
${
size
%% *
}
"
og_width
=
"
${
size
%% *
}
"
og_height
=
"
${
size
##*
}
"
og_height
=
"
${
size
##*
}
"
# This checks to see if height is geater than width
# This checks to see if height is g
r
eater than width
# so we can do a better crop of portrait images.
# so we can do a better crop of portrait images.
size
=
"
$og_height
"
size
=
"
$og_height
"
((
"
$og_height
"
>
"
$og_width
"
))
&&
size
=
"
$og_width
"
((
"
$og_height
"
>
"
$og_width
"
))
&&
size
=
"
$og_width
"
...
@@ -2402,7 +2397,7 @@ trim() {
...
@@ -2402,7 +2397,7 @@ trim() {
# of special characters.
# of special characters.
#
#
# The whitespace trim doesn't work with multiline strings so we use
# The whitespace trim doesn't work with multiline strings so we use
# '
${
1
//[[
:space:]]/
}
' to remove newlines be
of
re we trim the whitespace.
# '
${
1
//[[
:space:]]/
}
' to remove newlines be
fo
re we trim the whitespace.
set -f
set -f
# shellcheck disable=2086
# shellcheck disable=2086
...
@@ -2876,6 +2871,9 @@ old_options() {
...
@@ -2876,6 +2871,9 @@ old_options() {
[[
"
$speed_type
"
==
"min"
]]
&&
err
"Config: speed_type='min' is deprecated, use speed_type='scaling_min_freq' instead."
[[
"
$speed_type
"
==
"min"
]]
&&
err
"Config: speed_type='min' is deprecated, use speed_type='scaling_min_freq' instead."
[[
"
$speed_type
"
==
"max"
]]
&&
err
"Config: speed_type='max' is deprecated, use speed_type='scaling_max_freq' instead."
[[
"
$speed_type
"
==
"max"
]]
&&
err
"Config: speed_type='max' is deprecated, use speed_type='scaling_max_freq' instead."
[[
"
$speed_type
"
==
"bios"
]]
&&
err
"Config: speed_type='bios' is deprecated, use speed_type='bios_limit' instead."
[[
"
$speed_type
"
==
"bios"
]]
&&
err
"Config: speed_type='bios' is deprecated, use speed_type='bios_limit' instead."
# Ascii_logo_size was removed in 2.1.0.
[[
"
$ascii_logo_size
"
]]
&&
err
"Config: ascii_logo_size is deprecatedm use ascii_distro='{arch,crux,gentoo}_small' instead."
}
}
cache_uname
()
{
cache_uname
()
{
...
@@ -3005,7 +3003,7 @@ INFO
...
@@ -3005,7 +3003,7 @@ INFO
--shell_path on/off Enable/Disable showing
\$
SHELL path
--shell_path on/off Enable/Disable showing
\$
SHELL path
--shell_version on/off Enable/Disable showing
\$
SHELL version
--shell_version on/off Enable/Disable showing
\$
SHELL version
--ip_host url URL to query for public IP
--ip_host url URL to query for public IP
--song_shorthand on/off Print the Artist/Title on sep
e
rate lines
--song_shorthand on/off Print the Artist/Title on sep
a
rate lines
--install_time on/off Enable/Disable showing the time in Install Date output.
--install_time on/off Enable/Disable showing the time in Install Date output.
TEXT FORMATTING
TEXT FORMATTING
...
@@ -3071,16 +3069,18 @@ ASCII
...
@@ -3071,16 +3069,18 @@ ASCII
--ascii_colors x x x x x x Colors to print the ascii art
--ascii_colors x x x x x x Colors to print the ascii art
--ascii_distro distro Which Distro's ascii art to print
--ascii_distro distro Which Distro's ascii art to print
NOTE: Arch and Ubuntu have 'old' logo vari
e
nts.
NOTE: Arch and Ubuntu have 'old' logo vari
a
nts.
NOTE: Use 'arch_old' or 'ubuntu_old' to use the old logos.
NOTE: Use 'arch_old' or 'ubuntu_old' to use the old logos.
NOTE: Ubuntu has flavor vari
e
nts.
NOTE: Ubuntu has flavor vari
a
nts.
NOTE: Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME', 'Ubuntu-Studio' or 'Ubuntu-Budgie' to use the flavors.
NOTE: Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME', 'Ubuntu-Studio' or 'Ubuntu-Budgie' to use the flavors.
--ascii_logo_size Size of ascii logo.
NOTE: Arch, Crux and Gentoo have a smaller logo variant.
Supported distros: Arch, Gentoo, Crux, OpenBSD.
NOTE: Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos.
--ascii_bold on/off Whether or not to bold the ascii logo.
--ascii_bold on/off Whether or not to bold the ascii logo.
-L, --logo Hide the info text and only show the ascii logo.
-L, --logo Hide the info text and only show the ascii logo.
...
@@ -3264,7 +3264,6 @@ get_args() {
...
@@ -3264,7 +3264,6 @@ get_args() {
case
"
$2
"
in
"-"
*
|
""
)
ascii_distro
=
"
$distro
"
;;
esac
case
"
$2
"
in
"-"
*
|
""
)
ascii_distro
=
"
$distro
"
;;
esac
;;
;;
"--ascii_logo_size"
)
ascii_logo_size
=
"
$2
"
;;
"--ascii_bold"
)
ascii_bold
=
"
$2
"
;;
"--ascii_bold"
)
ascii_bold
=
"
$2
"
;;
"--logo"
|
"-L"
)
"--logo"
|
"-L"
)
image_backend
=
"ascii"
image_backend
=
"ascii"
...
...
neofetch.1
View file @
b88eb6a9
...
@@ -87,7 +87,7 @@ Enable/Disable showing $SHELL version
...
@@ -87,7 +87,7 @@ Enable/Disable showing $SHELL version
URL to query for public IP
URL to query for public IP
.TP
.TP
\fB\-\-song_shorthand\fR on/off
\fB\-\-song_shorthand\fR on/off
Print the Artist/Title on sep
e
rate lines
Print the Artist/Title on sep
a
rate lines
.TP
.TP
\fB\-\-install_time\fR on/off
\fB\-\-install_time\fR on/off
Enable/Disable showing the time in Install Date output.
Enable/Disable showing the time in Install Date output.
...
@@ -204,17 +204,17 @@ Colors to print the ascii art
...
@@ -204,17 +204,17 @@ Colors to print the ascii art
\fB\-\-ascii_distro\fR distro
\fB\-\-ascii_distro\fR distro
Which Distro's ascii art to print
Which Distro's ascii art to print
.IP
.IP
NOTE: Arch and Ubuntu have 'old' logo vari
e
nts.
NOTE: Arch and Ubuntu have 'old' logo vari
a
nts.
.IP
.IP
NOTE: Use 'arch_old' or 'ubuntu_old' to use the old logos.
NOTE: Use 'arch_old' or 'ubuntu_old' to use the old logos.
.IP
.IP
NOTE: Ubuntu has flavor vari
e
nts.
NOTE: Ubuntu has flavor vari
a
nts.
.IP
.IP
NOTE: Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu\-GNOME', 'Ubuntu\-Studio' or 'Ubuntu\-Budgie' to use the flavors.
NOTE: Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu\-GNOME', 'Ubuntu\-Studio' or 'Ubuntu\-Budgie' to use the flavors.
.
T
P
.
I
P
\fB\-\-ascii_logo_size\fR
NOTE: Arch, Crux and Gentoo have a smaller logo variant.
Size of ascii logo.
.IP
Supported distros: Arch, Gentoo, Crux, OpenBSD
.
NOTE: Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos
.
.TP
.TP
\fB\-\-ascii_bold\fR on/off
\fB\-\-ascii_bold\fR on/off
Whether or not to bold the ascii logo.
Whether or not to bold the ascii logo.
...
...
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