config.def.h (1336B)
1 #include "blocks/date.c" 2 #include "blocks/linux/battery_info.c" 3 //#include "blocks/linux/backlight.c" 4 //#include "blocks/linux/volume.c" 5 //#include "blocks/mpd.c" 6 //#include "blocks/script.c" 7 8 /* mpd_arg.host can be NULL to use the MPD_HOST env variable */ 9 // static enum mpd_tag_type tags[] = { MPD_TAG_TITLE, MPD_TAG_ARTIST }; 10 // static struct mpd_arg ma = { "localhost", "|", tags, 2 }; 11 12 /* alsa card and sink */ 13 /* card is found with 'aplay -L', default is probably correct */ 14 // static struct vol_arg va = { "default", "Speaker" }; 15 16 /* check blocks/xxx/battery_info.c for info */ 17 static struct bat_arg ba = {.bat = s8("BAT0")}; 18 19 /* backlight name (/sys/class/backlight/xxx) */ 20 //static s8 linux_backlight = s8("xxx"); 21 22 /* status block definitions 23 * 24 * block description arg (ex) 25 * 26 * battery_info battery percentage and status (struct bat_arg *) 27 * backlight percentage (s8 *) backlight name 28 * date date and time (char *) fmt ("%R") 29 * script run specified script (char *) full script (echo foo | bar) 30 */ 31 32 /* NOTE: X(name, statusline_format, interval, argument) * 33 * interval == 0 means never update from timer */ 34 #define BLOCKS \ 35 X(battery_info, "[ %s ]", 30, &ba) \ 36 X(date, "[ %s ]", 30, "%R")