Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides an utility functions for easy and robust workspaces' screen capturing.
- initCapturing :: IO ()
- captureWorkspacesWhen :: (WindowSpace -> X Bool) -> (FilePath -> IO ()) -> CapturingLayout -> X ()
- captureWorkspacesWhenId :: (WorkspaceId -> X Bool) -> (FilePath -> IO ()) -> CapturingLayout -> X ()
- defaultPredicate :: a -> X Bool
- defaultHook :: a -> IO ()
- data CapturingLayout = CapturingLayout {}
- horizontally :: CapturingLayout
- vertically :: CapturingLayout
Initialization
initCapturing :: IO () Source
Init gtk to enable a possibility of capturing workspaces.
Screenshoting routines
captureWorkspacesWhen :: (WindowSpace -> X Bool) -> (FilePath -> IO ()) -> CapturingLayout -> X () Source
Capture screens from workspaces satisfying given predicate.
captureWorkspacesWhenId :: (WorkspaceId -> X Bool) -> (FilePath -> IO ()) -> CapturingLayout -> X () Source
Capture screens from workspaces which id satisfies given predicate.
Defaulting
defaultPredicate :: a -> X Bool Source
Default predicate. Accepts every available workspace.
defaultHook :: a -> IO () Source
Default hook. Does nothing.
Screenshoting layout
horizontally :: CapturingLayout Source
Capture screens layout horizontally.
vertically :: CapturingLayout Source
Capture screens layout vertically.