Commit c29ecc3f authored by Dylan Araps's avatar Dylan Araps

general: Added new simple mode for script usage

parent 6f6b67f3
...@@ -21,6 +21,15 @@ quickly display only that function's information. ...@@ -21,6 +21,15 @@ quickly display only that function's information.
Example: neofetch uptime \fB\-\-uptime_shorthand\fR tiny Example: neofetch uptime \fB\-\-uptime_shorthand\fR tiny
.IP .IP
Example: neofetch uptime disk wm memory 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 .TP
\fB\-\-disable\fR infoname \fB\-\-disable\fR infoname
Allows you to disable an info line from appearing Allows you to disable an info line from appearing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment