summaryrefslogtreecommitdiff
path: root/slstatus.h
diff options
context:
space:
mode:
authorAaron Marcher <info@nulltime.net>2016-03-16 08:45:19 +0100
committerAaron Marcher (drkhsh) <info@nulltime.net>2016-03-16 08:45:19 +0100
commitace0aa15bf64db38914617a05774736c9e6f594e (patch)
tree326a937ebe71d1d44ee8d901cb206c1554104404 /slstatus.h
parent291e2bcb30d4de3caf5e2af3d1213e4ae7586b17 (diff)
header
Diffstat (limited to 'slstatus.h')
-rw-r--r--slstatus.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/slstatus.h b/slstatus.h
new file mode 100644
index 0000000..fcf8b33
--- /dev/null
+++ b/slstatus.h
@@ -0,0 +1,22 @@
+/* global variables */
+static Display *dpy;
+
+/* statusbar configuration type and struct */
+typedef char *(*op_fun) (const char *);
+struct arg {
+ op_fun func;
+ const char *format;
+ const char *args;
+};
+
+/* functions */
+void setstatus(const char *);
+char *smprintf(const char *, ...);
+char *get_battery(const char *);
+char *get_cpu_temperature(const char *);
+char *get_cpu_usage(const char *);
+char *get_datetime(const char *);
+char *get_diskusage(const char *);
+char *get_ram_usage(const char *);
+char *get_volume(const char *);
+char *get_wifi_signal(const char *);