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):
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Reference in New Issue