Network stats

> Published on Sun, 3 Dec 2023, 16:14> Updated on Fri, 5 Jan 2024, 20:51

Description

The network stats widget displays the current upload and download speed in bytes.

As of now it seems that this widget is consuming a lot of energy. If you see anormal battery draining please disable it until I find a more efficient way to retrieve the network stats.

Interactions

There are no interactions available for this widget.

Available settings

You can set the following network stats widget settings in the simple-bar settings:

  • Refresh frequency: The refresh frequency in milliseconds. Default is 2000 (2 seconds).
  • Show on display: The displays on which the widget will be displayed. Add a list of indexes (for example: "1,2"). Leave blank to display the widget on every spaces. Default is "".
  • Display as graph: Instead of show current network information, the widget will display a graphic showing the latest 60 seconds (it can change depending of the refresh frequency of the widget) of network activity. All drawn points are relative to the highest value. Default is false.

Display as graph mode can drain the battery faster than normal mode as it requires frequent redraws and needs to keep the past state in memory.

Network stats widget's shell script adapted from this repo by @dionmunk (under Creative Commons Attribution-NonCommercial 4.0 International License)

Something is wrong in this documentation? Please open an issue on GitHub in simple-bar repo.