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

Safe HaskellNone
LanguageHaskell98

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 Bool Source

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 :: CapturingLayout Source

Capture screens layout horizontally.

vertically :: CapturingLayout Source

Capture screens layout vertically.