general: Added new simple mode for script usage

This commit is contained in:
Dylan Araps 2019-01-07 16:13:59 +02:00
parent c29ecc3fae
commit 9b2796e168
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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