xmonad-screenshot-0.1.0.0: Workspaces screenshooting utility for XMonad.

Safe HaskellSafe-Infered

XMonad.Util.WorkspaceScreenshot

Contents

Description

Provides an utility functions for easy and robust workspaces' screen capturing.

Synopsis

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 BoolSource

Default predicate. Accepts every available workspace.

defaultHook :: a -> IO ()Source

Default hook. Does nothing.

Screenshoting layout

data CapturingLayout Source

Layout for resulting capture.

Constructors

CapturingLayout 

Fields

dimensions :: [Pixbuf] -> IO (Int, Int)

Maximum height and maximum width for capture

fill :: [Pixbuf] -> Pixbuf -> IO ()

Filling algorithm

horizontally :: CapturingLayoutSource

Capture screens layout horizontally.

vertically :: CapturingLayoutSource

Capture screens layout vertically.