From 83fd93e4fb308aeb84ec17e20f6263def459ac9e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 3 Oct 2016 20:53:08 +1100 Subject: [PATCH 1/2] Add new mode which only prints the ascii art --- neofetch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neofetch b/neofetch index 182a7870..91660131 100755 --- a/neofetch +++ b/neofetch @@ -3055,6 +3055,11 @@ getargs() { ;; # Ascii + --logo | -L) + image="ascii" + printinfo() { info linebreak; } + ;; + --ascii) image="ascii" ascii="$2" From 598056b4a1dfa7325101969009c1175c5ff8f923 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 3 Oct 2016 21:51:42 +1100 Subject: [PATCH 2/2] Logo mode documentation --- README.md | 1 + neofetch | 11 ++++++----- neofetch.1 | 3 +++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ff2c721d..b7aee3a2 100644 --- a/README.md +++ b/README.md @@ -454,6 +454,7 @@ alias neofetch2="neofetch \ --ascii_logo_size Size of ascii logo. Supported distros: Arch, Gentoo, Crux, OpenBSD. --ascii_bold on/off Whether or not to bold the ascii logo. + --logo | -L Hide the info text and only show the ascii logo. Screenshot: --scrot /path/to/img Take a screenshot, if path is left empty the screen- diff --git a/neofetch b/neofetch index 91660131..0d322ba5 100755 --- a/neofetch +++ b/neofetch @@ -2922,6 +2922,7 @@ usage() { cat << EOF --ascii_logo_size Size of ascii logo. Supported distros: Arch, Gentoo, Crux, OpenBSD. --ascii_bold on/off Whether or not to bold the ascii logo. + --logo | -L Hide the info text and only show the ascii logo. Screenshot: --scrot /path/to/img Take a screenshot, if path is left empty the screen- @@ -3055,11 +3056,6 @@ getargs() { ;; # Ascii - --logo | -L) - image="ascii" - printinfo() { info linebreak; } - ;; - --ascii) image="ascii" ascii="$2" @@ -3084,6 +3080,11 @@ getargs() { --ascii_logo_size) ascii_logo_size="$2" ;; --ascii_bold) ascii_bold="$2" ;; + --logo | -L) + image="ascii" + printinfo() { info linebreak; } + ;; + # Screenshot --scrot | -s) diff --git a/neofetch.1 b/neofetch.1 index 9c5ad125..2950259e 100644 --- a/neofetch.1 +++ b/neofetch.1 @@ -230,6 +230,9 @@ Possible values: small, normal .TP .B \--ascii_bold 'on/off' Whether or not to bold the ascii logo. +.TP +.B \--logo | -L +Hide the info text and only show the ascii logo. .SH SCREENSHOT .TP