From c29ecc3faef82df7f7abb31828b16f52764e06dd Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 7 Jan 2019 16:11:00 +0200 Subject: [PATCH] general: Added new simple mode for script usage --- neofetch.1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/neofetch.1 b/neofetch.1 index 1e328c40..bfb861c2 100644 --- a/neofetch.1 +++ b/neofetch.1 @@ -21,6 +21,15 @@ quickly display only that function's information. Example: neofetch uptime \fB\-\-uptime_shorthand\fR tiny .IP Example: neofetch uptime disk wm memory +.IP +This can be used in bars and scripts like so: +.IP +memory="$(neofetch memory)"; memory="${memory##*: }" +.IP +For multiple outputs at once (each line of info in an array): +.TP +IFS=$'\en' read \fB\-d\fR "" \fB\-ra\fR info < <(neofetch memory uptime wm) +info=("${info[@]##*: }") .TP \fB\-\-disable\fR infoname Allows you to disable an info line from appearing