tconfig.h - spoon - [fork] customized build of spoon, the dwm status utility
(HTM) git clone git://src.adamsgaard.dk/spoon
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tconfig.h (1507B)
---
1 /* delay between each update in seconds */
2 int delay = 1;
3
4 #define SEP "|"
5
6 struct ent ents[] = {
7 /* reorder/edit/remove these as you see fit */
8 { .fmt = "%s", .read = fileexists, .arg = "/tmp/screenrecord.pid" },
9 { .fmt = "%s", .read = fileexists, .arg = "/tmp/adcast.pid" },
10 { .fmt = " %s", .read = fileread, .arg = "/tmp/radiostats" },
11 { .fmt = " %s", .read = fileread, .arg = "/tmp/pingtimer" },
12 { .fmt = " %s "SEP, .read = mpdread, .arg = &(struct mpdarg){ .host = NULL, .port = 0 } },
13 /* { .fmt = "%s", .read = countread, .arg = "/home/ad/.mail/adamsgaard.dk/INBOX/new" }, */
14 { .fmt = " %s "SEP, .read = fileread, .arg = "/tmp/mailstats" },
15 { .fmt = " %s "SEP, .read = xkblayoutread, .arg = NULL },
16 { .fmt = " vol %s "SEP, .read = mixread, .arg = NULL },
17 /*{ .fmt = "[%s] ", .read = cpuread, .arg = "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" },*/
18 { .fmt = " %s°C", .read = tempread, .arg = "/sys/class/hwmon/hwmon1/temp1_input" },
19 { .fmt = " %s "SEP, .read = loadread, .arg = NULL },
20 { .fmt = "%s", .read = battread, .arg = &(struct battarg){ .cap = "/sys/class/power_supply/BAT0/capacity", .ac = "/sys/class/power_supply/AC/online", .en = "/sys/class/power_supply/BAT0/energy_now", .pow = "/sys/class/power_supply/BAT0/power_now" } },
21 /*{ .fmt = "%s ", .read = fileread, .arg = "/etc/myname" },*/
22 { .fmt = " %s "SEP, .read = wifiread, .arg = NULL },
23 { .fmt = " %s", .read = dateread, .arg = &(struct datearg){ .fmt = "%Y-%m-%d %a %H:%M:%S %Z", .tz = NULL } },
24 };