Xinqi Bao's Git

bringed back the old config.mk
[slstatus.git] / config.def.h
1 /* See LICENSE file for copyright and license details. */
2
3 /* alsa sound */
4 #define ALSA_CHANNEL "Master"
5
6 /* battery */
7 #define BATTERY_PATH "/sys/class/power_supply/"
8 #define BATTERY_NOW "energy_now"
9 #define BATTERY_FULL "energy_full_design"
10
11 /* text to show if no value can be retrieved */
12 #define UNKNOWN_STR "n/a"
13
14 /* statusbar
15 - battery_perc (battery percentage) [argument: battery name]
16 - cpu_perc (cpu usage in percent) [argument: NULL]
17 - datetime (date and time) [argument: format]
18 - disk_free (disk usage in percent) [argument: mountpoint]
19 - disk_perc (disk usage in percent) [argument: mountpoint]
20 - disk_total (disk usage in percent) [argument: mountpoint]
21 - disk_used (disk usage in percent) [argument: mountpoint]
22 - entropy (available entropy) [argument: NULL]
23 - gid (gid of current user) [argument: NULL]
24 - hostname [argument: NULL]
25 - ip (ip address) [argument: interface]
26 - load_avg (load average) [argument: NULL]
27 - ram_free (ram usage in percent) [argument: NULL]
28 - ram_perc (ram usage in percent) [argument: NULL]
29 - ram_total (ram usage in percent) [argument: NULL]
30 - ram_used (ram usage in percent) [argument: NULL]
31 - run_command (run custom shell command) [argument: command]
32 - temp (temperature in degrees) [argument: temperature file]
33 - uid (uid of current user) [argument: NULL]
34 - uptime (uptime) [argument: NULL]
35 - username (username of current user) [argument: NULL]
36 - vol_perc (alsa volume and mute status in percent) [argument: soundcard]
37 - wifi_perc (wifi signal in percent) [argument: wifi card interface name]
38 - wifi_essid (wifi essid) [argument: wifi card interface name] */
39 static const struct arg args[] = {
40 /* function format argument */
41 { cpu_perc, "[ CPU %4s ]", NULL },
42 { ram_perc, "[ Mem %3s ]", NULL },
43 { disk_perc, "[ HDD %3s ]", "/" },
44 { datetime, "[ %s ]", "%F %T" },
45 };