env/spoon/config.h-OpenBSD
2019-09-11 17:44:49 +00:00

31 lines
1.0 KiB
Plaintext

/* delay between each update in seconds */
int delay = 1;
#define lbc0 "%%{F#000000}"
#define lbc1 "%%{F#cc2900}"
#define lbc2 "%%{F#29cc00}"
#define lbc3 "%%{F#cca300}"
#define lbc4 "%%{F#0029cc}"
#define lbc5 "%%{F#cc00a3}"
#define lbc6 "%%{F#00a3cc}"
#define lbc7 "%%{F#cccccc}"
#define lbc8 "%%{F#333333}"
#define lbc9 "%%{F#ff5c33}"
#define lbc10 "%%{F#5cff33}"
#define lbc11 "%%{F#ffd633}"
#define lbc12 "%%{F#335cff}"
#define lbc13 "%%{F#ff33d6}"
#define lbc14 "%%{F#33d6ff}"
#define lbc15 "%%{F#ffffff}"
#define lbreset "%%{F-}"
struct ent ents[] = {
/* reorder/remove these as you see fit */
{ .fmt = "%%{r}i5 %s'C " lbc14 "| " lbreset, .read = tempread, .arg = NULL },
{ .fmt = "%s ", .read = wifiread, .arg = NULL },
{ .fmt = "%s " lbc14 "| " lbreset, .read = netspeedread, .arg = "trunk0" },
{ .fmt = "B%s%% ", .read = battread, .arg = NULL },
{ .fmt = "V%s%% " lbc14 "| " lbreset, .read = mixread, .arg = NULL },
{ .fmt = "%s", .read = dateread, .arg = &(struct datearg){ .fmt = "%a %d %b %T", .tz = "UTC" } },
};