New component: cat
Generically reads an arbitrary file natively. Saves a few layers of execution in comparison to using `run_command` with an argument like `cat ./file`.
This commit is contained in:
parent
4bd78c94ba
commit
57c6e7340d
5 changed files with 38 additions and 0 deletions
|
@ -5,6 +5,9 @@ const char *battery_perc(const char *);
|
|||
const char *battery_state(const char *);
|
||||
const char *battery_remaining(const char *);
|
||||
|
||||
/* cat */
|
||||
const char *cat(const char *path);
|
||||
|
||||
/* cpu */
|
||||
const char *cpu_freq(const char *unused);
|
||||
const char *cpu_perc(const char *unused);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue