1/* See LICENSE for license details. */ 2 3/* Delay (in seconds) used between updates of the status text. */ 4static const int delay = 5; 5 6/* Seperator to use between different status function outputs. */ 7static const char *statsep = " | "; 8 9/* Format to use in the curtime function for the current time. */10static const char *timefmt = "%d %b %Y %H:%M:%S";1112/* Path to power supply battery directory in /sys. */13static const char *sysbat = "/sys/class/power_supply/BAT0";1415/* Path to control file for current charge. */16static const char *syscur = "charge_now";1718/* Path to control file for full charge. */19static const char *sysfull = "charge_full_design";2021/* Sound card to use for alsa output. */22static const unsigned int sndcrd = 0;2324/* Name of the control channel to use for alsa output. */25static const char* swtchname = "Master Playback Switch";26static const char* volumname = "Master Playback Volume";2728/* Array of functions to use in the status bar text. */29static size_t (* const sfuncs[])(char*, size_t) = {30 batcap,31 separator,32 alsavol,33 separator,34 loadavg,35 separator,36 curtime,37};