| Copyright | (c) 2011 2012 2013 2014 2015 2017 2018 Jose Antonio Ortega Ruiz (c) 2007 Andrea Rossato |
|---|---|
| License | BSD-style (see LICENSE) |
| Maintainer | Jose A. Ortega Ruiz <jao@gnu.org> |
| Stability | unstable |
| Portability | unportable |
| Safe Haskell | None |
| Language | Haskell98 |
Xmobar
Contents
Description
Public interface of the xmobar library
- xmobar :: Config -> IO ()
- xmobarMain :: IO ()
- defaultConfig :: Config
- configFromArgs :: Config -> IO Config
- data Runnable = (Exec r, Read r, Show r) => Run r
- class Show e => Exec e where
- data Command
- data Config = Config {
- font :: String
- additionalFonts :: [String]
- wmClass :: String
- wmName :: String
- bgColor :: String
- fgColor :: String
- position :: XPosition
- textOffset :: Int
- textOffsets :: [Int]
- iconOffset :: Int
- border :: Border
- borderColor :: String
- borderWidth :: Int
- alpha :: Int
- hideOnStart :: Bool
- allDesktops :: Bool
- overrideRedirect :: Bool
- pickBroadest :: Bool
- lowerOnStart :: Bool
- persistent :: Bool
- iconRoot :: FilePath
- commands :: [Runnable]
- sepChar :: String
- alignSep :: String
- template :: String
- verbose :: Bool
- data XPosition
- data Align
- data Border
- readConfig :: Config -> FilePath -> IO (Either ParseError (Config, [String]))
- parseConfig :: Config -> String -> Either ParseError (Config, [String])
- data BufferedPipeReader = BufferedPipeReader String [(Int, Bool, String)]
- data CommandReader = CommandReader String String
- data Date = Date String String Int
- data EWMH
- newtype Kbd = Kbd [(String, String)]
- data Locks = Locks
- module Xmobar.Plugins.Mail
- module Xmobar.Plugins.MBox
- data Monitors
- = Network Interface Args Rate
- | DynNetwork Args Rate
- | BatteryP Args Args Rate
- | BatteryN Args Args Rate Alias
- | Battery Args Rate
- | DiskU DiskSpec Args Rate
- | DiskIO DiskSpec Args Rate
- | Thermal Zone Args Rate
- | ThermalZone ZoneNo Args Rate
- | Memory Args Rate
- | Swap Args Rate
- | Cpu Args Rate
- | MultiCpu Args Rate
- | Brightness Args Rate
- | CpuFreq Args Rate
- | CoreTemp Args Rate
- | TopProc Args Rate
- | TopMem Args Rate
- | Uptime Args Rate
- | CatInt Int FilePath Args Rate
- | Weather Station Args Rate
- | Wireless Interface Args Rate
- | Mpris1 String Args Rate
- | Mpris2 String Args Rate
- type Args = [String]
- type Program = String
- type Alias = String
- type Station = String
- type Zone = String
- type ZoneNo = Int
- type Interface = String
- type Rate = Int
- type DiskSpec = [(String, String)]
- data PipeReader = PipeReader String String
- data StdinReader
- data XMonadLog
Documentation
xmobarMain :: IO () #
defaultConfig :: Config #
The default configuration values
configFromArgs :: Config -> IO Config #
Configuration
Configuration data type
The configuration data type
Constructors
| Config | |
Fields
| |
readConfig :: Config -> FilePath -> IO (Either ParseError (Config, [String])) #
Reads the configuration from a file or an error if it cannot be parsed.
parseConfig :: Config -> String -> Either ParseError (Config, [String]) #
Parse the config, logging a list of fields that were missing and replaced by the default definition.
module Xmobar.Plugins.Mail
module Xmobar.Plugins.MBox
Constructors