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 |
Public interface of the xmobar library
Synopsis
- 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
- 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
- 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 () Source #
defaultConfig :: Config Source #
The default configuration values
class Show e => Exec e where Source #
Nothing
run :: e -> IO String Source #
start :: e -> (String -> IO ()) -> IO () Source #
trigger :: e -> (Maybe SignalType -> IO ()) -> IO () Source #
Instances
Configuration
Configuration data type
The configuration data type
Config | |
|
Top | |
TopW Align Int | |
TopSize Align Int Int | |
TopP Int Int | |
Bottom | |
BottomP Int Int | |
BottomW Align Int | |
BottomSize Align Int Int | |
Static | |
OnScreen Int XPosition |
readConfig :: Config -> FilePath -> IO (Either ParseError (Config, [String])) Source #
Reads the configuration from a file or an error if it cannot be parsed.
parseConfig :: Config -> String -> Either ParseError (Config, [String]) Source #
Parse the config, logging a list of fields that were missing and replaced by the default definition.
data BufferedPipeReader Source #
BufferedPipeReader String [(Int, Bool, String)] |
Instances
Read BufferedPipeReader Source # | |
Defined in Xmobar.Plugins.BufferedPipeReader | |
Show BufferedPipeReader Source # | |
Defined in Xmobar.Plugins.BufferedPipeReader showsPrec :: Int -> BufferedPipeReader -> ShowS # show :: BufferedPipeReader -> String # showList :: [BufferedPipeReader] -> ShowS # | |
Exec BufferedPipeReader Source # | |
Defined in Xmobar.Plugins.BufferedPipeReader |
data CommandReader Source #
Instances
Read CommandReader Source # | |
Defined in Xmobar.Plugins.CommandReader readsPrec :: Int -> ReadS CommandReader # readList :: ReadS [CommandReader] # | |
Show CommandReader Source # | |
Defined in Xmobar.Plugins.CommandReader showsPrec :: Int -> CommandReader -> ShowS # show :: CommandReader -> String # showList :: [CommandReader] -> ShowS # | |
Exec CommandReader Source # | |
data PipeReader Source #
Instances
Read PipeReader Source # | |
Defined in Xmobar.Plugins.PipeReader readsPrec :: Int -> ReadS PipeReader # readList :: ReadS [PipeReader] # readPrec :: ReadPrec PipeReader # readListPrec :: ReadPrec [PipeReader] # | |
Show PipeReader Source # | |
Defined in Xmobar.Plugins.PipeReader showsPrec :: Int -> PipeReader -> ShowS # show :: PipeReader -> String # showList :: [PipeReader] -> ShowS # | |
Exec PipeReader Source # | |
data StdinReader Source #
Instances
Read StdinReader Source # | |
Defined in Xmobar.Plugins.StdinReader readsPrec :: Int -> ReadS StdinReader # readList :: ReadS [StdinReader] # readPrec :: ReadPrec StdinReader # readListPrec :: ReadPrec [StdinReader] # | |
Show StdinReader Source # | |
Defined in Xmobar.Plugins.StdinReader showsPrec :: Int -> StdinReader -> ShowS # show :: StdinReader -> String # showList :: [StdinReader] -> ShowS # | |
Exec StdinReader Source # | |