Xinqi Bao's Git

used constant string literals && remote initialization to in battery_perc() && tryin...
[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 /* bar update interval in seconds (smallest value = 1) */
12 #define UPDATE_INTERVAL 1;
13
14 /* text to show if no value can be retrieved */
15 #define UNKNOWN_STR "n/a"
16
17 /* statusbar
18 - battery_perc (battery percentage) [argument: battery name]
19 - cpu_perc (cpu usage in percent) [argument: NULL]
20 - datetime (date and time) [argument: format]
21 - disk_free (disk usage in percent) [argument: mountpoint]
22 - disk_perc (disk usage in percent) [argument: mountpoint]
23 - disk_total (disk usage in percent) [argument: mountpoint]
24 - disk_used (disk usage in percent) [argument: mountpoint]
25 - entropy (available entropy) [argument: NULL]
26 - gid (gid of current user) [argument: NULL]
27 - hostname [argument: NULL]
28 - ip (ip address) [argument: interface]
29 - load_avg (load average) [argument: NULL]
30 - ram_free (ram usage in percent) [argument: NULL]
31 - ram_perc (ram usage in percent) [argument: NULL]
32 - ram_total (ram usage in percent) [argument: NULL]
33 - ram_used (ram usage in percent) [argument: NULL]
34 - run_command (run custom shell command) [argument: command]
35 - temp (temperature in degrees) [argument: temperature file]
36 - uid (uid of current user) [argument: NULL]
37 - uptime (uptime) [argument: NULL]
38 - username (username of current user) [argument: NULL]
39 - vol_perc (alsa volume and mute status in percent) [argument: soundcard]
40 - wifi_perc (wifi signal in percent) [argument: wifi card interface name]
41 - wifi_essid (wifi essid) [argument: wifi card interface name] */
42 static const struct arg args[] = {
43 /* function format argument */
44 { cpu_perc, "[ CPU %4s ]", NULL },
45 { ram_perc, "[ Mem %3s ]", NULL },
46 { vol_perc, "[ Volume %4s ]", "default" },
47 { disk_perc, "[ HDD %3s ]", "/" },
48 { datetime, "[ %s ]", "%F %T" },
49 };