summaryrefslogtreecommitdiff
path: root/dwm/resc/slstatus/slstatus.h
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2023-09-23 12:23:10 +0200
committerJulian T <julian@jtle.dk>2023-09-23 12:23:10 +0200
commitf704caf68f69dfdc098746f66ab07222cf69b241 (patch)
treec643f238c3954e94e0fb3b904930c86b89b911e3 /dwm/resc/slstatus/slstatus.h
parentf5a1f9e0dd92c645b39473376a2b9311a0f203cd (diff)
Add slstatus
Diffstat (limited to 'dwm/resc/slstatus/slstatus.h')
-rw-r--r--dwm/resc/slstatus/slstatus.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/dwm/resc/slstatus/slstatus.h b/dwm/resc/slstatus/slstatus.h
new file mode 100644
index 0000000..8ef5874
--- /dev/null
+++ b/dwm/resc/slstatus/slstatus.h
@@ -0,0 +1,84 @@
+/* See LICENSE file for copyright and license details. */
+
+/* battery */
+const char *battery_perc(const char *);
+const char *battery_remaining(const char *);
+const char *battery_state(const char *);
+
+/* cat */
+const char *cat(const char *path);
+
+/* cpu */
+const char *cpu_freq(const char *unused);
+const char *cpu_perc(const char *unused);
+
+/* datetime */
+const char *datetime(const char *fmt);
+
+/* disk */
+const char *disk_free(const char *path);
+const char *disk_perc(const char *path);
+const char *disk_total(const char *path);
+const char *disk_used(const char *path);
+
+/* entropy */
+const char *entropy(const char *unused);
+
+/* hostname */
+const char *hostname(const char *unused);
+
+/* ip */
+const char *ipv4(const char *interface);
+const char *ipv6(const char *interface);
+
+/* kernel_release */
+const char *kernel_release(const char *unused);
+
+/* keyboard_indicators */
+const char *keyboard_indicators(const char *fmt);
+
+/* keymap */
+const char *keymap(const char *unused);
+
+/* load_avg */
+const char *load_avg(const char *unused);
+
+/* netspeeds */
+const char *netspeed_rx(const char *interface);
+const char *netspeed_tx(const char *interface);
+
+/* num_files */
+const char *num_files(const char *path);
+
+/* ram */
+const char *ram_free(const char *unused);
+const char *ram_perc(const char *unused);
+const char *ram_total(const char *unused);
+const char *ram_used(const char *unused);
+
+/* run_command */
+const char *run_command(const char *cmd);
+
+/* swap */
+const char *swap_free(const char *unused);
+const char *swap_perc(const char *unused);
+const char *swap_total(const char *unused);
+const char *swap_used(const char *unused);
+
+/* temperature */
+const char *temp(const char *);
+
+/* uptime */
+const char *uptime(const char *unused);
+
+/* user */
+const char *gid(const char *unused);
+const char *uid(const char *unused);
+const char *username(const char *unused);
+
+/* volume */
+const char *vol_perc(const char *card);
+
+/* wifi */
+const char *wifi_essid(const char *interface);
+const char *wifi_perc(const char *interface);