Just use the format strings dude. :)
components/num_files\
components/ram\
components/run_command\
- components/separator\
components/swap\
components/temperature\
components/uptime\
+++ /dev/null
-/* See LICENSE file for copyright and license details. */
-#include <stdio.h>
-
-#include "../util.h"
-#include "../slstatus.h"
-
-const char *
-separator(const char *separator)
-{
- return separator;
-}
* 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
/* run_command */
const char *run_command(const char *cmd);
-/* separator */
-const char *separator(const char *separator);
-
/* swap */
const char *swap_free(const char *unused);
const char *swap_perc(const char *unused);