Change interval to be shorter and change separators, add proper thermal input

This commit is contained in:
Alex D. 2020-10-23 18:24:36 +02:00
parent 4cc3a15277
commit cc26b1fa2e
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
/* interval between updates (in ms) */ /* interval between updates (in ms) */
const unsigned int interval = 1000; const unsigned int interval = 500;
/* text to show if no value can be retrieved */ /* text to show if no value can be retrieved */
static const char unknown_str[] = ""; static const char unknown_str[] = "";
@ -63,16 +63,16 @@ static const char unknown_str[] = "";
*/ */
static const struct arg args[] = { static const struct arg args[] = {
/* function format argument */ /* function format argument */
{ kernel_release, " %s |", NULL }, { kernel_release, " %s ", NULL },
{ keymap, " %s |", NULL }, { keymap, " %s ", NULL },
// { battery_perc, " %s% |", "CMB1" }, // { battery_perc, " %s% ", "CMB1" },
// { temp, " %s°C |", "/sys/class/thermal/thermal_zone0/temp"},
{ load_avg, " %s @", NULL }, { 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_used, " %sB /", NULL },
{ ram_free, " %sB |", NULL }, { ram_free, " %sB ", NULL },
{ netspeed_rx, " %7.7sB/s", "wg0" }, { netspeed_rx, " %7.7sB/s", "wg0" },
{ netspeed_tx, " %7.7sB/s |", "wg0" }, { netspeed_tx, " %7.7sB/s ", "wg0" },
{ uptime, " %s |", NULL }, { uptime, " %s ", NULL },
{ datetime, " %s ", "%a %d/%m %T" }, { datetime, " %s ", "%a %d/%m %T" },
}; };