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