-v opt_mpd_song_max_chars=10 \
-v opt_prefixes_of_net_interfaces_to_show="$prefixes_of_net_interfaces_to_show" \
'
-v opt_mpd_song_max_chars=10 \
-v opt_prefixes_of_net_interfaces_to_show="$prefixes_of_net_interfaces_to_show" \
'
- return sprintf("C=[%4.2f %d°C]", load, temp)
+ fan = db["fan_speed"]
+ return sprintf("C=[%4.2f %d°C %4drpm]", load, temp, fan)
}
function make_status_disk( bytes_per_sector, bytes_per_mb, w, r) {
}
function make_status_disk( bytes_per_sector, bytes_per_mb, w, r) {
long_options+=',prefixes_of_net_interfaces_to_show:'
long_options+=',disk_space_device:'
long_options+=',thermal_zone:'
long_options+=',prefixes_of_net_interfaces_to_show:'
long_options+=',disk_space_device:'
long_options+=',thermal_zone:'
echo " disk_space_device|= $disk_space_device"
echo " disk_io_device|= $disk_io_device"
echo " thermal_zone|= $thermal_zone"
echo " disk_space_device|= $disk_space_device"
echo " disk_io_device|= $disk_io_device"
echo " thermal_zone|= $thermal_zone"
# TODO: Redirect each worker's stderr to a dedicated log file
spawn produce_datetime "$pipe" 'in:DATE_TIME' 1
spawn "$cmd_produce_screen_brightness" "$pipe" 'in:SCREEN_BRIGHTNESS' 1
# TODO: Redirect each worker's stderr to a dedicated log file
spawn produce_datetime "$pipe" 'in:DATE_TIME' 1
spawn "$cmd_produce_screen_brightness" "$pipe" 'in:SCREEN_BRIGHTNESS' 1
spawn "$cmd_produce_disk_io" "$pipe" 'in:DISK_IO' 1
spawn produce_loadavg "$pipe" 'in:LOAD_AVG' 1
spawn "$cmd_produce_temperature" "$pipe" 'in:TEMPERATURE' 1
spawn "$cmd_produce_disk_io" "$pipe" 'in:DISK_IO' 1
spawn produce_loadavg "$pipe" 'in:LOAD_AVG' 1
spawn "$cmd_produce_temperature" "$pipe" 'in:TEMPERATURE' 1