spoon

set dwm status
git clone git@git.2f30.org/spoon.git
Log | Files | Refs | LICENSE

config.def.h (1138B)


      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 = mpdread,	.arg = &(struct mpdarg){ .host = NULL, .port = 0 } },
      7 	{ .fmt = "[%s] ",	.read = countread,	.arg = "/home/USER/Maildir/INBOX/new" },
      8 	{ .fmt = "[%s] ",	.read = mixread,	.arg = NULL },
      9 	{ .fmt = "[%s] ",	.read = loadread,	.arg = NULL },
     10 	{ .fmt = "[%s] ",	.read = cpuread,	.arg = "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" },
     11 	{ .fmt = "[%s°] ",	.read = tempread,	.arg = "/sys/class/hwmon/hwmon1/temp1_input" },
     12 	{ .fmt = "%s ",		.read = battread,	.arg = &(struct battarg){ .cap = "/sys/class/power_supply/BAT0/capacity", .ac = "/sys/class/power_supply/AC/online" } },
     13 	{ .fmt = "%s ",		.read = wifiread,	.arg = NULL },
     14 	{ .fmt = "[%s] ",	.read = xkblayoutread,	.arg = NULL },
     15 	{ .fmt = "%s",		.read = keyread,	.arg = &(struct keyarg){ .sym = XK_Caps_Lock, .on = "[caps] ", .off = "" } },
     16 	{ .fmt = "%s ",		.read = fileread,	.arg = "/etc/myname" },
     17 	{ .fmt = "%s",		.read = dateread,	.arg = &(struct datearg){ .fmt = "%a %d %b %Y %H:%M %Z", .tz = NULL } },
     18 };