From 9b2796e168c15b049f0ba12f0295e78eca708acd Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 7 Jan 2019 16:13:59 +0200 Subject: [PATCH] general: Added new simple mode for script usage --- neofetch | 1 + neofetch.1 | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 6c29c6f1..23c80a63 100755 --- a/neofetch +++ b/neofetch @@ -4257,6 +4257,7 @@ INFO: For multiple outputs at once (each line of info in an array): IFS=\$'\\n' read -d \"\" -ra info < <(neofetch memory uptime wm) + info=(\"\${info[@]##*: }\") --disable infoname Allows you to disable an info line from appearing diff --git a/neofetch.1 b/neofetch.1 index bfb861c2..5cde4afb 100644 --- a/neofetch.1 +++ b/neofetch.1 @@ -27,8 +27,9 @@ This can be used in bars and scripts like so: memory="$(neofetch memory)"; memory="${memory##*: }" .IP For multiple outputs at once (each line of info in an array): -.TP +.IP IFS=$'\en' read \fB\-d\fR "" \fB\-ra\fR info < <(neofetch memory uptime wm) +.IP info=("${info[@]##*: }") .TP \fB\-\-disable\fR infoname