Add separator module
Ryan Kes alrayyes@gmail.com
Sat, 30 Mar 2019 13:45:05 +0100
4 files changed,
15 insertions(+),
0 deletions(-)
A
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; +}
M
config.def.h
→
config.def.h
@@ -45,6 +45,7 @@ * ram_perc memory usage in percent NULL
* 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
M
slstatus.h
→
slstatus.h
@@ -56,6 +56,9 @@
/* 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);