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