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): For multiple outputs at once (each line of info in an array):
IFS=\$'\\n' read -d \"\" -ra info < <(neofetch memory uptime wm) IFS=\$'\\n' read -d \"\" -ra info < <(neofetch memory uptime wm)
info=(\"\${info[@]##*: }\") info=(\"\${info[@]##*: }\")
--disable infoname Allows you to disable an info line from appearing --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##*: }" memory="$(neofetch memory)"; memory="${memory##*: }"
.IP .IP
For multiple outputs at once (each line of info in an array): 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) IFS=$'\en' read \fB\-d\fR "" \fB\-ra\fR info < <(neofetch memory uptime wm)
.IP
info=("${info[@]##*: }") info=("${info[@]##*: }")
.TP .TP
\fB\-\-disable\fR infoname \fB\-\-disable\fR infoname