diff options
author | jao <jao@gnu.org> | 2018-11-25 03:08:40 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2018-11-25 03:08:40 +0000 |
commit | 658dd00771852286bb9ce007d11db869c237d934 (patch) | |
tree | 42884b7028392fdd68b550e89cee33c2687e8eed /src/lib/Xmobar/X11/Types.hs | |
parent | 071794d33443ff76d85be035394103fc8bf48e98 (diff) | |
download | xmobar-658dd00771852286bb9ce007d11db869c237d934.tar.gz xmobar-658dd00771852286bb9ce007d11db869c237d934.tar.bz2 |
Refactoring: Xmobar.X11
Diffstat (limited to 'src/lib/Xmobar/X11/Types.hs')
-rw-r--r-- | src/lib/Xmobar/X11/Types.hs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/lib/Xmobar/X11/Types.hs b/src/lib/Xmobar/X11/Types.hs new file mode 100644 index 0000000..77249b3 --- /dev/null +++ b/src/lib/Xmobar/X11/Types.hs @@ -0,0 +1,40 @@ +------------------------------------------------------------------------------ +-- | +-- Module: Xmobar.Types +-- Copyright: (c) 2018 Jose Antonio Ortega Ruiz +-- License: BSD3-style (see LICENSE) +-- +-- Maintainer: jao@gnu.org +-- Stability: unstable +-- Portability: portable +-- Created: Sat Nov 24, 2018 19:02 +-- +-- +-- The Xmobar basic type +-- +------------------------------------------------------------------------------ + + +module Xmobar.X11.Types (X , XConf (..)) where + +import Graphics.X11.Xlib +import Control.Monad.Reader +import Data.Map + +import Xmobar.X11.Bitmap +import Xmobar.X11.XUtil +import Xmobar.Config + +-- | The X type is a ReaderT +type X = ReaderT XConf IO + +-- | The ReaderT inner component +data XConf = + XConf { display :: Display + , rect :: Rectangle + , window :: Window + , fontListS :: [XFont] + , verticalOffsets :: [Int] + , iconS :: Map FilePath Bitmap + , config :: Config + } |