From cc26b1fa2e8f06d260a1e8aa9f258169f9102a93 Mon Sep 17 00:00:00 2001 From: Alex Denes Date: Fri, 23 Oct 2020 18:24:36 +0200 Subject: [PATCH] Change interval to be shorter and change separators, add proper thermal input --- config.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/config.h b/config.h index 5c2211f..ee210bd 100644 --- a/config.h +++ b/config.h @@ -1,7 +1,7 @@ /* See LICENSE file for copyright and license details. */ /* interval between updates (in ms) */ -const unsigned int interval = 1000; +const unsigned int interval = 500; /* text to show if no value can be retrieved */ static const char unknown_str[] = ""; @@ -63,16 +63,16 @@ static const char unknown_str[] = ""; */ static const struct arg args[] = { /* function format argument */ - { kernel_release, " %s |", NULL }, - { keymap, " %s |", NULL }, -// { battery_perc, " %s% |", "CMB1" }, -// { temp, " %s°C |", "/sys/class/thermal/thermal_zone0/temp"}, + { kernel_release, " %s ", NULL }, + { keymap, " %s ", NULL }, +// { battery_perc, " %s% ", "CMB1" }, { load_avg, " %s @", NULL }, - { cpu_freq, " %sHz |", NULL }, + { cpu_freq, " %sHz -", NULL }, + { temp, " %s°C ", "/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp1_input"}, { ram_used, " %sB /", NULL }, - { ram_free, " %sB |", NULL }, + { ram_free, " %sB ", NULL }, { netspeed_rx, " %7.7sB/s", "wg0" }, - { netspeed_tx, " %7.7sB/s |", "wg0" }, - { uptime, " %s |", NULL }, + { netspeed_tx, " %7.7sB/s ", "wg0" }, + { uptime, " %s ", NULL }, { datetime, " %s ", "%a %d/%m %T" }, };