taffybar-2.0.0: A desktop bar similar to xmobar, but with more GUI

Copyright(c) José A. Romero L.
LicenseBSD3-style (see LICENSE)
MaintainerJosé A. Romero L. <escherdragon@gmail.com>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

System.Taffybar.Widget.NetMonitor

Description

Deprecated: Use System.Taffybar.Widget.Text.NetworkMonitor instead

Simple text widget that displays incoming/outgoing network traffic over one selected interface, as provided by the System.Taffybar.Information.Network module.

Synopsis

Documentation

netMonitorMultiNew Source #

Arguments

:: MonadIO m 
=> Double

Polling interval (in seconds, e.g. 1.5)

-> [String]

Name of the network interfaces to monitor (e.g. "eth0", "wlan1")

-> m Widget 

Like netMonitorNew but allows specification of multiple interfaces. Interfaces are allowed to not exist at all (e.g. unplugged usb ethernet), the resulting speed is the speed of all available interfaces summed up. So you get your network speed regardless of which interface you are currently using.

netMonitorMultiNewWith Source #

Arguments

:: MonadIO m 
=> Double

Polling interval (in seconds, e.g. 1.5)

-> [String]

Name of the network interfaces to monitor (e.g. "eth0", "wlan1")

-> Int

Precision for an output

-> String

Template for an output. You can use variables: $inB$, $inKB$, $inMB$, $inAuto$, $outB$, $outKB$, $outMB$, $outAuto$

-> m Widget 

Like newMonitorNewWith but for multiple interfaces.

netMonitorNew Source #

Arguments

:: MonadIO m 
=> Double

Polling interval (in seconds, e.g. 1.5)

-> String

Name of the network interface to monitor (e.g. "eth0", "wlan1")

-> m Widget 

Creates a new network monitor widget. It consists of two PollingLabels, one for incoming and one for outgoing traffic fed by regular calls to getNetInfo.

netMonitorNewWith Source #

Arguments

:: MonadIO m 
=> Double

Polling interval (in seconds, e.g. 1.5)

-> String

Name of the network interface to monitor (e.g. "eth0", "wlan1")

-> Int

Precision for an output

-> String

Template for an output. You can use variables: $inB$, $inKB$, $inMB$, $inAuto$, $outB$, $outKB$, $outMB$, $outAuto$

-> m Widget 

Creates a new network monitor widget with custom template and precision. Similar to netMonitorNew.

The format template currently supports four units: bytes, kilobytes, megabytes, and auto.