4 aliases
["@energy_percent"] =
"bar_make_status_energy_percent()"
5 aliases
["@energy_direction"] =
"bar_make_status_energy_direction()"
7 aliases
["@memory_percent"] =
"bar_make_status_mem_percent()"
9 aliases
["@processes_count_all"] =
"bar_make_status_procs_count_all()"
10 aliases
["@processes_count_r"] =
"bar_make_status_procs_count_r()"
11 aliases
["@processes_count_d"] =
"bar_make_status_procs_count_d()"
12 aliases
["@processes_count_t"] =
"bar_make_status_procs_count_t()"
13 aliases
["@processes_count_i"] =
"bar_make_status_procs_count_i()"
14 aliases
["@processes_count_z"] =
"bar_make_status_procs_count_z()"
16 aliases
["@cpu_loadavg"] =
"bar_make_status_cpu_loadavg()"
17 aliases
["@cpu_temp"] =
"bar_make_status_cpu_temperature()"
18 aliases
["@cpu_fan_speed"] =
"bar_make_status_cpu_fan_speed()"
20 aliases
["@disk_space"] =
"bar_make_status_disk_space()"
21 aliases
["@disk_io_w"] =
"bar_make_status_disk_io_w()"
22 aliases
["@disk_io_r"] =
"bar_make_status_disk_io_r()"
24 aliases
["@net_addr"] =
"bar_make_status_net_addr(\"%s\")"
25 params
["@net_addr"] =
1
26 aliases
["@net_io_w"] =
"bar_make_status_net_io_w(\"%s\")"
27 params
["@net_io_w"] =
1
28 aliases
["@net_io_r"] =
"bar_make_status_net_io_r(\"%s\")"
29 params
["@net_io_r"] =
1
30 aliases
["@net_wifi"] =
"bar_make_status_net_wifi(\"%s\")"
31 params
["@net_wifi"] =
1
33 aliases
["@bluetooth_power"] =
"bar_make_status_bluetooth_power()"
35 aliases
["@backlight_percent"] =
"bar_make_status_backlight_percent()"
37 aliases
["@volume"] =
"bar_make_status_volume_alsa_device(%d)"
40 aliases
["@mpd"] =
"bar_make_status_mpd()"
42 aliases
["@weather_temp_f"] =
"bar_make_status_weather_temp_f()"
44 aliases
["@datetime"] =
"bar_make_status_datetime()"
46 out =
"function bar_make_status() {\n"
47 n_args =
split(Status_Args
, args_arr
, ",")
48 for (i=
1; i
<=n_args
; i
++) {
50 split(arg
, arg_parts
, ":")
52 n_expected_params = params
[alias
]
53 if (n_expected_params ==
0) {
54 function_call = aliases
[alias
]
55 } else if (n_expected_params ==
1) {
56 function_call =
sprintf(aliases
[alias
], arg_parts
[2])
59 "Unsupported number of params: %d in %s\n",
60 n_expected_params
, alias
) \
65 args_str = args_str
", " function_call
67 printf("Unexpected status bar component alias: \"%s\"\n", alias
) \
72 out = out
" return sprintf(\"" Status_Fmt
"\"" args_str
");\n}";