Copyright | (c) Ivan A. Malison |
---|---|
License | BSD3-style (see LICENSE) |
Maintainer | Ivan A. Malison |
Stability | unstable |
Portability | unportable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module defines a simpler, but less flexible config system than the one offered in System.Taffybar.Context.
Synopsis
- data SimpleTaffyConfig = SimpleTaffyConfig {
- monitorsAction :: TaffyIO [Int]
- barHeight :: StrutSize
- barPadding :: Int
- barPosition :: Position
- widgetSpacing :: Int
- startWidgets :: [TaffyIO Widget]
- centerWidgets :: [TaffyIO Widget]
- endWidgets :: [TaffyIO Widget]
- cssPaths :: [FilePath]
- startupHook :: TaffyIO ()
- data Position
- defaultSimpleTaffyConfig :: SimpleTaffyConfig
- simpleDyreTaffybar :: SimpleTaffyConfig -> IO ()
- simpleTaffybar :: SimpleTaffyConfig -> IO ()
- toTaffyConfig :: SimpleTaffyConfig -> TaffybarConfig
- useAllMonitors :: TaffyIO [Int]
- usePrimaryMonitor :: TaffyIO [Int]
- data StrutSize
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 using this one.
SimpleTaffyConfig | |
|
Instances
Default SimpleTaffyConfig Source # | |
Defined in System.Taffybar.SimpleConfig |
An ADT representing the edge of the monitor along 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
.
simpleDyreTaffybar :: SimpleTaffyConfig -> IO () Source #
Start taffybar using dyre with a SimpleTaffybarConfig
.
simpleTaffybar :: SimpleTaffyConfig -> IO () Source #
Start taffybar with a SimpleTaffybarConfig
.
toTaffyConfig :: SimpleTaffyConfig -> TaffybarConfig Source #
Convert a SimpleTaffyConfig
into a TaffybarConfig
that can be used
with startTaffybar
or dyreTaffybar
.
useAllMonitors :: TaffyIO [Int] Source #
Supply this value for monitorsAction
to display the taffybar window on
all monitors.
usePrimaryMonitor :: TaffyIO [Int] Source #
Supply this value for monitorsAction
to display the taffybar window only
on the primary monitor.