X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/597cdc6b5c6ae4508861bb1122c05acd5850198c..0f7e022381e5a3e5f33c27980016432c205eff50:/config.def.h diff --git a/config.def.h b/config.def.h index a961dbc..0699351 100644 --- a/config.def.h +++ b/config.def.h @@ -1,10 +1,10 @@ /* See LICENSE file for copyright and license details. */ -/* how often to update the statusbar (min value == 1) */ -#define UPDATE_INTERVAL 1 +/* interval between updates (in ms) */ +static const int interval = 1000; /* text to show if no value can be retrieved */ -#define UNKNOWN_STR "n/a" +static const char unknown_str[] = "n/a"; /* maximum output string length */ #define MAXLEN 2048 @@ -27,6 +27,7 @@ - kernel_release (uname -r) [argument: NULL] - keyboard_indicators (caps/num lock indicators) [agrument: NULL] - load_avg (load average) [argument: NULL] +- num_files (number of files in a directory - hint: maildir) [argument: path] - ram_free (free ram in GB) [argument: NULL] - ram_perc (ram usage in percent) [argument: NULL] - ram_total (total ram in GB) [argument: NULL]