taffybar-4.0.1: 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 HaskellSafe-Inferred
LanguageHaskell2010

System.Taffybar.Information.Network

Description

Provides information about network traffic over selected interfaces, obtained from parsing the /proc/net/dev file using some of the facilities provided by the System.Taffybar.Information.StreamInfo module.

Synopsis

Documentation

getNetInfo :: String -> IO (Maybe [Int]) Source #

Returns a two-element list containing the current number of bytes received and transmitted via the given network interface (e.g. "wlan0"), according to the contents of the /proc/dev/net file.

data TxSample Source #

Instances

Instances details
Show TxSample Source # 
Instance details

Defined in System.Taffybar.Information.Network

Eq TxSample Source # 
Instance details

Defined in System.Taffybar.Information.Network

monitorNetworkInterfaces :: RealFrac a1 => a1 -> ([(String, (Rational, Rational))] -> IO ()) -> IO () Source #