general: Added new simple mode for script usage
This commit is contained in:
parent
c29ecc3fae
commit
9b2796e168
1
neofetch
1
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue