Introduction
Introduction Statistics Contact Development Disclaimer Help
Add separator module - slstatus - status monitor
git clone git://git.suckless.org/slstatus
Log
Files
Refs
README
LICENSE
---
commit 2b0f50d1aaf22e79272df8b3b0fe37f338ea1dae
parent b14e039639ed28005fbb8bddeb5b5fa0c93475ac
Author: Ryan Kes <[email protected]>
Date: Sat, 30 Mar 2019 13:45:05 +0100
Add separator module
Diffstat:
M Makefile | 1 +
A components/separator.c | 10 ++++++++++
M config.def.h | 1 +
M slstatus.h | 3 +++
4 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/Makefile b/Makefile
@@ -21,6 +21,7 @@ COM =\
components/num_files\
components/ram\
components/run_command\
+ components/separator\
components/swap\
components/temperature\
components/uptime\
diff --git a/components/separator.c b/components/separator.c
@@ -0,0 +1,10 @@
+/* See LICENSE file for copyright and license details. */
+#include <stdio.h>
+
+#include "../util.h"
+
+const char *
+separator(const char *separator)
+{
+ return separator;
+}
diff --git a/config.def.h b/config.def.h
@@ -45,6 +45,7 @@ static const char unknown_str[] = "n/a";
* ram_total total memory size in GB NULL
* ram_used used memory in GB NULL
* run_command custom shell command command (echo foo)
+ * separator string to echo NULL
* swap_free free swap in GB NULL
* swap_perc swap usage in percent NULL
* swap_total total swap size in GB NULL
diff --git a/slstatus.h b/slstatus.h
@@ -56,6 +56,9 @@ const char *ram_used(void);
/* run_command */
const char *run_command(const char *cmd);
+/* separator */
+const char *separator(const char *separator);
+
/* swap */
const char *swap_free(void);
const char *swap_perc(void);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.