taffybar-2.1.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 HaskellNone
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.

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