summaryrefslogtreecommitdiff
path: root/slstatus.h
diff options
context:
space:
mode:
authordrkhsh <me@drkhsh.at>2022-11-23 23:59:51 +0100
committerdrkhsh <me@drkhsh.at>2022-11-24 00:01:52 +0100
commit57c6e7340d16b14d61f9e3361ca4940f53dfcafa (patch)
treeb48e7e6444ee78d68a0994389a3709027019ec26 /slstatus.h
parent4bd78c94ba90d67a268c092231b85037c94a339a (diff)
downloadslstatus-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/slstatus.h b/slstatus.h
index f3b4979..f062e73 100644
--- a/slstatus.h
+++ b/slstatus.h
@@ -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);