Xinqi Bao's Git

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