|
|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
const unsigned int interval = 1000;
|
|
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
@ -65,5 +65,14 @@ static const char unknown_str[] = "n/a";
|
|
|
|
|
*/
|
|
|
|
|
static const struct arg args[] = {
|
|
|
|
|
/* function format argument */
|
|
|
|
|
{ datetime, "%s", "%F %T" },
|
|
|
|
|
{ run_command, "%s ", "echo $(cat /home/nathan/recordings/.recording_status)" },
|
|
|
|
|
/* { run_command, "%s ", "echo $(cat /home/nathan/vpn)" }, */
|
|
|
|
|
{ netspeed_tx, "%sB/s ", "wlp3s0" },
|
|
|
|
|
{ netspeed_rx, "%sB/s ", "wlp3s0" },
|
|
|
|
|
{ temp, " %sC ", "/sys/class/thermal/thermal_zone0/temp" },
|
|
|
|
|
{ cpu_perc, "[: %s%%] ", NULL },
|
|
|
|
|
{ ram_used, "[: %sB] ", NULL },
|
|
|
|
|
{ battery_perc, " %s%%", "BAT0" },
|
|
|
|
|
{ battery_state, "%s ", "BAT0" },
|
|
|
|
|
{ datetime, "%s", "%d/%m %R" },
|
|
|
|
|
};
|
|
|
|
|
|