| Copyright | (c) Ivan A. Malison |
|---|---|
| License | BSD3-style (see LICENSE) |
| Maintainer | Ivan A. Malison |
| Stability | unstable |
| Portability | unportable |
| Safe Haskell | None |
| Language | Haskell2010 |
System.Taffybar.SimpleConfig
Description
- data SimpleTaffyConfig = SimpleTaffyConfig {
- monitorsAction :: TaffyIO [Int]
- barHeight :: Int
- barPadding :: Int
- barPosition :: Position
- widgetSpacing :: Int
- startWidgets :: [TaffyIO Widget]
- centerWidgets :: [TaffyIO Widget]
- endWidgets :: [TaffyIO Widget]
- data Position
- defaultSimpleTaffyConfig :: SimpleTaffyConfig
- simpleTaffybar :: SimpleTaffyConfig -> IO ()
- toTaffyConfig :: SimpleTaffyConfig -> TaffybarConfig
- useAllMonitors :: TaffyIO [Int]
- usePrimaryMonitor :: TaffyIO [Int]
Documentation
data SimpleTaffyConfig Source #
A configuration object whose interface is simpler than that of
TaffybarConfig. Unless you have a good reason to use taffybar's more
advanced interface, you should stick to this one.
Constructors
| SimpleTaffyConfig | |
Fields
| |
The side of the monitor at which taffybar should be displayed.
defaultSimpleTaffyConfig :: SimpleTaffyConfig Source #
Sensible defaults for most of the fields of SimpleTaffyConfig. You'll
need to specify the widgets you want in the bar with startWidgets,
centerWidgets and endWidgets.
simpleTaffybar :: SimpleTaffyConfig -> IO () Source #
Start taffybar using SimpleTaffybarConfig.
useAllMonitors :: TaffyIO [Int] Source #
Display a taffybar window on all monitors.
usePrimaryMonitor :: TaffyIO [Int] Source #
Display the taffybar window on the primary monitor.