Copyright | (c) José A. Romero L. |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | José A. Romero L. <escherdragon@gmail.com> |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
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.
- defaultNetFormat :: String
- netMonitorMultiNew :: MonadIO m => Double -> [String] -> m Widget
- netMonitorMultiNewWith :: MonadIO m => Double -> [String] -> Int -> String -> m Widget
- netMonitorNew :: MonadIO m => Double -> String -> m Widget
- netMonitorNewWith :: MonadIO m => Double -> String -> Int -> String -> m Widget
- showInfo :: String -> Int -> (Double, Double) -> String
Documentation
:: 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 #
:: 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.
:: 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 PollingLabel
s,
one for incoming and one for outgoing traffic fed by regular calls to
getNetInfo
.
:: 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.