mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-30 07:15:42 +00:00
Add separator module
This commit is contained in:
parent
b14e039639
commit
2b0f50d1aa
1
Makefile
1
Makefile
@ -21,6 +21,7 @@ COM =\
|
||||
components/num_files\
|
||||
components/ram\
|
||||
components/run_command\
|
||||
components/separator\
|
||||
components/swap\
|
||||
components/temperature\
|
||||
components/uptime\
|
||||
|
10
components/separator.c
Normal file
10
components/separator.c
Normal file
@ -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;
|
||||
}
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user