diff options
author | drkhsh <me@drkhsh.at> | 2022-11-23 23:59:51 +0100 |
---|---|---|
committer | drkhsh <me@drkhsh.at> | 2022-11-24 00:01:52 +0100 |
commit | 57c6e7340d16b14d61f9e3361ca4940f53dfcafa (patch) | |
tree | b48e7e6444ee78d68a0994389a3709027019ec26 /slstatus.h | |
parent | 4bd78c94ba90d67a268c092231b85037c94a339a (diff) | |
download | slstatus-57c6e7340d16b14d61f9e3361ca4940f53dfcafa.tar.gz |
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`.
Diffstat (limited to 'slstatus.h')
-rw-r--r-- | slstatus.h | 3 |
1 files changed, 3 insertions, 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); |