29 lines
1018 B
Plaintext
29 lines
1018 B
Plaintext
/* delay between each update in seconds */
|
|
int delay = 1;
|
|
|
|
#define lb_c0 "%%{F#000000}"
|
|
#define lb_c1 "%%{F#cc2900}"
|
|
#define lb_c2 "%%{F#29cc00}"
|
|
#define lb_c3 "%%{F#cca300}"
|
|
#define lb_c4 "%%{F#0029cc}"
|
|
#define lb_c5 "%%{F#cc00a3}"
|
|
#define lb_c6 "%%{F#00a3cc}"
|
|
#define lb_c7 "%%{F#cccccc}"
|
|
#define lb_c8 "%%{F#333333}"
|
|
#define lb_c9 "%%{F#ff5c33}"
|
|
#define lb_c10 "%%{F#5cff33}"
|
|
#define lb_c11 "%%{F#ffd633}"
|
|
#define lb_c12 "%%{F#335cff}"
|
|
#define lb_c13 "%%{F#ff33d6}"
|
|
#define lb_c14 "%%{F#33d6ff}"
|
|
#define lb_c15 "%%{F#ffffff}"
|
|
#define lb_reset "%%{F-}"
|
|
|
|
struct ent ents[] = {
|
|
/* reorder/remove these as you see fit */
|
|
{ .fmt = "%%{r}i7 %s'C " lb_c14 "|" lb_reset " ", .read = tempread, .arg = "/sys/class/hwmon/hwmon0/temp1_input" },
|
|
{ .fmt = "%s " lb_c14 "|" lb_reset " ", .read = netspeedread, .arg = "enp11s0" },
|
|
{ .fmt = "V%s " lb_c14 "|" lb_reset " ", .read = mixread, .arg = NULL },
|
|
{ .fmt = "%s", .read = dateread, .arg = &(struct datearg){ .fmt = "%a %d %b %T", .tz = "UTC" } },
|
|
};
|