1
0

Custom config

This commit is contained in:
Emil Miler 2020-12-19 23:31:46 +01:00
parent f68f49273e
commit 42fe9e1ea2

View File

@ -1,10 +1,10 @@
/* See LICENSE file for copyright and license details. */
/* interval between updates (in ms) */
const unsigned int interval = 1000;
const unsigned int interval = 3000;
/* text to show if no value can be retrieved */
static const char unknown_str[] = "n/a";
static const char unknown_str[] = "-";
/* maximum output string length */
#define MAXLEN 2048
@ -64,6 +64,13 @@ static const char unknown_str[] = "n/a";
* wifi_perc WiFi signal in percent interface name (wlan0)
*/
static const struct arg args[] = {
/* function format argument */
{ datetime, "%s", "%F %T" },
/* function format argument */
{ ipv4, "直 %s", "wlan0" },
{ wifi_essid, " %s | ", "wlan0" },
{ ipv4, " %s | ", "eth0" },
{ battery_perc, " %s", "BAT0" },
{ battery_state, " %s | ", "BAT0" },
{ keymap, " %s", NULL },
{ keyboard_indicators, " %s | ", "c?" },
{ datetime, "%s |", "%F %a %H:%M" },
};