recipes

packages recipes for the <noname> package manager
Log | Files | Refs

config.h (1045B)


      1 /* delay between each update in seconds */
      2 int delay = 1;
      3 
      4 struct ent ents[] = {
      5 	/* reorder/edit/remove these as you see fit */
      6 	{ .fmt = " [%s]",	.read = countread,	.arg = "/home/josuah/mail/INBOX/new" },
      7 	{ .fmt = " [%s]",	.read = mixread,	.arg = NULL },
      8 	{ .fmt = " [%s]",	.read = loadread,	.arg = NULL },
      9 	{ .fmt = " [%s]",	.read = cpuread,	.arg = "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" },
     10 	{ .fmt = " [%s'C]",	.read = tempread,	.arg = "/sys/class/hwmon/hwmon1/temp1_input" },
     11 	{ .fmt = " %s",		.read = battread,	.arg = &(struct battarg){ .cap = "/sys/class/power_supply/BAT0/capacity", .ac = "/sys/class/power_supply/AC/online" } },
     12 	{ .fmt = " %s",		.read = wifiread,	.arg = NULL },
     13 	{ .fmt = " [%s]",	.read = xkblayoutread,	.arg = NULL },
     14 	{ .fmt = " %s",		.read = keyread,	.arg = &(struct keyarg){ .sym = XK_Caps_Lock, .on = "[caps] ", .off = "" } },
     15 	{ .fmt = "%s",		.read = fileread,	.arg = "/etc/myname" },
     16 	{ .fmt = " %s",		.read = dateread,	.arg = &(struct datearg){ .fmt = "%a %Y/%m/%d %H:%M", .tz = NULL } },
     17 };