STATUS_FILE__WIFI=$STATUS_DIR/wifi
STATUS_FILE__ENERGY_NOTIFIED_BELLOW_HALF=$STATUS_DIR/notified_energy_bellow_half
-SYMBOL_WIFI='📶'
-
#load=$(cat /proc/loadavg | awk '{printf "%4.2f %4.2f %4.2f", $1, $2, $3}')
fan=$(awk '/^speed:/ {printf "%4d", $2}' /proc/acpi/ibm/fan)
printf("%s[%d%% %s]", direction, curr_perc, disk_io);
}')
-io_net=$(
- awk '
+network=$(
+ awk -v wifi_conn=$(cat $STATUS_FILE__WIFI) '
BEGIN {
bytes_per_unit = 1024 * 1024
}
print curr_read > prev_read_file;
print curr_write > prev_write_file;
- printf("%s %0.3fâ–² %0.3fâ–¼\n", device, diff_write, diff_read);
+ devices[device] = sprintf("%0.3fâ–² %0.3fâ–¼", diff_write, diff_read);
+ }
+
+ END {
+ lo = devices["lo"]
+ #eth = devices["enp0s25"]
+ wifi = devices["wlp3s0"]
+ printf("[%s | %s %s]", lo, wifi_conn, wifi)
}
' /proc/net/dev
)
volume="[$volume_pactl]"
-wifi=$(cat $STATUS_FILE__WIFI)
-
screen_brightness=$(
max=$(cat /sys/class/backlight/acpi_video0/max_brightness)
cur=$(cat /sys/class/backlight/acpi_video0/brightness)
D$disk\
\
\
- $SYMBOL_WIFI [$wifi $(echo "$io_net" | awk '/^wlp3s0/ {print $2, $3}')]\
+ N:$network\
\
\
B:$bluetooth_power\