1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* slstatus - suckless status monitor */
#ifndef CONFIG_H
#define CONFIG_H
/* Interval in milliseconds between updates */
const unsigned int interval = 1000;
/* Maximum length of the status text */
#define MAXLEN 2048
/* Define your hardware interfaces here */
#define WIFI_INTERFACE "wlp0s20f3"
#define BATTERY_NAME "BAT0"
#define AUDIO_MIXER "default" // Uses default ALSA mixer (usually Master)
static const char unknown_str[] = "n/a";
static const struct arg args[] = {
/* function format argument */
{ datetime, " %s ", "%a %b %d %H:%M" },
{ wifi_essid, " | wifi: %s", WIFI_INTERFACE },
{ wifi_perc, " (%s%%)", WIFI_INTERFACE },
{ vol_perc, " | vol: %s%%", AUDIO_MIXER },
{ battery_perc, " | bat: %s%%", BATTERY_NAME },
};
#endif /* CONFIG_H */
|