dwm-status

Yet another stupid dwm status tool

git clone https://git.8pit.net/dwm-status.git

 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";
11
12/* Path to power supply battery directory in /sys. */
13static const char *sysbat = "/sys/class/power_supply/BAT0";
14
15/* Path to control file for current charge. */
16static const char *syscur = "charge_now";
17
18/* Path to control file for full charge. */
19static const char *sysfull = "charge_full_design";
20
21/* Sound card to use for alsa output. */
22static const unsigned int sndcrd = 0;
23
24/* Name of the control channel to use for alsa output. */
25static const char* swtchname = "Master Playback Switch";
26static const char* volumname = "Master Playback Volume";
27
28/* 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};