Safe Haskell | Safe-Infered |
---|
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
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 BoolSource
Default predicate. Accepts every available workspace.
defaultHook :: a -> IO ()Source
Default hook. Does nothing.
Screenshoting layout
data CapturingLayout Source
Layout for resulting capture.
horizontally :: CapturingLayoutSource
Capture screens layout horizontally.
vertically :: CapturingLayoutSource
Capture screens layout vertically.