Copyright | Devin Mullins <devin.mullins@gmail.com> |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Devin Mullins <devin.mullins@gmail.com> |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
Deprecated: This module is a perpetual draft and will therefore be removed from xmonad-contrib in the near future.
This is a draft of a brand new config syntax for xmonad. It aims to be:
- easier to copy/paste snippets from the docs
- easier to get the gist for what's going on, for you imperative programmers
It's brand new, so it's pretty much guaranteed to break or change syntax. But what's the worst that could happen? Xmonad crashes and logs you out? It probably won't do that. Give it a try.
Synopsis
- xmonad :: forall a (l :: Type -> Type). (Default a, Read (l Window), LayoutClass l Window) => (a -> IO (XConfig l)) -> IO ()
- nothing :: forall (l :: Type -> Type). Prime l l
- normalBorderColor :: forall (l :: Type -> Type). Settable String (XConfig l)
- focusedBorderColor :: forall (l :: Type -> Type). Settable String (XConfig l)
- terminal :: forall (l :: Type -> Type). Settable String (XConfig l)
- modMask :: forall (l :: Type -> Type). Settable KeyMask (XConfig l)
- borderWidth :: forall (l :: Type -> Type). Settable Dimension (XConfig l)
- focusFollowsMouse :: forall (l :: Type -> Type). Settable Bool (XConfig l)
- clickJustFocuses :: forall (l :: Type -> Type). Settable Bool (XConfig l)
- class SettableClass (s :: Type -> Type) x y | s -> x y where
- class UpdateableClass (s :: Type -> Type) x y | s -> x y where
- manageHook :: forall (l :: Type -> Type). Summable ManageHook ManageHook (XConfig l)
- handleEventHook :: forall (l :: Type -> Type). Summable (Event -> X All) (Event -> X All) (XConfig l)
- workspaces :: forall (l :: Type -> Type). Summable [String] [String] (XConfig l)
- logHook :: forall (l :: Type -> Type). Summable (X ()) (X ()) (XConfig l)
- startupHook :: forall (l :: Type -> Type). Summable (X ()) (X ()) (XConfig l)
- clientMask :: forall (l :: Type -> Type). Summable EventMask EventMask (XConfig l)
- rootMask :: forall (l :: Type -> Type). Summable EventMask EventMask (XConfig l)
- class SummableClass (s :: Type -> Type) y | s -> y where
- keys :: forall (l :: Type -> Type). Keys (XConfig l)
- mouseBindings :: forall (l :: Type -> Type). MouseBindings (XConfig l)
- class RemovableClass (r :: Type -> Type) y | r -> y where
- withWorkspaces :: forall (l :: Type -> Type). Arr WorkspaceConfig WorkspaceConfig -> Prime l l
- wsNames :: Settable [String] WorkspaceConfig
- wsKeys :: Summable [String] [String] WorkspaceConfig
- wsActions :: Summable [(String, String -> X ())] [(String, String -> X ())] WorkspaceConfig
- wsSetName :: Int -> String -> Arr WorkspaceConfig WorkspaceConfig
- withScreens :: forall (l :: Type -> Type). Arr ScreenConfig ScreenConfig -> Prime l l
- sKeys :: Summable [String] [String] ScreenConfig
- sActions :: Summable [(String, ScreenId -> X ())] [(String, ScreenId -> X ())] ScreenConfig
- onScreens :: Eq s => (i -> StackSet i l a s sd -> StackSet i l a s sd) -> s -> StackSet i l a s sd -> StackSet i l a s sd
- addLayout :: forall (l :: Type -> Type) r. (LayoutClass l Window, LayoutClass r Window) => r Window -> Prime l (Choose l r)
- resetLayout :: forall r (l :: Type -> Type). LayoutClass r Window => r Window -> Prime l r
- modifyLayout :: LayoutClass r Window => (l Window -> r Window) -> Prime l r
- startWith :: forall (l' :: Type -> Type) (l :: Type -> Type). XConfig l' -> Prime l l'
- apply :: forall (l :: Type -> Type) (l' :: Type -> Type). (XConfig l -> XConfig l') -> Prime l l'
- applyIO :: forall (l :: Type -> Type) (l' :: Type -> Type). (XConfig l -> IO (XConfig l')) -> Prime l l'
- type XRRModeFlags = Word64
- type RRMode = Word64
- type RRCrtc = Word64
- type RROutput = Word64
- type Connection = Word16
- type SubpixelOrder = Word16
- type SizeID = Word16
- type Reflection = Word16
- type Rotation = Word16
- type ImageFormat = CInt
- type FontDirection = CInt
- type BackingStore = CInt
- type WindowGravity = CInt
- type BitGravity = CInt
- type ChangeSaveSetMode = CInt
- type MappingRequest = CInt
- type ColormapAlloc = CInt
- type ByteOrder = CInt
- type CirculationDirection = CInt
- type GCMask = CInt
- type ArcMode = CInt
- type PolygonShape = CInt
- type CoordinateMode = CInt
- type SubWindowMode = CInt
- type FillRule = CInt
- type FillStyle = CInt
- type JoinStyle = CInt
- type CapStyle = CInt
- type LineStyle = CInt
- type GXFunction = CInt
- type QueryBestSizeClass = CInt
- type CloseDownMode = CInt
- type AttributeMask = Mask
- type WindowClass = CInt
- type Status = CInt
- type ErrorCode = CInt
- type FocusMode = CInt
- type AllowEvents = CInt
- type GrabStatus = CInt
- type GrabMode = CInt
- type ColormapNotification = CInt
- type PropertyNotification = CInt
- type Protocol = CInt
- type Place = CInt
- type Visibility = CInt
- type NotifyDetail = CInt
- type NotifyMode = CInt
- type Button = Word32
- type ButtonMask = Modifier
- type KeyMask = Modifier
- type Modifier = CUInt
- type EventType = Word32
- type EventMask = Mask
- type KeySym = XID
- type KeyCode = Word8
- type GContext = XID
- type Colormap = XID
- type Cursor = XID
- type Pixmap = XID
- type Font = XID
- type Drawable = XID
- type Window = XID
- type Time = Word64
- type VisualID = Word64
- type Atom = Word64
- type Mask = Word64
- type XID = Word64
- xK_VoidSymbol :: KeySym
- xK_BackSpace :: KeySym
- xK_Tab :: KeySym
- xK_Linefeed :: KeySym
- xK_Clear :: KeySym
- xK_Return :: KeySym
- xK_Pause :: KeySym
- xK_Scroll_Lock :: KeySym
- xK_Sys_Req :: KeySym
- xK_Escape :: KeySym
- xK_Delete :: KeySym
- xK_Multi_key :: KeySym
- xK_Codeinput :: KeySym
- xK_SingleCandidate :: KeySym
- xK_MultipleCandidate :: KeySym
- xK_PreviousCandidate :: KeySym
- xK_Home :: KeySym
- xK_Left :: KeySym
- xK_Up :: KeySym
- xK_Right :: KeySym
- xK_Down :: KeySym
- xK_Prior :: KeySym
- xK_Page_Up :: KeySym
- xK_Next :: KeySym
- xK_Page_Down :: KeySym
- xK_End :: KeySym
- xK_Begin :: KeySym
- xK_Select :: KeySym
- xK_Print :: KeySym
- xK_Execute :: KeySym
- xK_Insert :: KeySym
- xK_Undo :: KeySym
- xK_Redo :: KeySym
- xK_Menu :: KeySym
- xK_Find :: KeySym
- xK_Cancel :: KeySym
- xK_Help :: KeySym
- xK_Break :: KeySym
- xK_Mode_switch :: KeySym
- xK_script_switch :: KeySym
- xK_Num_Lock :: KeySym
- xK_KP_Space :: KeySym
- xK_KP_Tab :: KeySym
- xK_KP_Enter :: KeySym
- xK_KP_F1 :: KeySym
- xK_KP_F2 :: KeySym
- xK_KP_F3 :: KeySym
- xK_KP_F4 :: KeySym
- xK_KP_Home :: KeySym
- xK_KP_Left :: KeySym
- xK_KP_Up :: KeySym
- xK_KP_Right :: KeySym
- xK_KP_Down :: KeySym
- xK_KP_Prior :: KeySym
- xK_KP_Page_Up :: KeySym
- xK_KP_Next :: KeySym
- xK_KP_Page_Down :: KeySym
- xK_KP_End :: KeySym
- xK_KP_Begin :: KeySym
- xK_KP_Insert :: KeySym
- xK_KP_Delete :: KeySym
- xK_KP_Equal :: KeySym
- xK_KP_Multiply :: KeySym
- xK_KP_Add :: KeySym
- xK_KP_Separator :: KeySym
- xK_KP_Subtract :: KeySym
- xK_KP_Decimal :: KeySym
- xK_KP_Divide :: KeySym
- xK_KP_0 :: KeySym
- xK_KP_1 :: KeySym
- xK_KP_2 :: KeySym
- xK_KP_3 :: KeySym
- xK_KP_4 :: KeySym
- xK_KP_5 :: KeySym
- xK_KP_6 :: KeySym
- xK_KP_7 :: KeySym
- xK_KP_8 :: KeySym
- xK_KP_9 :: KeySym
- xK_F1 :: KeySym
- xK_F2 :: KeySym
- xK_F3 :: KeySym
- xK_F4 :: KeySym
- xK_F5 :: KeySym
- xK_F6 :: KeySym
- xK_F7 :: KeySym
- xK_F8 :: KeySym
- xK_F9 :: KeySym
- xK_F10 :: KeySym
- xK_F11 :: KeySym
- xK_L1 :: KeySym
- xK_F12 :: KeySym
- xK_L2 :: KeySym
- xK_F13 :: KeySym
- xK_L3 :: KeySym
- xK_F14 :: KeySym
- xK_L4 :: KeySym
- xK_F15 :: KeySym
- xK_L5 :: KeySym
- xK_F16 :: KeySym
- xK_L6 :: KeySym
- xK_F17 :: KeySym
- xK_L7 :: KeySym
- xK_F18 :: KeySym
- xK_L8 :: KeySym
- xK_F19 :: KeySym
- xK_L9 :: KeySym
- xK_F20 :: KeySym
- xK_L10 :: KeySym
- xK_F21 :: KeySym
- xK_R1 :: KeySym
- xK_F22 :: KeySym
- xK_R2 :: KeySym
- xK_F23 :: KeySym
- xK_R3 :: KeySym
- xK_F24 :: KeySym
- xK_R4 :: KeySym
- xK_F25 :: KeySym
- xK_R5 :: KeySym
- xK_F26 :: KeySym
- xK_R6 :: KeySym
- xK_F27 :: KeySym
- xK_R7 :: KeySym
- xK_F28 :: KeySym
- xK_R8 :: KeySym
- xK_F29 :: KeySym
- xK_R9 :: KeySym
- xK_F30 :: KeySym
- xK_R10 :: KeySym
- xK_F31 :: KeySym
- xK_R11 :: KeySym
- xK_F32 :: KeySym
- xK_R12 :: KeySym
- xK_F33 :: KeySym
- xK_R13 :: KeySym
- xK_F34 :: KeySym
- xK_R14 :: KeySym
- xK_F35 :: KeySym
- xK_R15 :: KeySym
- xK_Shift_L :: KeySym
- xK_Shift_R :: KeySym
- xK_Control_L :: KeySym
- xK_Control_R :: KeySym
- xK_Caps_Lock :: KeySym
- xK_Shift_Lock :: KeySym
- xK_Meta_L :: KeySym
- xK_Meta_R :: KeySym
- xK_Alt_L :: KeySym
- xK_Alt_R :: KeySym
- xK_Super_L :: KeySym
- xK_Super_R :: KeySym
- xK_Hyper_L :: KeySym
- xK_Hyper_R :: KeySym
- xK_space :: KeySym
- xK_exclam :: KeySym
- xK_quotedbl :: KeySym
- xK_numbersign :: KeySym
- xK_dollar :: KeySym
- xK_percent :: KeySym
- xK_ampersand :: KeySym
- xK_apostrophe :: KeySym
- xK_quoteright :: KeySym
- xK_parenleft :: KeySym
- xK_parenright :: KeySym
- xK_asterisk :: KeySym
- xK_plus :: KeySym
- xK_comma :: KeySym
- xK_minus :: KeySym
- xK_period :: KeySym
- xK_slash :: KeySym
- xK_0 :: KeySym
- xK_1 :: KeySym
- xK_2 :: KeySym
- xK_3 :: KeySym
- xK_4 :: KeySym
- xK_5 :: KeySym
- xK_6 :: KeySym
- xK_7 :: KeySym
- xK_8 :: KeySym
- xK_9 :: KeySym
- xK_colon :: KeySym
- xK_semicolon :: KeySym
- xK_less :: KeySym
- xK_equal :: KeySym
- xK_greater :: KeySym
- xK_question :: KeySym
- xK_at :: KeySym
- xK_A :: KeySym
- xK_B :: KeySym
- xK_C :: KeySym
- xK_D :: KeySym
- xK_E :: KeySym
- xK_F :: KeySym
- xK_G :: KeySym
- xK_H :: KeySym
- xK_I :: KeySym
- xK_J :: KeySym
- xK_K :: KeySym
- xK_L :: KeySym
- xK_M :: KeySym
- xK_N :: KeySym
- xK_O :: KeySym
- xK_P :: KeySym
- xK_Q :: KeySym
- xK_R :: KeySym
- xK_S :: KeySym
- xK_T :: KeySym
- xK_U :: KeySym
- xK_V :: KeySym
- xK_W :: KeySym
- xK_X :: KeySym
- xK_Y :: KeySym
- xK_Z :: KeySym
- xK_bracketleft :: KeySym
- xK_backslash :: KeySym
- xK_bracketright :: KeySym
- xK_asciicircum :: KeySym
- xK_underscore :: KeySym
- xK_grave :: KeySym
- xK_quoteleft :: KeySym
- xK_a :: KeySym
- xK_b :: KeySym
- xK_c :: KeySym
- xK_d :: KeySym
- xK_e :: KeySym
- xK_f :: KeySym
- xK_g :: KeySym
- xK_h :: KeySym
- xK_i :: KeySym
- xK_j :: KeySym
- xK_k :: KeySym
- xK_l :: KeySym
- xK_m :: KeySym
- xK_n :: KeySym
- xK_o :: KeySym
- xK_p :: KeySym
- xK_q :: KeySym
- xK_r :: KeySym
- xK_s :: KeySym
- xK_t :: KeySym
- xK_u :: KeySym
- xK_v :: KeySym
- xK_w :: KeySym
- xK_x :: KeySym
- xK_y :: KeySym
- xK_z :: KeySym
- xK_braceleft :: KeySym
- xK_bar :: KeySym
- xK_braceright :: KeySym
- xK_asciitilde :: KeySym
- xK_nobreakspace :: KeySym
- xK_exclamdown :: KeySym
- xK_cent :: KeySym
- xK_sterling :: KeySym
- xK_currency :: KeySym
- xK_yen :: KeySym
- xK_brokenbar :: KeySym
- xK_section :: KeySym
- xK_diaeresis :: KeySym
- xK_copyright :: KeySym
- xK_ordfeminine :: KeySym
- xK_guillemotleft :: KeySym
- xK_notsign :: KeySym
- xK_hyphen :: KeySym
- xK_registered :: KeySym
- xK_macron :: KeySym
- xK_degree :: KeySym
- xK_plusminus :: KeySym
- xK_twosuperior :: KeySym
- xK_threesuperior :: KeySym
- xK_acute :: KeySym
- xK_mu :: KeySym
- xK_paragraph :: KeySym
- xK_periodcentered :: KeySym
- xK_cedilla :: KeySym
- xK_onesuperior :: KeySym
- xK_masculine :: KeySym
- xK_guillemotright :: KeySym
- xK_onequarter :: KeySym
- xK_onehalf :: KeySym
- xK_threequarters :: KeySym
- xK_questiondown :: KeySym
- xK_Agrave :: KeySym
- xK_Aacute :: KeySym
- xK_Acircumflex :: KeySym
- xK_Atilde :: KeySym
- xK_Adiaeresis :: KeySym
- xK_Aring :: KeySym
- xK_AE :: KeySym
- xK_Ccedilla :: KeySym
- xK_Egrave :: KeySym
- xK_Eacute :: KeySym
- xK_Ecircumflex :: KeySym
- xK_Ediaeresis :: KeySym
- xK_Igrave :: KeySym
- xK_Iacute :: KeySym
- xK_Icircumflex :: KeySym
- xK_Idiaeresis :: KeySym
- xK_ETH :: KeySym
- xK_Eth :: KeySym
- xK_Ntilde :: KeySym
- xK_Ograve :: KeySym
- xK_Oacute :: KeySym
- xK_Ocircumflex :: KeySym
- xK_Otilde :: KeySym
- xK_Odiaeresis :: KeySym
- xK_multiply :: KeySym
- xK_Ooblique :: KeySym
- xK_Ugrave :: KeySym
- xK_Uacute :: KeySym
- xK_Ucircumflex :: KeySym
- xK_Udiaeresis :: KeySym
- xK_Yacute :: KeySym
- xK_THORN :: KeySym
- xK_Thorn :: KeySym
- xK_ssharp :: KeySym
- xK_agrave :: KeySym
- xK_aacute :: KeySym
- xK_acircumflex :: KeySym
- xK_atilde :: KeySym
- xK_adiaeresis :: KeySym
- xK_aring :: KeySym
- xK_ae :: KeySym
- xK_ccedilla :: KeySym
- xK_egrave :: KeySym
- xK_eacute :: KeySym
- xK_ecircumflex :: KeySym
- xK_ediaeresis :: KeySym
- xK_igrave :: KeySym
- xK_iacute :: KeySym
- xK_icircumflex :: KeySym
- xK_idiaeresis :: KeySym
- xK_eth :: KeySym
- xK_ntilde :: KeySym
- xK_ograve :: KeySym
- xK_oacute :: KeySym
- xK_ocircumflex :: KeySym
- xK_otilde :: KeySym
- xK_odiaeresis :: KeySym
- xK_division :: KeySym
- xK_oslash :: KeySym
- xK_ugrave :: KeySym
- xK_uacute :: KeySym
- xK_ucircumflex :: KeySym
- xK_udiaeresis :: KeySym
- xK_yacute :: KeySym
- xK_thorn :: KeySym
- xK_ydiaeresis :: KeySym
- noEventMask :: EventMask
- keyPressMask :: EventMask
- keyReleaseMask :: EventMask
- buttonPressMask :: EventMask
- buttonReleaseMask :: EventMask
- enterWindowMask :: EventMask
- leaveWindowMask :: EventMask
- pointerMotionMask :: EventMask
- pointerMotionHintMask :: EventMask
- button1MotionMask :: EventMask
- button2MotionMask :: EventMask
- button3MotionMask :: EventMask
- button4MotionMask :: EventMask
- button5MotionMask :: EventMask
- buttonMotionMask :: EventMask
- keymapStateMask :: EventMask
- exposureMask :: EventMask
- visibilityChangeMask :: EventMask
- structureNotifyMask :: EventMask
- resizeRedirectMask :: EventMask
- substructureNotifyMask :: EventMask
- substructureRedirectMask :: EventMask
- focusChangeMask :: EventMask
- propertyChangeMask :: EventMask
- colormapChangeMask :: EventMask
- ownerGrabButtonMask :: EventMask
- rrScreenChangeNotifyMask :: EventMask
- rrCrtcChangeNotifyMask :: EventMask
- rrOutputChangeNotifyMask :: EventMask
- rrOutputPropertyNotifyMask :: EventMask
- screenSaverCycleMask :: EventMask
- screenSaverNotifyMask :: EventMask
- keyPress :: EventType
- keyRelease :: EventType
- buttonPress :: EventType
- buttonRelease :: EventType
- motionNotify :: EventType
- enterNotify :: EventType
- leaveNotify :: EventType
- focusIn :: EventType
- focusOut :: EventType
- keymapNotify :: EventType
- expose :: EventType
- graphicsExpose :: EventType
- noExpose :: EventType
- visibilityNotify :: EventType
- createNotify :: EventType
- destroyNotify :: EventType
- unmapNotify :: EventType
- mapNotify :: EventType
- mapRequest :: EventType
- reparentNotify :: EventType
- configureNotify :: EventType
- configureRequest :: EventType
- gravityNotify :: EventType
- resizeRequest :: EventType
- circulateNotify :: EventType
- circulateRequest :: EventType
- propertyNotify :: EventType
- selectionClear :: EventType
- selectionRequest :: EventType
- selectionNotify :: EventType
- colormapNotify :: EventType
- clientMessage :: EventType
- mappingNotify :: EventType
- rrScreenChangeNotify :: EventType
- rrNotify :: EventType
- rrNotifyCrtcChange :: EventType
- rrNotifyOutputChange :: EventType
- rrNotifyOutputProperty :: EventType
- lASTEvent :: EventType
- screenSaverNotify :: EventType
- shiftMapIndex :: Modifier
- lockMapIndex :: Modifier
- controlMapIndex :: Modifier
- mod1MapIndex :: Modifier
- mod2MapIndex :: Modifier
- mod3MapIndex :: Modifier
- mod4MapIndex :: Modifier
- mod5MapIndex :: Modifier
- anyModifier :: Modifier
- noModMask :: KeyMask
- shiftMask :: KeyMask
- lockMask :: KeyMask
- controlMask :: KeyMask
- mod1Mask :: KeyMask
- mod2Mask :: KeyMask
- mod3Mask :: KeyMask
- mod4Mask :: KeyMask
- mod5Mask :: KeyMask
- button1Mask :: ButtonMask
- button2Mask :: ButtonMask
- button3Mask :: ButtonMask
- button4Mask :: ButtonMask
- button5Mask :: ButtonMask
- button1 :: Button
- button2 :: Button
- button3 :: Button
- button4 :: Button
- button5 :: Button
- notifyNormal :: NotifyMode
- notifyGrab :: NotifyMode
- notifyUngrab :: NotifyMode
- notifyWhileGrabbed :: NotifyMode
- notifyHint :: NotifyMode
- notifyAncestor :: NotifyDetail
- notifyVirtual :: NotifyDetail
- notifyInferior :: NotifyDetail
- notifyNonlinear :: NotifyDetail
- notifyNonlinearVirtual :: NotifyDetail
- notifyPointer :: NotifyDetail
- notifyPointerRoot :: NotifyDetail
- notifyDetailNone :: NotifyDetail
- visibilityUnobscured :: Visibility
- visibilityPartiallyObscured :: Visibility
- visibilityFullyObscured :: Visibility
- placeOnTop :: Place
- placeOnBottom :: Place
- familyInternet :: Protocol
- familyDECnet :: Protocol
- familyChaos :: Protocol
- propertyNewValue :: PropertyNotification
- propertyDelete :: PropertyNotification
- colormapUninstalled :: ColormapNotification
- colormapInstalled :: ColormapNotification
- grabModeSync :: GrabMode
- grabModeAsync :: GrabMode
- grabSuccess :: GrabStatus
- alreadyGrabbed :: GrabStatus
- grabInvalidTime :: GrabStatus
- grabNotViewable :: GrabStatus
- grabFrozen :: GrabStatus
- asyncPointer :: AllowEvents
- syncPointer :: AllowEvents
- replayPointer :: AllowEvents
- asyncKeyboard :: AllowEvents
- syncKeyboard :: AllowEvents
- replayKeyboard :: AllowEvents
- asyncBoth :: AllowEvents
- syncBoth :: AllowEvents
- revertToNone :: FocusMode
- revertToPointerRoot :: FocusMode
- revertToParent :: FocusMode
- success :: ErrorCode
- badRequest :: ErrorCode
- badValue :: ErrorCode
- badWindow :: ErrorCode
- badPixmap :: ErrorCode
- badAtom :: ErrorCode
- badCursor :: ErrorCode
- badFont :: ErrorCode
- badMatch :: ErrorCode
- badDrawable :: ErrorCode
- badAccess :: ErrorCode
- badAlloc :: ErrorCode
- badColor :: ErrorCode
- badGC :: ErrorCode
- badIDChoice :: ErrorCode
- badName :: ErrorCode
- badLength :: ErrorCode
- badImplementation :: ErrorCode
- firstExtensionError :: ErrorCode
- lastExtensionError :: ErrorCode
- throwIfZero :: String -> IO Status -> IO ()
- copyFromParent :: WindowClass
- inputOutput :: WindowClass
- inputOnly :: WindowClass
- cWBackPixmap :: AttributeMask
- cWBackPixel :: AttributeMask
- cWBorderPixmap :: AttributeMask
- cWBorderPixel :: AttributeMask
- cWBitGravity :: AttributeMask
- cWWinGravity :: AttributeMask
- cWBackingStore :: AttributeMask
- cWBackingPlanes :: AttributeMask
- cWBackingPixel :: AttributeMask
- cWOverrideRedirect :: AttributeMask
- cWSaveUnder :: AttributeMask
- cWEventMask :: AttributeMask
- cWDontPropagate :: AttributeMask
- cWColormap :: AttributeMask
- cWCursor :: AttributeMask
- cWX :: AttributeMask
- cWY :: AttributeMask
- cWWidth :: AttributeMask
- cWHeight :: AttributeMask
- destroyAll :: CloseDownMode
- retainPermanent :: CloseDownMode
- retainTemporary :: CloseDownMode
- cursorShape :: QueryBestSizeClass
- tileShape :: QueryBestSizeClass
- stippleShape :: QueryBestSizeClass
- gXclear :: GXFunction
- gXand :: GXFunction
- gXandReverse :: GXFunction
- gXcopy :: GXFunction
- gXandInverted :: GXFunction
- gXnoop :: GXFunction
- gXxor :: GXFunction
- gXor :: GXFunction
- gXnor :: GXFunction
- gXequiv :: GXFunction
- gXinvert :: GXFunction
- gXorReverse :: GXFunction
- gXcopyInverted :: GXFunction
- gXorInverted :: GXFunction
- gXnand :: GXFunction
- gXset :: GXFunction
- lineSolid :: LineStyle
- lineOnOffDash :: LineStyle
- lineDoubleDash :: LineStyle
- capNotLast :: CapStyle
- capButt :: CapStyle
- capRound :: CapStyle
- capProjecting :: CapStyle
- joinMiter :: JoinStyle
- joinRound :: JoinStyle
- joinBevel :: JoinStyle
- fillSolid :: FillStyle
- fillTiled :: FillStyle
- fillStippled :: FillStyle
- fillOpaqueStippled :: FillStyle
- evenOddRule :: FillRule
- windingRule :: FillRule
- clipByChildren :: SubWindowMode
- includeInferiors :: SubWindowMode
- coordModeOrigin :: CoordinateMode
- coordModePrevious :: CoordinateMode
- complex :: PolygonShape
- nonconvex :: PolygonShape
- convex :: PolygonShape
- arcChord :: ArcMode
- arcPieSlice :: ArcMode
- gCFunction :: GCMask
- gCPlaneMask :: GCMask
- gCForeground :: GCMask
- gCBackground :: GCMask
- gCLineWidth :: GCMask
- gCLineStyle :: GCMask
- gCCapStyle :: GCMask
- gCJoinStyle :: GCMask
- gCFillStyle :: GCMask
- gCFillRule :: GCMask
- gCTile :: GCMask
- gCStipple :: GCMask
- gCTileStipXOrigin :: GCMask
- gCTileStipYOrigin :: GCMask
- gCFont :: GCMask
- gCSubwindowMode :: GCMask
- gCGraphicsExposures :: GCMask
- gCClipXOrigin :: GCMask
- gCClipYOrigin :: GCMask
- gCClipMask :: GCMask
- gCDashOffset :: GCMask
- gCDashList :: GCMask
- gCArcMode :: GCMask
- gCLastBit :: GCMask
- raiseLowest :: CirculationDirection
- lowerHighest :: CirculationDirection
- lSBFirst :: ByteOrder
- mSBFirst :: ByteOrder
- allocNone :: ColormapAlloc
- allocAll :: ColormapAlloc
- mappingModifier :: MappingRequest
- mappingKeyboard :: MappingRequest
- mappingPointer :: MappingRequest
- setModeInsert :: ChangeSaveSetMode
- setModeDelete :: ChangeSaveSetMode
- forgetGravity :: BitGravity
- northWestGravity :: BitGravity
- northGravity :: BitGravity
- northEastGravity :: BitGravity
- westGravity :: BitGravity
- centerGravity :: BitGravity
- eastGravity :: BitGravity
- southWestGravity :: BitGravity
- southGravity :: BitGravity
- southEastGravity :: BitGravity
- staticGravity :: BitGravity
- unmapGravity :: WindowGravity
- notUseful :: BackingStore
- whenMapped :: BackingStore
- always :: BackingStore
- doRed :: Word8
- doGreen :: Word8
- doBlue :: Word8
- fontLeftToRight :: FontDirection
- fontRightToLeft :: FontDirection
- xyBitmap :: ImageFormat
- xyPixmap :: ImageFormat
- zPixmap :: ImageFormat
- xRR_Rotate_0 :: Rotation
- xRR_Rotate_90 :: Rotation
- xRR_Rotate_180 :: Rotation
- xRR_Rotate_270 :: Rotation
- xRR_Reflect_X :: Reflection
- xRR_Reflect_Y :: Reflection
- xRR_Connected :: Connection
- xRR_Disconnected :: Connection
- xRR_UnknownConnection :: Connection
- xFree :: Ptr a -> IO CInt
- data Color = Color {
- color_pixel :: Pixel
- color_red :: Word16
- color_green :: Word16
- color_blue :: Word16
- color_flags :: Word8
- data Segment = Segment {}
- data Arc = Arc {
- arc_x :: Position
- arc_y :: Position
- arc_width :: Dimension
- arc_height :: Dimension
- arc_angle1 :: Angle
- arc_angle2 :: Angle
- data Rectangle = Rectangle {
- rect_x :: !Position
- rect_y :: !Position
- rect_width :: !Dimension
- rect_height :: !Dimension
- data Point = Point {}
- type Buffer = CInt
- type ScreenNumber = Word32
- type Angle = CInt
- type Dimension = Word32
- type Position = Int32
- type Pixel = Word64
- data Image
- data VisualInfo = VisualInfo {}
- data SetWindowAttributes
- data GC
- data Visual
- data Screen
- newtype Display = Display (Ptr Display)
- screenNumberOfScreen :: Screen -> ScreenNumber
- planesOfScreen :: Screen -> CInt
- heightMMOfScreen :: Screen -> Dimension
- heightOfScreen :: Screen -> Dimension
- widthMMOfScreen :: Screen -> Dimension
- widthOfScreen :: Screen -> Dimension
- rootWindowOfScreen :: Screen -> Window
- maxCmapsOfScreen :: Screen -> CInt
- minCmapsOfScreen :: Screen -> CInt
- eventMaskOfScreen :: Screen -> EventMask
- displayOfScreen :: Screen -> Display
- doesSaveUnders :: Screen -> Bool
- doesBackingStore :: Screen -> Bool
- defaultVisualOfScreen :: Screen -> Visual
- defaultGCOfScreen :: Screen -> GC
- defaultDepthOfScreen :: Screen -> CInt
- defaultColormapOfScreen :: Screen -> Colormap
- cellsOfScreen :: Screen -> CInt
- whitePixelOfScreen :: Screen -> Pixel
- blackPixelOfScreen :: Screen -> Pixel
- type RectInRegionResult = CInt
- data Region
- rectangleOut :: RectInRegionResult
- rectangleIn :: RectInRegionResult
- rectanglePart :: RectInRegionResult
- createRegion :: IO Region
- polygonRegion :: [Point] -> FillRule -> IO Region
- intersectRegion :: Region -> Region -> Region -> IO CInt
- subtractRegion :: Region -> Region -> Region -> IO CInt
- unionRectWithRegion :: Rectangle -> Region -> Region -> IO CInt
- unionRegion :: Region -> Region -> Region -> IO CInt
- xorRegion :: Region -> Region -> Region -> IO CInt
- emptyRegion :: Region -> IO Bool
- equalRegion :: Region -> Region -> IO Bool
- pointInRegion :: Region -> Point -> IO Bool
- rectInRegion :: Region -> Rectangle -> IO RectInRegionResult
- clipBox :: Region -> IO (Rectangle, CInt)
- offsetRegion :: Region -> Point -> IO CInt
- shrinkRegion :: Region -> Point -> IO CInt
- setRegion :: Display -> GC -> Region -> IO CInt
- xGetPixel :: Image -> CInt -> CInt -> IO CULong
- destroyImage :: Image -> IO ()
- putImage :: Display -> Drawable -> GC -> Image -> Position -> Position -> Position -> Position -> Dimension -> Dimension -> IO ()
- createImage :: Display -> Visual -> CInt -> ImageFormat -> CInt -> Ptr CChar -> Dimension -> Dimension -> CInt -> CInt -> IO Image
- getImage :: Display -> Drawable -> CInt -> CInt -> CUInt -> CUInt -> CULong -> ImageFormat -> IO Image
- getPixel :: Image -> CInt -> CInt -> CULong
- type CharStruct = (CInt, CInt, CInt, CInt, CInt)
- data FontStruct
- type Glyph = Word16
- freeFont :: Display -> FontStruct -> IO ()
- queryFont :: Display -> Font -> IO FontStruct
- fontFromGC :: Display -> GC -> IO Font
- loadQueryFont :: Display -> String -> IO FontStruct
- fontFromFontStruct :: FontStruct -> Font
- ascentFromFontStruct :: FontStruct -> Int32
- descentFromFontStruct :: FontStruct -> Int32
- textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct)
- textWidth :: FontStruct -> String -> Int32
- xC_X_cursor :: Glyph
- xC_arrow :: Glyph
- xC_based_arrow_down :: Glyph
- xC_based_arrow_up :: Glyph
- xC_boat :: Glyph
- xC_bogosity :: Glyph
- xC_bottom_left_corner :: Glyph
- xC_bottom_right_corner :: Glyph
- xC_bottom_side :: Glyph
- xC_bottom_tee :: Glyph
- xC_box_spiral :: Glyph
- xC_center_ptr :: Glyph
- xC_circle :: Glyph
- xC_clock :: Glyph
- xC_coffee_mug :: Glyph
- xC_cross :: Glyph
- xC_cross_reverse :: Glyph
- xC_crosshair :: Glyph
- xC_diamond_cross :: Glyph
- xC_dot :: Glyph
- xC_dotbox :: Glyph
- xC_double_arrow :: Glyph
- xC_draft_large :: Glyph
- xC_draft_small :: Glyph
- xC_draped_box :: Glyph
- xC_exchange :: Glyph
- xC_fleur :: Glyph
- xC_gobbler :: Glyph
- xC_gumby :: Glyph
- xC_hand1 :: Glyph
- xC_hand2 :: Glyph
- xC_heart :: Glyph
- xC_icon :: Glyph
- xC_iron_cross :: Glyph
- xC_left_ptr :: Glyph
- xC_left_side :: Glyph
- xC_left_tee :: Glyph
- xC_leftbutton :: Glyph
- xC_ll_angle :: Glyph
- xC_lr_angle :: Glyph
- xC_man :: Glyph
- xC_mouse :: Glyph
- xC_pencil :: Glyph
- xC_pirate :: Glyph
- xC_plus :: Glyph
- xC_question_arrow :: Glyph
- xC_right_ptr :: Glyph
- xC_right_side :: Glyph
- xC_right_tee :: Glyph
- xC_rightbutton :: Glyph
- xC_rtl_logo :: Glyph
- xC_sailboat :: Glyph
- xC_sb_down_arrow :: Glyph
- xC_sb_h_double_arrow :: Glyph
- xC_sb_left_arrow :: Glyph
- xC_sb_right_arrow :: Glyph
- xC_sb_up_arrow :: Glyph
- xC_sb_v_double_arrow :: Glyph
- xC_shuttle :: Glyph
- xC_sizing :: Glyph
- xC_spider :: Glyph
- xC_spraycan :: Glyph
- xC_star :: Glyph
- xC_target :: Glyph
- xC_tcross :: Glyph
- xC_top_left_arrow :: Glyph
- xC_top_left_corner :: Glyph
- xC_top_right_corner :: Glyph
- xC_top_side :: Glyph
- xC_top_tee :: Glyph
- xC_trek :: Glyph
- xC_ul_angle :: Glyph
- xC_umbrella :: Glyph
- xC_ur_angle :: Glyph
- xC_watch :: Glyph
- xC_xterm :: Glyph
- closeDisplay :: Display -> IO ()
- noOp :: Display -> IO ()
- qLength :: Display -> IO CInt
- rootWindow :: Display -> ScreenNumber -> IO Window
- defaultRootWindow :: Display -> Window
- screenOfDisplay :: Display -> ScreenNumber -> Screen
- displayPlanes :: Display -> ScreenNumber -> CInt
- displayCells :: Display -> ScreenNumber -> CInt
- defaultVisual :: Display -> ScreenNumber -> Visual
- screenCount :: Display -> CInt
- protocolVersion :: Display -> CInt
- protocolRevision :: Display -> CInt
- imageByteOrder :: Display -> CInt
- displayMotionBufferSize :: Display -> CInt
- maxRequestSize :: Display -> CInt
- displayWidthMM :: Display -> ScreenNumber -> CInt
- displayWidth :: Display -> ScreenNumber -> CInt
- displayHeightMM :: Display -> ScreenNumber -> CInt
- displayHeight :: Display -> ScreenNumber -> CInt
- defaultScreenOfDisplay :: Display -> Screen
- defaultScreen :: Display -> ScreenNumber
- defaultDepth :: Display -> ScreenNumber -> CInt
- defaultGC :: Display -> ScreenNumber -> GC
- defaultColormap :: Display -> ScreenNumber -> Colormap
- connectionNumber :: Display -> CInt
- whitePixel :: Display -> ScreenNumber -> Pixel
- blackPixel :: Display -> ScreenNumber -> Pixel
- allPlanes_aux :: Pixel
- resourceManagerString :: Display -> String
- screenResourceString :: Screen -> String
- displayString :: Display -> String
- serverVendor :: Display -> String
- openDisplay :: String -> IO Display
- type XConfigureEvent = (Position, Position, Dimension, Dimension)
- type XMappingEvent = (MappingRequest, KeyCode, CInt)
- type XExposeEvent = (Position, Position, Dimension, Dimension, CInt)
- type XMotionEvent = (Window, Window, Time, CInt, CInt, CInt, CInt, Modifier, NotifyMode, Bool)
- type XButtonEvent = (Window, Window, Time, CInt, CInt, CInt, CInt, Modifier, Button, Bool)
- type XKeyEventPtr = Ptr XKeyEvent
- type XKeyEvent = (Window, Window, Time, CInt, CInt, CInt, CInt, Modifier, KeyCode, Bool)
- type XEventPtr = Ptr XEvent
- newtype XEvent = XEvent XEventPtr
- type QueuedMode = CInt
- peekEvent :: Display -> XEventPtr -> IO ()
- putBackEvent :: Display -> XEventPtr -> IO ()
- checkTypedWindowEvent :: Display -> Window -> EventType -> XEventPtr -> IO Bool
- checkTypedEvent :: Display -> EventType -> XEventPtr -> IO Bool
- checkMaskEvent :: Display -> EventMask -> XEventPtr -> IO Bool
- maskEvent :: Display -> EventMask -> XEventPtr -> IO ()
- checkWindowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO Bool
- windowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO ()
- selectInput :: Display -> Window -> EventMask -> IO ()
- allowEvents :: Display -> AllowEvents -> Time -> IO ()
- nextEvent :: Display -> XEventPtr -> IO ()
- eventsQueued :: Display -> QueuedMode -> IO CInt
- pending :: Display -> IO CInt
- sync :: Display -> Bool -> IO ()
- flush :: Display -> IO ()
- queuedAlready :: QueuedMode
- queuedAfterFlush :: QueuedMode
- queuedAfterReading :: QueuedMode
- allocaXEvent :: (XEventPtr -> IO a) -> IO a
- get_EventType :: XEventPtr -> IO EventType
- get_Window :: XEventPtr -> IO Window
- get_KeyEvent :: XEventPtr -> IO XKeyEvent
- asKeyEvent :: XEventPtr -> XKeyEventPtr
- get_ButtonEvent :: XEventPtr -> IO XButtonEvent
- get_MotionEvent :: XEventPtr -> IO XMotionEvent
- get_ExposeEvent :: XEventPtr -> IO XExposeEvent
- get_ConfigureEvent :: XEventPtr -> IO XConfigureEvent
- waitForEvent :: Display -> Word32 -> IO Bool
- gettimeofday_in_milliseconds :: IO Integer
- sendEvent :: Display -> Window -> Bool -> EventMask -> XEventPtr -> IO ()
- refreshKeyboardMapping :: Event -> IO ()
- copyGC :: Display -> GC -> Mask -> GC -> IO ()
- flushGC :: Display -> GC -> IO ()
- freeGC :: Display -> GC -> IO ()
- gContextFromGC :: GC -> GContext
- setTile :: Display -> GC -> Pixmap -> IO ()
- setTSOrigin :: Display -> GC -> Position -> Position -> IO ()
- setSubwindowMode :: Display -> GC -> SubWindowMode -> IO ()
- setStipple :: Display -> GC -> Pixmap -> IO ()
- setState :: Display -> GC -> Pixel -> Pixel -> GXFunction -> Pixel -> IO ()
- setPlaneMask :: Display -> GC -> Pixel -> IO ()
- setLineAttributes :: Display -> GC -> CInt -> LineStyle -> CapStyle -> JoinStyle -> IO ()
- setFont :: Display -> GC -> Font -> IO ()
- setFillStyle :: Display -> GC -> FillStyle -> IO ()
- setFillRule :: Display -> GC -> FillRule -> IO ()
- setClipOrigin :: Display -> GC -> Position -> Position -> IO ()
- setClipMask :: Display -> GC -> Pixmap -> IO ()
- setGraphicsExposures :: Display -> GC -> Bool -> IO ()
- setFunction :: Display -> GC -> GXFunction -> IO ()
- setForeground :: Display -> GC -> Pixel -> IO ()
- setBackground :: Display -> GC -> Pixel -> IO ()
- setArcMode :: Display -> GC -> ArcMode -> IO ()
- setDashes :: Display -> GC -> CInt -> String -> CInt -> IO ()
- createGC :: Display -> Drawable -> IO GC
- freeColormap :: Display -> Colormap -> IO ()
- createColormap :: Display -> Window -> Visual -> ColormapAlloc -> IO Colormap
- copyColormapAndFree :: Display -> Colormap -> IO Colormap
- uninstallColormap :: Display -> Colormap -> IO ()
- installColormap :: Display -> Colormap -> IO ()
- lookupColor :: Display -> Colormap -> String -> IO (Color, Color)
- allocNamedColor :: Display -> Colormap -> String -> IO (Color, Color)
- allocColor :: Display -> Colormap -> Color -> IO Color
- parseColor :: Display -> Colormap -> String -> IO Color
- freeColors :: Display -> Colormap -> [Pixel] -> Pixel -> IO ()
- storeColor :: Display -> Colormap -> Color -> IO ()
- queryColor :: Display -> Colormap -> Color -> IO Color
- queryColors :: Display -> Colormap -> [Color] -> IO [Color]
- internAtom :: Display -> String -> Bool -> IO Atom
- getAtomName :: Display -> Atom -> IO (Maybe String)
- getAtomNames :: Display -> [Atom] -> IO [String]
- pRIMARY :: Atom
- sECONDARY :: Atom
- aRC :: Atom
- aTOM :: Atom
- bITMAP :: Atom
- cARDINAL :: Atom
- cOLORMAP :: Atom
- cURSOR :: Atom
- cUT_BUFFER0 :: Atom
- cUT_BUFFER1 :: Atom
- cUT_BUFFER2 :: Atom
- cUT_BUFFER3 :: Atom
- cUT_BUFFER4 :: Atom
- cUT_BUFFER5 :: Atom
- cUT_BUFFER6 :: Atom
- cUT_BUFFER7 :: Atom
- dRAWABLE :: Atom
- fONT :: Atom
- iNTEGER :: Atom
- pIXMAP :: Atom
- pOINT :: Atom
- rECTANGLE :: Atom
- rESOURCE_MANAGER :: Atom
- rGB_COLOR_MAP :: Atom
- rGB_BEST_MAP :: Atom
- rGB_BLUE_MAP :: Atom
- rGB_DEFAULT_MAP :: Atom
- rGB_GRAY_MAP :: Atom
- rGB_GREEN_MAP :: Atom
- rGB_RED_MAP :: Atom
- sTRING :: Atom
- vISUALID :: Atom
- wINDOW :: Atom
- wM_COMMAND :: Atom
- wM_HINTS :: Atom
- wM_CLIENT_MACHINE :: Atom
- wM_ICON_NAME :: Atom
- wM_ICON_SIZE :: Atom
- wM_NAME :: Atom
- wM_NORMAL_HINTS :: Atom
- wM_SIZE_HINTS :: Atom
- wM_ZOOM_HINTS :: Atom
- mIN_SPACE :: Atom
- nORM_SPACE :: Atom
- mAX_SPACE :: Atom
- eND_SPACE :: Atom
- sUPERSCRIPT_X :: Atom
- sUPERSCRIPT_Y :: Atom
- sUBSCRIPT_X :: Atom
- sUBSCRIPT_Y :: Atom
- uNDERLINE_POSITION :: Atom
- uNDERLINE_THICKNESS :: Atom
- sTRIKEOUT_ASCENT :: Atom
- sTRIKEOUT_DESCENT :: Atom
- iTALIC_ANGLE :: Atom
- x_HEIGHT :: Atom
- qUAD_WIDTH :: Atom
- wEIGHT :: Atom
- pOINT_SIZE :: Atom
- rESOLUTION :: Atom
- cOPYRIGHT :: Atom
- nOTICE :: Atom
- fONT_NAME :: Atom
- fAMILY_NAME :: Atom
- fULL_NAME :: Atom
- cAP_HEIGHT :: Atom
- wM_CLASS :: Atom
- wM_TRANSIENT_FOR :: Atom
- lAST_PREDEFINED :: Atom
- type VisualInfoMask = CLong
- type ScreenSaverMode = CInt
- type PreferBlankingMode = CInt
- type AllowExposuresMode = CInt
- copyPlane :: Display -> Drawable -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> Pixel -> IO ()
- copyArea :: Display -> Drawable -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> IO ()
- fillArc :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Angle -> Angle -> IO ()
- fillRectangle :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> IO ()
- drawArc :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> Angle -> Angle -> IO ()
- drawRectangle :: Display -> Drawable -> GC -> Position -> Position -> Dimension -> Dimension -> IO ()
- drawLine :: Display -> Drawable -> GC -> Position -> Position -> Position -> Position -> IO ()
- drawPoint :: Display -> Drawable -> GC -> Position -> Position -> IO ()
- freeCursor :: Display -> Font -> IO ()
- createFontCursor :: Display -> Glyph -> IO Cursor
- undefineCursor :: Display -> Window -> IO ()
- defineCursor :: Display -> Window -> Cursor -> IO ()
- keysymToKeycode :: Display -> KeySym -> IO KeyCode
- keycodeToKeysym :: Display -> KeyCode -> CInt -> IO KeySym
- lookupKeysym :: XKeyEventPtr -> CInt -> IO KeySym
- bitmapPad :: Display -> CInt
- bitmapUnit :: Display -> CInt
- bitmapBitOrder :: Display -> ByteOrder
- freePixmap :: Display -> Pixmap -> IO ()
- createPixmap :: Display -> Drawable -> Dimension -> Dimension -> CInt -> IO Pixmap
- unlockDisplay :: Display -> IO ()
- lockDisplay :: Display -> IO ()
- initThreads :: IO Status
- visualIDFromVisual :: Visual -> IO VisualID
- warpPointer :: Display -> Window -> Window -> Position -> Position -> Dimension -> Dimension -> Position -> Position -> IO ()
- forceScreenSaver :: Display -> ScreenSaverMode -> IO ()
- resetScreenSaver :: Display -> IO ()
- activateScreenSaver :: Display -> IO ()
- setScreenSaver :: Display -> CInt -> CInt -> PreferBlankingMode -> AllowExposuresMode -> IO ()
- supportsLocale :: IO Bool
- ungrabServer :: Display -> IO ()
- grabServer :: Display -> IO ()
- ungrabKeyboard :: Display -> Time -> IO ()
- grabKeyboard :: Display -> Window -> Bool -> GrabMode -> GrabMode -> Time -> IO GrabStatus
- ungrabKey :: Display -> KeyCode -> KeyMask -> Window -> IO ()
- grabKey :: Display -> KeyCode -> KeyMask -> Window -> Bool -> GrabMode -> GrabMode -> IO ()
- ungrabPointer :: Display -> Time -> IO ()
- grabPointer :: Display -> Window -> Bool -> EventMask -> GrabMode -> GrabMode -> Window -> Cursor -> Time -> IO GrabStatus
- ungrabButton :: Display -> Button -> ButtonMask -> Window -> IO ()
- grabButton :: Display -> Button -> ButtonMask -> Window -> Bool -> EventMask -> GrabMode -> GrabMode -> Window -> Cursor -> IO ()
- setInputFocus :: Display -> Window -> FocusMode -> Time -> IO ()
- lastKnownRequestProcessed :: Display -> IO CInt
- setCloseDownMode :: Display -> CloseDownMode -> IO ()
- bell :: Display -> CInt -> IO ()
- autoRepeatOn :: Display -> IO ()
- autoRepeatOff :: Display -> IO ()
- rmInitialize :: IO ()
- getInputFocus :: Display -> IO (Window, FocusMode)
- queryBestTile :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)
- queryBestStipple :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)
- queryBestCursor :: Display -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)
- queryBestSize :: Display -> QueryBestSizeClass -> Drawable -> Dimension -> Dimension -> IO (Dimension, Dimension)
- queryPointer :: Display -> Window -> IO (Bool, Window, Window, CInt, CInt, CInt, CInt, Modifier)
- displayName :: String -> String
- setDefaultErrorHandler :: IO ()
- geometry :: Display -> CInt -> String -> String -> Dimension -> Dimension -> Dimension -> CInt -> CInt -> IO (CInt, Position, Position, Dimension, Dimension)
- getGeometry :: Display -> Drawable -> IO (Window, Position, Position, Dimension, Dimension, Dimension, CInt)
- setLocaleModifiers :: String -> IO String
- dontAllowExposures :: AllowExposuresMode
- allowExposures :: AllowExposuresMode
- defaultExposures :: AllowExposuresMode
- dontPreferBlanking :: PreferBlankingMode
- preferBlanking :: PreferBlankingMode
- defaultBlanking :: PreferBlankingMode
- screenSaverActive :: ScreenSaverMode
- screenSaverReset :: ScreenSaverMode
- getScreenSaver :: Display -> IO (CInt, CInt, PreferBlankingMode, AllowExposuresMode)
- getPointerControl :: Display -> IO (CInt, CInt, CInt)
- visualNoMask :: VisualInfoMask
- visualIDMask :: VisualInfoMask
- visualScreenMask :: VisualInfoMask
- visualDepthMask :: VisualInfoMask
- visualClassMask :: VisualInfoMask
- visualRedMaskMask :: VisualInfoMask
- visualGreenMaskMask :: VisualInfoMask
- visualBlueMaskMask :: VisualInfoMask
- visualColormapSizeMask :: VisualInfoMask
- visualBitsPerRGBMask :: VisualInfoMask
- visualAllMask :: VisualInfoMask
- getVisualInfo :: Display -> VisualInfoMask -> VisualInfo -> IO [VisualInfo]
- matchVisualInfo :: Display -> ScreenNumber -> CInt -> CInt -> IO (Maybe VisualInfo)
- readBitmapFile :: Display -> Drawable -> String -> IO (Either String (Dimension, Dimension, Pixmap, Maybe CInt, Maybe CInt))
- displayKeycodes :: Display -> (CInt, CInt)
- keysymToString :: KeySym -> String
- stringToKeysym :: String -> KeySym
- noSymbol :: KeySym
- lookupString :: XKeyEventPtr -> IO (Maybe KeySym, String)
- getIconName :: Display -> Window -> IO String
- setIconName :: Display -> Window -> String -> IO ()
- createPixmapCursor :: Display -> Pixmap -> Pixmap -> Color -> Color -> Dimension -> Dimension -> IO Cursor
- createGlyphCursor :: Display -> Font -> Font -> Glyph -> Glyph -> Color -> Color -> IO Cursor
- recolorCursor :: Display -> Cursor -> Color -> Color -> IO ()
- setWMProtocols :: Display -> Window -> [Atom] -> IO ()
- allocaSetWindowAttributes :: (Ptr SetWindowAttributes -> IO a) -> IO a
- set_background_pixmap :: Ptr SetWindowAttributes -> Pixmap -> IO ()
- set_background_pixel :: Ptr SetWindowAttributes -> Pixel -> IO ()
- set_border_pixmap :: Ptr SetWindowAttributes -> Pixmap -> IO ()
- set_border_pixel :: Ptr SetWindowAttributes -> Pixel -> IO ()
- set_bit_gravity :: Ptr SetWindowAttributes -> BitGravity -> IO ()
- set_win_gravity :: Ptr SetWindowAttributes -> WindowGravity -> IO ()
- set_backing_store :: Ptr SetWindowAttributes -> BackingStore -> IO ()
- set_backing_planes :: Ptr SetWindowAttributes -> Pixel -> IO ()
- set_backing_pixel :: Ptr SetWindowAttributes -> Pixel -> IO ()
- set_save_under :: Ptr SetWindowAttributes -> Bool -> IO ()
- set_event_mask :: Ptr SetWindowAttributes -> EventMask -> IO ()
- set_do_not_propagate_mask :: Ptr SetWindowAttributes -> EventMask -> IO ()
- set_override_redirect :: Ptr SetWindowAttributes -> Bool -> IO ()
- set_colormap :: Ptr SetWindowAttributes -> Colormap -> IO ()
- set_cursor :: Ptr SetWindowAttributes -> Cursor -> IO ()
- drawPoints :: Display -> Drawable -> GC -> [Point] -> CoordinateMode -> IO ()
- drawLines :: Display -> Drawable -> GC -> [Point] -> CoordinateMode -> IO ()
- drawSegments :: Display -> Drawable -> GC -> [Segment] -> IO ()
- drawRectangles :: Display -> Drawable -> GC -> [Rectangle] -> IO ()
- drawArcs :: Display -> Drawable -> GC -> [Arc] -> IO ()
- fillRectangles :: Display -> Drawable -> GC -> [Rectangle] -> IO ()
- fillPolygon :: Display -> Drawable -> GC -> [Point] -> PolygonShape -> CoordinateMode -> IO ()
- fillArcs :: Display -> Drawable -> GC -> [Arc] -> IO ()
- drawString :: Display -> Drawable -> GC -> Position -> Position -> String -> IO ()
- drawImageString :: Display -> Drawable -> GC -> Position -> Position -> String -> IO ()
- storeBuffer :: Display -> String -> CInt -> IO ()
- storeBytes :: Display -> String -> IO ()
- fetchBuffer :: Display -> CInt -> IO String
- fetchBytes :: Display -> IO String
- rotateBuffers :: Display -> CInt -> IO ()
- setTextProperty :: Display -> Window -> String -> Atom -> IO ()
- clearArea :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> Bool -> IO ()
- clearWindow :: Display -> Window -> IO ()
- changeSaveSet :: Display -> Window -> ChangeSaveSetMode -> IO ()
- removeFromSaveSet :: Display -> Window -> IO ()
- addToSaveSet :: Display -> Window -> IO ()
- setWindowColormap :: Display -> Window -> Colormap -> IO ()
- setWindowBackgroundPixmap :: Display -> Window -> Pixmap -> IO ()
- setWindowBackground :: Display -> Window -> Pixel -> IO ()
- setWindowBorderWidth :: Display -> Window -> Dimension -> IO ()
- setWindowBorderPixmap :: Display -> Window -> Pixmap -> IO ()
- setWindowBorder :: Display -> Window -> Pixel -> IO ()
- destroySubwindows :: Display -> Window -> IO ()
- destroyWindow :: Display -> Window -> IO ()
- circulateSubwindows :: Display -> Window -> CirculationDirection -> IO ()
- circulateSubwindowsUp :: Display -> Window -> IO ()
- circulateSubwindowsDown :: Display -> Window -> IO ()
- raiseWindow :: Display -> Window -> IO ()
- lowerWindow :: Display -> Window -> IO ()
- mapWindow :: Display -> Window -> IO ()
- unmapSubwindows :: Display -> Window -> IO ()
- mapSubwindows :: Display -> Window -> IO ()
- reparentWindow :: Display -> Window -> Window -> Position -> Position -> IO ()
- moveWindow :: Display -> Window -> Position -> Position -> IO ()
- resizeWindow :: Display -> Window -> Dimension -> Dimension -> IO ()
- moveResizeWindow :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> IO ()
- createWindow :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> CInt -> CInt -> WindowClass -> Visual -> AttributeMask -> Ptr SetWindowAttributes -> IO Window
- createSimpleWindow :: Display -> Window -> Position -> Position -> Dimension -> Dimension -> CInt -> Pixel -> Pixel -> IO Window
- storeName :: Display -> Window -> String -> IO ()
- translateCoordinates :: Display -> Window -> Window -> Position -> Position -> IO (Bool, Position, Position, Window)
- iconifyWindow :: Display -> Window -> ScreenNumber -> IO ()
- withdrawWindow :: Display -> Window -> ScreenNumber -> IO ()
- restackWindows :: Display -> [Window] -> IO ()
- data ErrorEvent = ErrorEvent {
- ev_type :: !CInt
- ev_display :: Display
- ev_serialnum :: !CULong
- ev_error_code :: !CUChar
- ev_request_code :: !CUChar
- ev_minor_code :: !CUChar
- ev_resourceid :: !XID
- type XErrorHandler = Display -> XErrorEventPtr -> IO ()
- type CXErrorHandler = Display -> XErrorEventPtr -> IO CInt
- type XErrorEventPtr = Ptr ()
- data WMHints = WMHints {}
- data ClassHint = ClassHint {}
- data SizeHints = SizeHints {
- sh_min_size :: Maybe (Dimension, Dimension)
- sh_max_size :: Maybe (Dimension, Dimension)
- sh_resize_inc :: Maybe (Dimension, Dimension)
- sh_aspect :: Maybe ((Dimension, Dimension), (Dimension, Dimension))
- sh_base_size :: Maybe (Dimension, Dimension)
- sh_win_gravity :: Maybe BitGravity
- newtype FontSet = FontSet (Ptr FontSet)
- data TextProperty = TextProperty {}
- data WindowAttributes = WindowAttributes {}
- data WindowChanges = WindowChanges {
- wc_x :: CInt
- wc_y :: CInt
- wc_width :: CInt
- wc_height :: CInt
- wc_border_width :: CInt
- wc_sibling :: Window
- wc_stack_mode :: CInt
- data Event
- = AnyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- | ConfigureRequestEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_parent :: !Window
- ev_window :: !Window
- ev_x :: !CInt
- ev_y :: !CInt
- ev_width :: !CInt
- ev_height :: !CInt
- ev_border_width :: !CInt
- ev_above :: !Window
- ev_detail :: !NotifyDetail
- ev_value_mask :: !CULong
- | ConfigureEvent { }
- | MapRequestEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_parent :: !Window
- ev_window :: !Window
- | KeyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_root :: !Window
- ev_subwindow :: !Window
- ev_time :: !Time
- ev_x :: !CInt
- ev_y :: !CInt
- ev_x_root :: !CInt
- ev_y_root :: !CInt
- ev_state :: !KeyMask
- ev_keycode :: !KeyCode
- ev_same_screen :: !Bool
- | ButtonEvent { }
- | MotionEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_x :: !CInt
- ev_y :: !CInt
- ev_window :: !Window
- | DestroyWindowEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_event :: !Window
- ev_window :: !Window
- | UnmapEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_event :: !Window
- ev_window :: !Window
- ev_from_configure :: !Bool
- | MapNotifyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_event :: !Window
- ev_window :: !Window
- ev_override_redirect :: !Bool
- | MappingNotifyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_request :: !MappingRequest
- ev_first_keycode :: !KeyCode
- ev_count :: !CInt
- | CrossingEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_root :: !Window
- ev_subwindow :: !Window
- ev_time :: !Time
- ev_x :: !CInt
- ev_y :: !CInt
- ev_x_root :: !CInt
- ev_y_root :: !CInt
- ev_mode :: !NotifyMode
- ev_detail :: !NotifyDetail
- ev_same_screen :: !Bool
- ev_focus :: !Bool
- ev_state :: !Modifier
- | SelectionRequest {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_owner :: !Window
- ev_requestor :: !Window
- ev_selection :: !Atom
- ev_target :: !Atom
- ev_property :: !Atom
- ev_time :: !Time
- | SelectionClear {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_selection :: !Atom
- ev_time :: !Time
- | PropertyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_atom :: !Atom
- ev_time :: !Time
- ev_propstate :: !CInt
- | ExposeEvent { }
- | FocusChangeEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_mode :: !NotifyMode
- ev_detail :: !NotifyDetail
- | ClientMessageEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_message_type :: !Atom
- ev_data :: ![CInt]
- | RRScreenChangeNotifyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_root :: !Window
- ev_timestamp :: !Time
- ev_config_timestamp :: !Time
- ev_size_index :: !SizeID
- ev_subpixel_order :: !SubpixelOrder
- ev_rotation :: !Rotation
- ev_width :: !CInt
- ev_height :: !CInt
- ev_mwidth :: !CInt
- ev_mheight :: !CInt
- | RRNotifyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_subtype :: !CInt
- | RRCrtcChangeNotifyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_subtype :: !CInt
- ev_crtc :: !RRCrtc
- ev_rr_mode :: !RRMode
- ev_rotation :: !Rotation
- ev_x :: !CInt
- ev_y :: !CInt
- ev_rr_width :: !CUInt
- ev_rr_height :: !CUInt
- | RROutputChangeNotifyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_subtype :: !CInt
- ev_output :: !RROutput
- ev_crtc :: !RRCrtc
- ev_rr_mode :: !RRMode
- ev_rotation :: !Rotation
- ev_connection :: !Connection
- ev_subpixel_order :: !SubpixelOrder
- | RROutputPropertyNotifyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_subtype :: !CInt
- ev_output :: !RROutput
- ev_property :: !Atom
- ev_timestamp :: !Time
- ev_rr_state :: !CInt
- | ScreenSaverNotifyEvent {
- ev_event_type :: !EventType
- ev_serial :: !CULong
- ev_send_event :: !Bool
- ev_event_display :: Display
- ev_window :: !Window
- ev_root :: !Window
- ev_ss_state :: !XScreenSaverState
- ev_ss_kind :: !XScreenSaverKind
- ev_forced :: !Bool
- ev_time :: !Time
- = AnyEvent {
- xFreeModifiermap :: Ptr () -> IO (Ptr CInt)
- xGetModifierMapping :: Display -> IO (Ptr ())
- xGetCommand :: Display -> Window -> Ptr (Ptr CWString) -> Ptr CInt -> IO Status
- mapRaised :: Display -> Window -> IO CInt
- _xSetErrorHandler :: FunPtr CXErrorHandler -> IO (FunPtr CXErrorHandler)
- getXErrorHandler :: FunPtr CXErrorHandler -> CXErrorHandler
- mkXErrorHandler :: CXErrorHandler -> IO (FunPtr CXErrorHandler)
- xConvertSelection :: Display -> Atom -> Atom -> Atom -> Window -> Time -> IO ()
- xGetSelectionOwner :: Display -> Atom -> IO Window
- xSetSelectionOwner :: Display -> Atom -> Window -> Time -> IO ()
- isPrivateKeypadKey :: KeySym -> Bool
- isPFKey :: KeySym -> Bool
- isModifierKey :: KeySym -> Bool
- isMiscFunctionKey :: KeySym -> Bool
- isKeypadKey :: KeySym -> Bool
- isFunctionKey :: KeySym -> Bool
- isCursorKey :: KeySym -> Bool
- xSetWMHints :: Display -> Window -> Ptr WMHints -> IO Status
- xAllocWMHints :: IO (Ptr WMHints)
- xGetWMHints :: Display -> Window -> IO (Ptr WMHints)
- xSetClassHint :: Display -> Window -> Ptr ClassHint -> IO ()
- xGetClassHint :: Display -> Window -> Ptr ClassHint -> IO Status
- xSetWMNormalHints :: Display -> Window -> Ptr SizeHints -> IO ()
- xAllocSizeHints :: IO (Ptr SizeHints)
- xGetWMNormalHints :: Display -> Window -> Ptr SizeHints -> Ptr CLong -> IO Status
- xUnmapWindow :: Display -> Window -> IO CInt
- xGetWindowProperty :: Display -> Window -> Atom -> CLong -> CLong -> Bool -> Atom -> Ptr Atom -> Ptr CInt -> Ptr CULong -> Ptr CULong -> Ptr (Ptr CUChar) -> IO Status
- xDeleteProperty :: Display -> Window -> Atom -> IO Status
- xChangeProperty :: Display -> Window -> Atom -> Atom -> CInt -> CInt -> Ptr CUChar -> CInt -> IO Status
- xRefreshKeyboardMapping :: Ptr () -> IO CInt
- xSetErrorHandler :: IO ()
- xGetWMProtocols :: Display -> Window -> Ptr (Ptr Atom) -> Ptr CInt -> IO Status
- xGetTransientForHint :: Display -> Window -> Ptr Window -> IO Status
- xFetchName :: Display -> Window -> Ptr CString -> IO Status
- xwcTextEscapement :: FontSet -> CWString -> CInt -> IO Int32
- xwcDrawImageString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> CWString -> CInt -> IO ()
- xwcDrawString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> CWString -> CInt -> IO ()
- xwcTextExtents :: FontSet -> CWString -> CInt -> Ptr Rectangle -> Ptr Rectangle -> IO CInt
- freeFontSet :: Display -> FontSet -> IO ()
- freeStringList :: Ptr CString -> IO ()
- xCreateFontSet :: Display -> CString -> Ptr (Ptr CString) -> Ptr CInt -> Ptr CString -> IO (Ptr FontSet)
- wcFreeStringList :: Ptr CWString -> IO ()
- xwcTextPropertyToTextList :: Display -> Ptr TextProperty -> Ptr (Ptr CWString) -> Ptr CInt -> IO CInt
- xGetTextProperty :: Display -> Window -> Ptr TextProperty -> Atom -> IO Status
- changeWindowAttributes :: Display -> Window -> AttributeMask -> Ptr SetWindowAttributes -> IO ()
- xGetWindowAttributes :: Display -> Window -> Ptr WindowAttributes -> IO Status
- xQueryTree :: Display -> Window -> Ptr Window -> Ptr Window -> Ptr (Ptr Window) -> Ptr CInt -> IO Status
- killClient :: Display -> Window -> IO CInt
- xConfigureWindow :: Display -> Window -> CULong -> Ptr WindowChanges -> IO CInt
- eventTable :: [(EventType, String)]
- eventName :: Event -> String
- getEvent :: XEventPtr -> IO Event
- none :: XID
- anyButton :: Button
- anyKey :: KeyCode
- currentTime :: Time
- configureWindow :: Display -> Window -> CULong -> WindowChanges -> IO ()
- queryTree :: Display -> Window -> IO (Window, Window, [Window])
- waIsUnmapped :: CInt
- waIsUnviewable :: CInt
- waIsViewable :: CInt
- getWindowAttributes :: Display -> Window -> IO WindowAttributes
- withServer :: Display -> IO () -> IO ()
- getTextProperty :: Display -> Window -> Atom -> IO TextProperty
- wcTextPropertyToTextList :: Display -> TextProperty -> IO [String]
- createFontSet :: Display -> String -> IO ([String], String, FontSet)
- wcTextExtents :: FontSet -> String -> (Rectangle, Rectangle)
- wcDrawString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> String -> IO ()
- wcDrawImageString :: Display -> Drawable -> FontSet -> GC -> Position -> Position -> String -> IO ()
- wcTextEscapement :: FontSet -> String -> Int32
- fetchName :: Display -> Window -> IO (Maybe String)
- getTransientForHint :: Display -> Window -> IO (Maybe Window)
- getWMProtocols :: Display -> Window -> IO [Atom]
- setEventType :: XEventPtr -> EventType -> IO ()
- setSelectionNotify :: XEventPtr -> Window -> Atom -> Atom -> Atom -> Time -> IO ()
- setClientMessageEvent :: XEventPtr -> Window -> Atom -> CInt -> Atom -> Time -> IO ()
- setClientMessageEvent' :: XEventPtr -> Window -> Atom -> CInt -> [CInt] -> IO ()
- setConfigureEvent :: XEventPtr -> Window -> Window -> CInt -> CInt -> CInt -> CInt -> CInt -> Window -> Bool -> IO ()
- setKeyEvent :: XEventPtr -> Window -> Window -> Window -> KeyMask -> KeyCode -> Bool -> IO ()
- anyPropertyType :: Atom
- rawGetWindowProperty :: Storable a => Int -> Display -> Atom -> Window -> IO (Maybe [a])
- getWindowProperty8 :: Display -> Atom -> Window -> IO (Maybe [CChar])
- getWindowProperty16 :: Display -> Atom -> Window -> IO (Maybe [CShort])
- getWindowProperty32 :: Display -> Atom -> Window -> IO (Maybe [CLong])
- changeProperty8 :: Display -> Window -> Atom -> Atom -> CInt -> [CChar] -> IO ()
- changeProperty16 :: Display -> Window -> Atom -> Atom -> CInt -> [CShort] -> IO ()
- changeProperty32 :: Display -> Window -> Atom -> Atom -> CInt -> [CLong] -> IO ()
- propModeReplace :: CInt
- propModePrepend :: CInt
- propModeAppend :: CInt
- deleteProperty :: Display -> Window -> Atom -> IO ()
- unmapWindow :: Display -> Window -> IO ()
- pMinSizeBit :: Int
- pMaxSizeBit :: Int
- pResizeIncBit :: Int
- pAspectBit :: Int
- pBaseSizeBit :: Int
- pWinGravityBit :: Int
- getWMNormalHints :: Display -> Window -> IO SizeHints
- setWMNormalHints :: Display -> Window -> SizeHints -> IO ()
- getClassHint :: Display -> Window -> IO ClassHint
- setClassHint :: Display -> Window -> ClassHint -> IO ()
- withdrawnState :: Int
- normalState :: Int
- iconicState :: Int
- inputHintBit :: Int
- stateHintBit :: Int
- iconPixmapHintBit :: Int
- iconWindowHintBit :: Int
- iconPositionHintBit :: Int
- iconMaskHintBit :: Int
- windowGroupHintBit :: Int
- urgencyHintBit :: Int
- allHintsBitmask :: CLong
- getWMHints :: Display -> Window -> IO WMHints
- setWMHints :: Display -> Window -> WMHints -> IO Status
- setErrorHandler :: XErrorHandler -> IO ()
- getErrorEvent :: XErrorEventPtr -> IO ErrorEvent
- getCommand :: Display -> Window -> IO [String]
- getModifierMapping :: Display -> IO [(Modifier, [KeyCode])]
- class Monad m => MonadIO (m :: Type -> Type) where
- trace :: MonadIO m => String -> m ()
- (|||) :: l a -> r a -> Choose l r a
- class Typeable (a :: k)
- type D = (Dimension, Dimension)
- newtype ScreenId = S Int
- (.|.) :: Bits a => a -> a -> a
- class Monad m => MonadState s (m :: Type -> Type) | m -> s where
- installSignalHandlers :: MonadIO m => m ()
- (<+>) :: Monoid m => m -> m -> m
- class Default a where
- def :: a
- class Monad m => MonadReader r (m :: Type -> Type) | m -> r where
- asks :: MonadReader r m => (r -> a) -> m a
- modify :: MonadState s m => (s -> s) -> m ()
- gets :: MonadState s m => (s -> a) -> m a
- float :: Window -> X ()
- restart :: String -> Bool -> X ()
- focus :: Window -> X ()
- type Directories = Directories' FilePath
- data Directories' a = Directories {}
- data ConfExtension = Typeable a => ConfExtension a
- data StateExtension
- = ExtensionClass a => StateExtension a
- | (Read a, Show a, ExtensionClass a) => PersistentExtension a
- class Typeable a => ExtensionClass a where
- initialValue :: a
- extensionType :: a -> StateExtension
- data LayoutMessages
- data SomeMessage = Message a => SomeMessage a
- class Typeable a => Message a
- class (Show (layout a), Typeable layout) => LayoutClass (layout :: Type -> Type) a where
- runLayout :: Workspace WorkspaceId (layout a) a -> Rectangle -> X ([(a, Rectangle)], Maybe (layout a))
- doLayout :: layout a -> Rectangle -> Stack a -> X ([(a, Rectangle)], Maybe (layout a))
- pureLayout :: layout a -> Rectangle -> Stack a -> [(a, Rectangle)]
- emptyLayout :: layout a -> Rectangle -> X ([(a, Rectangle)], Maybe (layout a))
- handleMessage :: layout a -> SomeMessage -> X (Maybe (layout a))
- pureMessage :: layout a -> SomeMessage -> Maybe (layout a)
- description :: layout a -> String
- data Layout a = (LayoutClass l a, Read (l a)) => Layout (l a)
- newtype Query a = Query (ReaderT Window X a)
- type ManageHook = Query (Endo WindowSet)
- data X a
- newtype ScreenDetail = SD {}
- type WorkspaceId = String
- type WindowSpace = Workspace WorkspaceId (Layout Window) Window
- type WindowSet = StackSet WorkspaceId (Layout Window) Window ScreenId ScreenDetail
- data XConfig (l :: Type -> Type) = XConfig !String !String !String !(l Window) !ManageHook !(Event -> X All) ![String] !KeyMask !(XConfig Layout -> Map (ButtonMask, KeySym) (X ())) !(XConfig Layout -> Map (ButtonMask, Button) (Window -> X ())) !Dimension !(X ()) !(X ()) !Bool !Bool !EventMask !EventMask !([String] -> XConfig Layout -> IO (XConfig Layout)) !(Map TypeRep ConfExtension)
- data XConf = XConf {
- display :: Display
- config :: !(XConfig Layout)
- theRoot :: !Window
- normalBorder :: !Pixel
- focusedBorder :: !Pixel
- keyActions :: !(Map (KeyMask, KeySym) (X ()))
- buttonActions :: !(Map (KeyMask, Button) (Window -> X ()))
- mouseFocused :: !Bool
- mousePosition :: !(Maybe (Position, Position))
- currentEvent :: !(Maybe Event)
- directories :: !Directories
- data XState = XState {}
- runQuery :: Query a -> Window -> X a
- runX :: XConf -> XState -> X a -> IO (a, XState)
- catchX :: X a -> X a -> X a
- userCode :: X a -> X (Maybe a)
- userCodeDef :: a -> X a -> X a
- withDisplay :: (Display -> X a) -> X a
- withWindowSet :: (WindowSet -> X a) -> X a
- withWindowAttributes :: Display -> Window -> (WindowAttributes -> X ()) -> X ()
- isRoot :: Window -> X Bool
- getAtom :: String -> X Atom
- atom_WM_PROTOCOLS :: X Atom
- atom_WM_DELETE_WINDOW :: X Atom
- atom_WM_STATE :: X Atom
- atom_WM_TAKE_FOCUS :: X Atom
- readsLayout :: Layout a -> String -> [(Layout a, String)]
- fromMessage :: Message m => SomeMessage -> Maybe m
- ifM :: Monad m => m Bool -> m a -> m a -> m a
- io :: MonadIO m => IO a -> m a
- catchIO :: MonadIO m => IO () -> m ()
- spawn :: MonadIO m => String -> m ()
- spawnPID :: MonadIO m => String -> m ProcessID
- xfork :: MonadIO m => IO () -> m ProcessID
- xmessage :: MonadIO m => String -> m ()
- runOnWorkspaces :: (WindowSpace -> X WindowSpace) -> X ()
- getDirectories :: IO Directories
- getXMonadDir :: X String
- getXMonadCacheDir :: X String
- getXMonadDataDir :: X String
- binFileName :: Directories -> FilePath
- stateFileName :: Directories -> FilePath
- recompile :: MonadIO m => Directories -> Bool -> m Bool
- whenJust :: Monad m => Maybe a -> (a -> m ()) -> m ()
- whenX :: X Bool -> X () -> X ()
- uninstallSignalHandlers :: MonadIO m => m ()
- data CLR
- data Choose (l :: Type -> Type) (r :: Type -> Type) a = Choose CLR (l a) (r a)
- newtype JumpToLayout = JumpToLayout String
- data ChangeLayout
- newtype Mirror (l :: Type -> Type) a = Mirror (l a)
- data Tall a = Tall {
- tallNMaster :: !Int
- tallRatioIncrement :: !Rational
- tallRatio :: !Rational
- data Full a = Full
- newtype IncMasterN = IncMasterN Int
- data Resize
- tile :: Rational -> Rectangle -> Int -> Int -> [Rectangle]
- splitVertically :: Int -> Rectangle -> [Rectangle]
- splitHorizontally :: Int -> Rectangle -> [Rectangle]
- splitHorizontallyBy :: RealFrac r => r -> Rectangle -> (Rectangle, Rectangle)
- splitVerticallyBy :: RealFrac r => r -> Rectangle -> (Rectangle, Rectangle)
- mirrorRect :: Rectangle -> Rectangle
- data StateFile = StateFile {
- sfWins :: StackSet WorkspaceId String Window ScreenId ScreenDetail
- sfExt :: [(String, String)]
- isFixedSizeOrTransient :: Display -> Window -> X Bool
- manage :: Window -> X ()
- unmanage :: Window -> X ()
- killWindow :: Window -> X ()
- kill :: X ()
- windows :: (WindowSet -> WindowSet) -> X ()
- modifyWindowSet :: (WindowSet -> WindowSet) -> X ()
- windowBracket :: (a -> Bool) -> X a -> X a
- windowBracket_ :: X Any -> X ()
- scaleRationalRect :: Rectangle -> RationalRect -> Rectangle
- setWMState :: Window -> Int -> X ()
- setWindowBorderWithFallback :: Display -> Window -> String -> Pixel -> X ()
- hide :: Window -> X ()
- reveal :: Window -> X ()
- setInitialProperties :: Window -> X ()
- refresh :: X ()
- clearEvents :: EventMask -> X ()
- tileWindow :: Window -> Rectangle -> X ()
- containedIn :: Rectangle -> Rectangle -> Bool
- nubScreens :: [Rectangle] -> [Rectangle]
- getCleanedScreenInfo :: MonadIO m => Display -> m [Rectangle]
- rescreen :: X ()
- setButtonGrab :: Bool -> Window -> X ()
- setTopFocus :: X ()
- setFocusX :: Window -> X ()
- cacheNumlockMask :: X ()
- mkGrabs :: [(KeyMask, KeySym)] -> X [(KeyMask, KeyCode)]
- unGrab :: X ()
- sendMessage :: Message a => a -> X ()
- broadcastMessage :: Message a => a -> X ()
- sendMessageWithNoRefresh :: Message a => a -> WindowSpace -> X ()
- updateLayout :: WorkspaceId -> Maybe (Layout Window) -> X ()
- setLayout :: Layout Window -> X ()
- sendRestart :: IO ()
- sendReplace :: IO ()
- screenWorkspace :: ScreenId -> X (Maybe WorkspaceId)
- withFocused :: (Window -> X ()) -> X ()
- withUnfocused :: (Window -> X ()) -> X ()
- isClient :: Window -> X Bool
- extraModifiers :: X [KeyMask]
- cleanMask :: KeyMask -> X KeyMask
- initColor :: Display -> String -> IO (Maybe Pixel)
- writeStateToFile :: X ()
- readStateFile :: forall (l :: Type -> Type). (LayoutClass l Window, Read (l Window)) => XConfig l -> X (Maybe XState)
- floatLocation :: Window -> X (ScreenId, RationalRect)
- pointScreen :: Position -> Position -> X (Maybe (Screen WorkspaceId (Layout Window) Window ScreenId ScreenDetail))
- pointWithin :: Position -> Position -> Rectangle -> Bool
- mouseDrag :: (Position -> Position -> X ()) -> X () -> X ()
- mouseMoveWindow :: Window -> X ()
- mouseResizeWindow :: Window -> X ()
- mkAdjust :: Window -> X (D -> D)
- applySizeHints :: Integral a => Dimension -> SizeHints -> (a, a) -> D
- applySizeHintsContents :: Integral a => SizeHints -> (a, a) -> D
- applySizeHints' :: SizeHints -> D -> D
- applyAspectHint :: (D, D) -> D -> D
- applyResizeIncHint :: D -> D -> D
- applyMaxSizeHint :: D -> D -> D
- liftX :: X a -> Query a
- idHook :: Monoid m => m
- composeAll :: Monoid m => [m] -> m
- (-->) :: (Monad m, Monoid a) => m Bool -> m a -> m a
- (=?) :: Eq a => Query a -> a -> Query Bool
- (<&&>) :: Monad m => m Bool -> m Bool -> m Bool
- (<||>) :: Monad m => m Bool -> m Bool -> m Bool
- title :: Query String
- appName :: Query String
- resource :: Query String
- className :: Query String
- stringProperty :: String -> Query String
- getStringProperty :: Display -> Window -> String -> X (Maybe String)
- willFloat :: Query Bool
- doF :: (s -> s) -> Query (Endo s)
- doFloat :: ManageHook
- doIgnore :: ManageHook
- doShift :: WorkspaceId -> ManageHook
- defaultConfig :: XConfig (Choose Tall (Choose (Mirror Tall) Full))
- buildLaunch :: Directories -> IO ()
- launch :: forall (l :: Type -> Type). (LayoutClass l Window, Read (l Window)) => XConfig l -> Directories -> IO ()
- data Bool
- data Char
- data Double
- data Float
- data Int
- data Word
- data Ordering
- data Maybe a
- class a ~# b => (a :: k) ~ (b :: k)
- data Integer
- data IO a
- fromIntegral :: (Integral a, Num b) => a -> b
- realToFrac :: (Real a, Fractional b) => a -> b
- class (Num a, Ord a) => Real a where
- toRational :: a -> Rational
- class (Real a, Enum a) => Integral a where
- class Num a => Fractional a where
- (/) :: a -> a -> a
- recip :: a -> a
- fromRational :: Rational -> a
- type Rational = Ratio Integer
- class (Real a, Fractional a) => RealFrac a where
- error :: HasCallStack => [Char] -> a
- data Either a b
- concat :: Foldable t => t [a] -> [a]
- class Foldable (t :: Type -> Type) where
- foldMap :: Monoid m => (a -> m) -> t a -> m
- foldr :: (a -> b -> b) -> b -> t a -> b
- foldl :: (b -> a -> b) -> b -> t a -> b
- foldr1 :: (a -> a -> a) -> t a -> a
- foldl1 :: (a -> a -> a) -> t a -> a
- null :: t a -> Bool
- length :: t a -> Int
- elem :: Eq a => a -> t a -> Bool
- maximum :: Ord a => t a -> a
- minimum :: Ord a => t a -> a
- sum :: Num a => t a -> a
- product :: Num a => t a -> a
- class Show a where
- even :: Integral a => a -> Bool
- (<$>) :: Functor f => (a -> b) -> f a -> f b
- class Enum a where
- succ :: a -> a
- pred :: a -> a
- toEnum :: Int -> a
- fromEnum :: a -> Int
- enumFrom :: a -> [a]
- enumFromThen :: a -> a -> [a]
- enumFromTo :: a -> a -> [a]
- enumFromThenTo :: a -> a -> a -> [a]
- ($) :: (a -> b) -> a -> b
- type String = [Char]
- unzip :: [(a, b)] -> ([a], [b])
- repeat :: a -> [a]
- cycle :: HasCallStack => [a] -> [a]
- class Applicative m => Monad (m :: Type -> Type) where
- class Read a where
- uncurry :: (a -> b -> c) -> (a, b) -> c
- id :: a -> a
- head :: HasCallStack => [a] -> a
- class (Functor t, Foldable t) => Traversable (t :: Type -> Type) where
- traverse :: Applicative f => (a -> f b) -> t a -> f (t b)
- sequenceA :: Applicative f => t (f a) -> f (t a)
- mapM :: Monad m => (a -> m b) -> t a -> m (t b)
- sequence :: Monad m => t (m a) -> m (t a)
- type IOError = IOException
- writeFile :: FilePath -> String -> IO ()
- getLine :: IO String
- putStrLn :: String -> IO ()
- mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()
- sequence_ :: (Foldable t, Monad m) => t (m a) -> m ()
- filter :: (a -> Bool) -> [a] -> [a]
- const :: a -> b -> a
- (++) :: [a] -> [a] -> [a]
- seq :: a -> b -> b
- zip :: [a] -> [b] -> [(a, b)]
- print :: Show a => a -> IO ()
- otherwise :: Bool
- map :: (a -> b) -> [a] -> [b]
- class Num a where
- class Eq a where
- class Eq a => Ord a where
- class Functor (f :: Type -> Type) where
- class Monad m => MonadFail (m :: Type -> Type) where
- class Semigroup a where
- (<>) :: a -> a -> a
- class Semigroup a => Monoid a where
- class Functor f => Applicative (f :: Type -> Type) where
- class Bounded a where
- class Fractional a => Floating a where
- class (RealFrac a, Floating a) => RealFloat a where
- floatRadix :: a -> Integer
- floatDigits :: a -> Int
- floatRange :: a -> (Int, Int)
- decodeFloat :: a -> (Integer, Int)
- encodeFloat :: Integer -> Int -> a
- exponent :: a -> Int
- significand :: a -> a
- scaleFloat :: Int -> a -> a
- isNaN :: a -> Bool
- isInfinite :: a -> Bool
- isDenormalized :: a -> Bool
- isNegativeZero :: a -> Bool
- isIEEE :: a -> Bool
- atan2 :: a -> a -> a
- (^) :: (Num a, Integral b) => a -> b -> a
- (&&) :: Bool -> Bool -> Bool
- (||) :: Bool -> Bool -> Bool
- not :: Bool -> Bool
- errorWithoutStackTrace :: [Char] -> a
- undefined :: HasCallStack => a
- (=<<) :: Monad m => (a -> m b) -> m a -> m b
- (.) :: (b -> c) -> (a -> b) -> a -> c
- flip :: (a -> b -> c) -> b -> a -> c
- ($!) :: (a -> b) -> a -> b
- until :: (a -> Bool) -> (a -> a) -> a -> a
- asTypeOf :: a -> a -> a
- subtract :: Num a => a -> a -> a
- maybe :: b -> (a -> b) -> Maybe a -> b
- tail :: HasCallStack => [a] -> [a]
- last :: HasCallStack => [a] -> a
- init :: HasCallStack => [a] -> [a]
- scanl :: (b -> a -> b) -> b -> [a] -> [b]
- scanl1 :: (a -> a -> a) -> [a] -> [a]
- scanr :: (a -> b -> b) -> b -> [a] -> [b]
- scanr1 :: (a -> a -> a) -> [a] -> [a]
- iterate :: (a -> a) -> a -> [a]
- replicate :: Int -> a -> [a]
- takeWhile :: (a -> Bool) -> [a] -> [a]
- dropWhile :: (a -> Bool) -> [a] -> [a]
- take :: Int -> [a] -> [a]
- drop :: Int -> [a] -> [a]
- splitAt :: Int -> [a] -> ([a], [a])
- span :: (a -> Bool) -> [a] -> ([a], [a])
- break :: (a -> Bool) -> [a] -> ([a], [a])
- reverse :: [a] -> [a]
- and :: Foldable t => t Bool -> Bool
- or :: Foldable t => t Bool -> Bool
- any :: Foldable t => (a -> Bool) -> t a -> Bool
- all :: Foldable t => (a -> Bool) -> t a -> Bool
- notElem :: (Foldable t, Eq a) => a -> t a -> Bool
- lookup :: Eq a => a -> [(a, b)] -> Maybe b
- concatMap :: Foldable t => (a -> [b]) -> t a -> [b]
- (!!) :: HasCallStack => [a] -> Int -> a
- zip3 :: [a] -> [b] -> [c] -> [(a, b, c)]
- zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]
- zipWith3 :: (a -> b -> c -> d) -> [a] -> [b] -> [c] -> [d]
- unzip3 :: [(a, b, c)] -> ([a], [b], [c])
- type ShowS = String -> String
- shows :: Show a => a -> ShowS
- showChar :: Char -> ShowS
- showString :: String -> ShowS
- showParen :: Bool -> ShowS -> ShowS
- odd :: Integral a => a -> Bool
- (^^) :: (Fractional a, Integral b) => a -> b -> a
- gcd :: Integral a => a -> a -> a
- lcm :: Integral a => a -> a -> a
- fst :: (a, b) -> a
- snd :: (a, b) -> b
- curry :: ((a, b) -> c) -> a -> b -> c
- type ReadS a = String -> [(a, String)]
- lex :: ReadS String
- readParen :: Bool -> ReadS a -> ReadS a
- either :: (a -> c) -> (b -> c) -> Either a b -> c
- reads :: Read a => ReadS a
- read :: Read a => String -> a
- lines :: String -> [String]
- unlines :: [String] -> String
- words :: String -> [String]
- unwords :: [String] -> String
- userError :: String -> IOError
- type FilePath = String
- ioError :: IOError -> IO a
- putChar :: Char -> IO ()
- putStr :: String -> IO ()
- getChar :: IO Char
- getContents :: IO String
- interact :: (String -> String) -> IO ()
- readFile :: FilePath -> IO String
- appendFile :: FilePath -> String -> IO ()
- readLn :: Read a => IO a
- readIO :: Read a => String -> IO a
- type Prime (l :: Type -> Type) (l' :: Type -> Type) = Arr (XConfig l) (XConfig l')
- type Arr x y = x -> IO y
- (>>) :: Arr x y -> Arr y z -> Arr x z
- ifThenElse :: Bool -> a -> a -> a
Start here
To start with, create a xmonad.hs
that looks like this:
{-# LANGUAGE RebindableSyntax #-} import XMonad.Config.Prime -- Imports go here. main = xmonad $ do nothing -- Configs go here.
This will give you a default xmonad install, with room to grow. The lines starting with double dashes are comments. You may delete them. Note that Haskell is a bit precise about indentation. Make sure all the statements in your do-block start at the same column, and make sure that any multi-line statements are formatted with a hanging indent. (For an example, see the 'keys =+' statement in the Example config section, below.)
After changing your config file, restart xmonad with mod-q (where, by default, "mod" == "alt").
xmonad :: forall a (l :: Type -> Type). (Default a, Read (l Window), LayoutClass l Window) => (a -> IO (XConfig l)) -> IO () Source #
nothing :: forall (l :: Type -> Type). Prime l l Source #
This doesn't modify the config in any way. It's just here for your initial config because Haskell doesn't allow empty do-blocks. Feel free to delete it once you've added other stuff.
Attributes you can set
These are a bunch of attributes that you can set. Syntax looks like this:
terminal =: "urxvt"
Strings are double quoted, Dimensions are unquoted integers, booleans are
True
or False
(case-sensitive), and modMask
is usually mod1Mask
or
mod4Mask
.
normalBorderColor :: forall (l :: Type -> Type). Settable String (XConfig l) Source #
Non-focused windows border color. Default: "#dddddd"
focusedBorderColor :: forall (l :: Type -> Type). Settable String (XConfig l) Source #
Focused windows border color. Default: "#ff0000"
terminal :: forall (l :: Type -> Type). Settable String (XConfig l) Source #
The preferred terminal application. Default: "xterm"
modMask :: forall (l :: Type -> Type). Settable KeyMask (XConfig l) Source #
The mod modifier, as used by key bindings. Default: mod1Mask
(which is
probably alt on your computer).
borderWidth :: forall (l :: Type -> Type). Settable Dimension (XConfig l) Source #
The border width (in pixels). Default: 1
focusFollowsMouse :: forall (l :: Type -> Type). Settable Bool (XConfig l) Source #
Whether window focus follows the mouse cursor on move, or requires a mouse
click. (Mouse? What's that?) Default: True
clickJustFocuses :: forall (l :: Type -> Type). Settable Bool (XConfig l) Source #
If True, a mouse click on an inactive window focuses it, but the click is
not passed to the window. If False, the click is also passed to the window.
Default True
class SettableClass (s :: Type -> Type) x y | s -> x y where Source #
Instances
UpdateableClass s x y => SettableClass s x y Source # | |
Defined in XMonad.Config.Prime |
class UpdateableClass (s :: Type -> Type) x y | s -> x y where Source #
Attributes you can add to
In addition to being able to set these attributes, they have a special
syntax for being able to add to them. The operator is =+
(the plus comes
after the equals), but each attribute has a different syntax for what
comes after the operator.
manageHook :: forall (l :: Type -> Type). Summable ManageHook ManageHook (XConfig l) Source #
The action to run when a new window is opened. Default:
manageHook =: composeAll [className =? "MPlayer" --> doFloat, className =? "Gimp" --> doFloat]
To add more rules to this list, you can say, for instance:
import XMonad.StackSet ... manageHook =+ (className =? "Emacs" --> doF kill) manageHook =+ (className =? "Vim" --> doF shiftMaster)
Note that operator precedence mandates the parentheses here.
handleEventHook :: forall (l :: Type -> Type). Summable (Event -> X All) (Event -> X All) (XConfig l) Source #
Custom X event handler. Return All True
if the default handler should
also be run afterwards. Default does nothing. To add an event handler:
import XMonad.Hooks.ServerMode ... handleEventHook =+ serverModeEventHook
workspaces :: forall (l :: Type -> Type). Summable [String] [String] (XConfig l) Source #
List of workspaces' names. Default: map show [1 .. 9 :: Int]
. Adding
appends to the end:
workspaces =+ ["0"]
This is useless unless you also create keybindings for this.
logHook :: forall (l :: Type -> Type). Summable (X ()) (X ()) (XConfig l) Source #
The action to perform when the windows set is changed. This happens
whenever focus change, a window is moved, etc. logHook =+
takes an X ()
and appends it via (>>)
. For instance:
import XMonad.Hooks.ICCCMFocus ... logHook =+ takeTopFocus
Note that if your expression is parametrically typed (e.g. of type
MonadIO m => m ()
), you'll need to explicitly annotate it, like so:
logHook =+ (io $ putStrLn "Hello, world!" :: X ())
startupHook :: forall (l :: Type -> Type). Summable (X ()) (X ()) (XConfig l) Source #
The action to perform on startup. startupHook =+
takes an X ()
and
appends it via (>>)
. For instance:
import XMonad.Hooks.SetWMName ... startupHook =+ setWMName "LG3D"
Note that if your expression is parametrically typed (e.g. of type
MonadIO m => m ()
), you'll need to explicitly annotate it, as documented
in logHook
.
clientMask :: forall (l :: Type -> Type). Summable EventMask EventMask (XConfig l) Source #
The client events that xmonad is interested in. This is useful in
combination with handleEventHook. Default: structureNotifyMask .|.
enterWindowMask .|. propertyChangeMask
clientMask =+ keyPressMask .|. keyReleaseMask
rootMask :: forall (l :: Type -> Type). Summable EventMask EventMask (XConfig l) Source #
The root events that xmonad is interested in. This is useful in
combination with handleEventHook. Default: substructureRedirectMask .|.
substructureNotifyMask .|. enterWindowMask .|. leaveWindowMask .|.
structureNotifyMask .|. buttonPressMask
class SummableClass (s :: Type -> Type) y | s -> y where Source #
Attributes you can add to or remove from
The following support the the =+
for adding items and the =-
operator
for removing items.
mouseBindings :: forall (l :: Type -> Type). MouseBindings (XConfig l) Source #
Mouse button bindings to an X
actions on a window. Default: see `man
xmonad`
. To make mod-<scrollwheel>
switch workspaces:
import XMonad.Actions.CycleWS (nextWS, prevWS) ... mouseBindings =+ [((mod4Mask, button4), const prevWS), ((mod4Mask, button5), const nextWS)]
Note that you need to specify the numbered mod-mask e.g. mod4Mask
instead
of just modMask
.
class RemovableClass (r :: Type -> Type) y | r -> y where Source #
Modifying the list of workspaces
Workspaces can be configured through workspaces
, but then the keys
need
to be set, and this can be a bit laborious. withWorkspaces
provides a
convenient mechanism for common workspace updates.
withWorkspaces :: forall (l :: Type -> Type). Arr WorkspaceConfig WorkspaceConfig -> Prime l l Source #
Configure workspaces through a Prime-like interface. Example:
withWorkspaces $ do wsKeys =+ ["0"] wsActions =+ [("M-M1-", windows . swapWithCurrent)] wsSetName 1 "mail"
This will set workspaces
and add the necessary keybindings to keys
. Note
that it won't remove old keybindings; it's just not that clever.
wsNames :: Settable [String] WorkspaceConfig Source #
The list of workspace names, like workspaces
but with two differences:
- If any entry is the empty string, it'll be replaced with the
corresponding entry in
wsKeys
. - The list is truncated to the size of
wsKeys
.
The default value is
.repeat
""
If you'd like to create workspaces without associated keyspecs, you can do
that afterwards, outside the withWorkspaces
block, with
.workspaces
=+
wsKeys :: Summable [String] [String] WorkspaceConfig Source #
The list of workspace keys. These are combined with the modifiers in
wsActions
to form the keybindings for navigating to workspaces. Default:
["1","2",...,"9"]
.
wsActions :: Summable [(String, String -> X ())] [(String, String -> X ())] WorkspaceConfig Source #
Mapping from key prefix to command. Its type is [(String, String ->
X())]
. The key prefix may be a modifier such as "M-"
, or a submap
prefix such as "M-a "
, or both, as in "M-a M-"
. The command is a
function that takes a workspace name and returns an X ()
. withWorkspaces
creates keybindings for the cartesian product of wsKeys
and wsActions
.
Default:
[("M-", windows . W.greedyView), ("M-S-", windows . W.shift)]
wsSetName :: Int -> String -> Arr WorkspaceConfig WorkspaceConfig Source #
A convenience for just modifying one entry in wsNames
, in case you only
want a few named workspaces. Example:
wsSetName 1 "mail" wsSetName 2 "web"
Modifying the screen keybindings
withScreens
provides a convenient mechanism to set keybindings for moving
between screens, much like withWorkspaces
.
withScreens :: forall (l :: Type -> Type). Arr ScreenConfig ScreenConfig -> Prime l l Source #
Configure screen keys through a Prime-like interface:
withScreens $ do sKeys =: ["e", "r"]
This will add the necessary keybindings to keys
. Note that it won't remove
old keybindings; it's just not that clever.
sKeys :: Summable [String] [String] ScreenConfig Source #
The list of screen keys. These are combined with the modifiers in
sActions
to form the keybindings for navigating to workspaces. Default:
["w","e","r"]
.
sActions :: Summable [(String, ScreenId -> X ())] [(String, ScreenId -> X ())] ScreenConfig Source #
Mapping from key prefix to command. Its type is [(String, ScreenId ->
X())]
. Works the same as wsActions
except for a different function type.
Default:
[("M-", windows . onScreens W.view), ("M-S-", windows . onScreens W.shift)]
onScreens :: Eq s => (i -> StackSet i l a s sd -> StackSet i l a s sd) -> s -> StackSet i l a s sd -> StackSet i l a s sd Source #
Converts a stackset transformer parameterized on the workspace type into one
parameterized on the screen type. For example, you can use onScreens W.view
0
to navigate to the workspace on the 0th screen. If the screen id is not
recognized, the returned transformer acts as an identity function.
Modifying the layoutHook
Layouts are special. You can't modify them using the =:
or =.
operator.
You need to use the following functions.
addLayout :: forall (l :: Type -> Type) r. (LayoutClass l Window, LayoutClass r Window) => r Window -> Prime l (Choose l r) Source #
Add a layout to the list of layouts choosable with mod-space. For instance:
import XMonad.Layout.Tabbed ... addLayout simpleTabbed
resetLayout :: forall r (l :: Type -> Type). LayoutClass r Window => r Window -> Prime l r Source #
Reset the layoutHook from scratch. For instance, to get rid of the wide layout:
resetLayout $ Tall 1 (3/100) (1/2) ||| Full
(The dollar is like an auto-closing parenthesis, so all the stuff to the right of it is treated like an argument to resetLayout.)
modifyLayout :: LayoutClass r Window => (l Window -> r Window) -> Prime l r Source #
Modify your layoutHook
with some wrapper function. You probably want to call
this after you're done calling addLayout
. Example:
import XMonad.Layout.NoBorders ... modifyLayout smartBorders
Updating the XConfig en masse
Finally, there are a few contrib modules that bundle multiple attribute updates together. There are three types: 1) wholesale replacements for the default config, 2) pure functions on the config, and 3) IO actions on the config. The syntax for each is different. Examples:
1) To start with a gnomeConfig
instead of the default,
we use startWith
:
import XMonad.Config.Gnome ... startWith gnomeConfig
2) withUrgencyHook
is a pure function, so we need
to use apply
:
import XMonad.Hooks.UrgencyHook ... apply $ withUrgencyHook dzenUrgencyHook
3) xmobar
returns an IO (XConfig l)
, so we need
to use applyIO
:
import XMonad.Hooks.DynamicLog ... applyIO xmobar
startWith :: forall (l' :: Type -> Type) (l :: Type -> Type). XConfig l' -> Prime l l' Source #
Replace the current XConfig
with the given one. If you use this, you
probably want it to be the first line of your config.
apply :: forall (l :: Type -> Type) (l' :: Type -> Type). (XConfig l -> XConfig l') -> Prime l l' Source #
applyIO :: forall (l :: Type -> Type) (l' :: Type -> Type). (XConfig l -> IO (XConfig l')) -> Prime l l' Source #
The rest of the world
Everything you know and love from the core XMonad module is available for use in your config file, too.
type XRRModeFlags = Word64 #
type Connection = Word16 #
type SubpixelOrder = Word16 #
type Reflection = Word16 #
type ImageFormat = CInt #
type FontDirection = CInt #
type BackingStore = CInt #
type WindowGravity = CInt #
type BitGravity = CInt #
type ChangeSaveSetMode = CInt #
type MappingRequest = CInt #
type ColormapAlloc = CInt #
type CirculationDirection = CInt #
type PolygonShape = CInt #
type CoordinateMode = CInt #
type SubWindowMode = CInt #
type GXFunction = CInt #
type QueryBestSizeClass = CInt #
type CloseDownMode = CInt #
type AttributeMask = Mask #
type WindowClass = CInt #
type AllowEvents = CInt #
type GrabStatus = CInt #
type ColormapNotification = CInt #
type PropertyNotification = CInt #
type Visibility = CInt #
type NotifyDetail = CInt #
type NotifyMode = CInt #
type ButtonMask = Modifier #
xK_VoidSymbol :: KeySym #
xK_BackSpace :: KeySym #
xK_Linefeed :: KeySym #
xK_Sys_Req :: KeySym #
xK_Multi_key :: KeySym #
xK_Codeinput :: KeySym #
xK_Page_Up :: KeySym #
xK_Page_Down :: KeySym #
xK_Execute :: KeySym #
xK_Num_Lock :: KeySym #
xK_KP_Space :: KeySym #
xK_KP_Enter :: KeySym #
xK_KP_Home :: KeySym #
xK_KP_Left :: KeySym #
xK_KP_Right :: KeySym #
xK_KP_Down :: KeySym #
xK_KP_Prior :: KeySym #
xK_KP_Page_Up :: KeySym #
xK_KP_Next :: KeySym #
xK_KP_Begin :: KeySym #
xK_KP_Insert :: KeySym #
xK_KP_Delete :: KeySym #
xK_KP_Equal :: KeySym #
xK_KP_Decimal :: KeySym #
xK_KP_Divide :: KeySym #
xK_Shift_L :: KeySym #
xK_Shift_R :: KeySym #
xK_Control_L :: KeySym #
xK_Control_R :: KeySym #
xK_Caps_Lock :: KeySym #
xK_Shift_Lock :: KeySym #
xK_Super_L :: KeySym #
xK_Super_R :: KeySym #
xK_Hyper_L :: KeySym #
xK_Hyper_R :: KeySym #
xK_quotedbl :: KeySym #
xK_numbersign :: KeySym #
xK_percent :: KeySym #
xK_ampersand :: KeySym #
xK_apostrophe :: KeySym #
xK_quoteright :: KeySym #
xK_parenleft :: KeySym #
xK_parenright :: KeySym #
xK_asterisk :: KeySym #
xK_semicolon :: KeySym #
xK_greater :: KeySym #
xK_question :: KeySym #
xK_backslash :: KeySym #
xK_underscore :: KeySym #
xK_quoteleft :: KeySym #
xK_braceleft :: KeySym #
xK_braceright :: KeySym #
xK_asciitilde :: KeySym #
xK_exclamdown :: KeySym #
xK_sterling :: KeySym #
xK_currency :: KeySym #
xK_brokenbar :: KeySym #
xK_section :: KeySym #
xK_diaeresis :: KeySym #
xK_copyright :: KeySym #
xK_notsign :: KeySym #
xK_registered :: KeySym #
xK_plusminus :: KeySym #
xK_paragraph :: KeySym #
xK_cedilla :: KeySym #
xK_masculine :: KeySym #
xK_onequarter :: KeySym #
xK_onehalf :: KeySym #
xK_Adiaeresis :: KeySym #
xK_Ccedilla :: KeySym #
xK_Ediaeresis :: KeySym #
xK_Idiaeresis :: KeySym #
xK_Odiaeresis :: KeySym #
xK_multiply :: KeySym #
xK_Ooblique :: KeySym #
xK_Udiaeresis :: KeySym #
xK_adiaeresis :: KeySym #
xK_ccedilla :: KeySym #
xK_ediaeresis :: KeySym #
xK_idiaeresis :: KeySym #
xK_odiaeresis :: KeySym #
xK_division :: KeySym #
xK_udiaeresis :: KeySym #
xK_ydiaeresis :: KeySym #
keyRelease :: EventType #
mapRequest :: EventType #
anyModifier :: Modifier #
controlMask :: KeyMask #
placeOnTop :: Place #
placeOnBottom :: Place #
familyChaos :: Protocol #
syncBoth :: AllowEvents #
badRequest :: ErrorCode #
Xlib functions with return values of type Status
return zero on
failure and nonzero on success.
cWX :: AttributeMask #
cWY :: AttributeMask #
gXclear :: GXFunction #
gXand :: GXFunction #
gXcopy :: GXFunction #
gXnoop :: GXFunction #
gXxor :: GXFunction #
gXor :: GXFunction #
gXnor :: GXFunction #
gXequiv :: GXFunction #
gXinvert :: GXFunction #
gXnand :: GXFunction #
gXset :: GXFunction #
capNotLast :: CapStyle #
evenOddRule :: FillRule #
windingRule :: FillRule #
complex :: PolygonShape #
convex :: PolygonShape #
arcPieSlice :: ArcMode #
gCFunction :: GCMask #
gCPlaneMask :: GCMask #
gCForeground :: GCMask #
gCBackground :: GCMask #
gCLineWidth :: GCMask #
gCLineStyle :: GCMask #
gCCapStyle :: GCMask #
gCJoinStyle :: GCMask #
gCFillStyle :: GCMask #
gCFillRule :: GCMask #
gCClipXOrigin :: GCMask #
gCClipYOrigin :: GCMask #
gCClipMask :: GCMask #
gCDashOffset :: GCMask #
gCDashList :: GCMask #
always :: BackingStore #
xyBitmap :: ImageFormat #
xyPixmap :: ImageFormat #
zPixmap :: ImageFormat #
counterpart of an X11 XColor
structure
Color | |
|
Instances
Data Color | |
Defined in Graphics.X11.Xlib.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Color -> c Color # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Color # dataTypeOf :: Color -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Color) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Color) # gmapT :: (forall b. Data b => b -> b) -> Color -> Color # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Color -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Color -> r # gmapQ :: (forall d. Data d => d -> u) -> Color -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Color -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Color -> m Color # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Color -> m Color # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Color -> m Color # | |
Storable Color | |
Show Color | |
Eq Color | |
counterpart of an X11 XSegment
structure
Instances
Data Segment | |
Defined in Graphics.X11.Xlib.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Segment -> c Segment # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Segment # toConstr :: Segment -> Constr # dataTypeOf :: Segment -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Segment) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Segment) # gmapT :: (forall b. Data b => b -> b) -> Segment -> Segment # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Segment -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Segment -> r # gmapQ :: (forall d. Data d => d -> u) -> Segment -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Segment -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Segment -> m Segment # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Segment -> m Segment # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Segment -> m Segment # | |
Storable Segment | |
Show Segment | |
Eq Segment | |
counterpart of an X11 XArc
structure
Arc | |
|
counterpart of an X11 XRectangle
structure
Rectangle | |
|
Instances
Data Rectangle | |
Defined in Graphics.X11.Xlib.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Rectangle -> c Rectangle # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Rectangle # toConstr :: Rectangle -> Constr # dataTypeOf :: Rectangle -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Rectangle) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Rectangle) # gmapT :: (forall b. Data b => b -> b) -> Rectangle -> Rectangle # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Rectangle -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Rectangle -> r # gmapQ :: (forall d. Data d => d -> u) -> Rectangle -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Rectangle -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Rectangle -> m Rectangle # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Rectangle -> m Rectangle # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Rectangle -> m Rectangle # | |
Storable Rectangle | |
Defined in Graphics.X11.Xlib.Types | |
Read Rectangle | |
Show Rectangle | |
Eq Rectangle | |
PPrint Rectangle Source # | |
counterpart of an X11 XPoint
structure
Instances
Data Point | |
Defined in Graphics.X11.Xlib.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Point -> c Point # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Point # dataTypeOf :: Point -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Point) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Point) # gmapT :: (forall b. Data b => b -> b) -> Point -> Point # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Point -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Point -> r # gmapQ :: (forall d. Data d => d -> u) -> Point -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Point -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Point -> m Point # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Point -> m Point # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Point -> m Point # | |
Storable Point | |
Show Point | |
Eq Point | |
type ScreenNumber = Word32 #
pointer to an X11 XImage
structure
Instances
Data Image | |
Defined in Graphics.X11.Xlib.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Image -> c Image # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Image # dataTypeOf :: Image -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Image) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Image) # gmapT :: (forall b. Data b => b -> b) -> Image -> Image # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Image -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Image -> r # gmapQ :: (forall d. Data d => d -> u) -> Image -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Image -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Image -> m Image # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Image -> m Image # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Image -> m Image # | |
Show Image | |
Eq Image | |
Ord Image | |
data VisualInfo #
counterpart of an X11 XVisualInfo
structure
Instances
Storable VisualInfo | |
Defined in Graphics.X11.Xlib.Types sizeOf :: VisualInfo -> Int # alignment :: VisualInfo -> Int # peekElemOff :: Ptr VisualInfo -> Int -> IO VisualInfo # pokeElemOff :: Ptr VisualInfo -> Int -> VisualInfo -> IO () # peekByteOff :: Ptr b -> Int -> IO VisualInfo # pokeByteOff :: Ptr b -> Int -> VisualInfo -> IO () # peek :: Ptr VisualInfo -> IO VisualInfo # poke :: Ptr VisualInfo -> VisualInfo -> IO () # | |
Show VisualInfo | |
Defined in Graphics.X11.Xlib.Types showsPrec :: Int -> VisualInfo -> ShowS # show :: VisualInfo -> String # showList :: [VisualInfo] -> ShowS # | |
Default VisualInfo | |
Defined in Graphics.X11.Xlib.Types def :: VisualInfo # | |
Eq VisualInfo | |
Defined in Graphics.X11.Xlib.Types (==) :: VisualInfo -> VisualInfo -> Bool # (/=) :: VisualInfo -> VisualInfo -> Bool # |
data SetWindowAttributes #
pointer to an X11 XSetWindowAttributes
structure
Instances
pointer to an X11 GC
structure
Instances
Data GC | |
Defined in Graphics.X11.Xlib.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GC -> c GC # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GC # dataTypeOf :: GC -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c GC) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GC) # gmapT :: (forall b. Data b => b -> b) -> GC -> GC # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GC -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GC -> r # gmapQ :: (forall d. Data d => d -> u) -> GC -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> GC -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> GC -> m GC # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GC -> m GC # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GC -> m GC # | |
Show GC | |
Eq GC | |
Ord GC | |
pointer to an X11 Visual
structure
Instances
Data Visual | |
Defined in Graphics.X11.Xlib.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Visual -> c Visual # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Visual # toConstr :: Visual -> Constr # dataTypeOf :: Visual -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Visual) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Visual) # gmapT :: (forall b. Data b => b -> b) -> Visual -> Visual # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Visual -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Visual -> r # gmapQ :: (forall d. Data d => d -> u) -> Visual -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Visual -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Visual -> m Visual # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Visual -> m Visual # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Visual -> m Visual # | |
Show Visual | |
Eq Visual | |
Ord Visual | |
pointer to an X11 Screen
structure
Instances
Data Screen | |
Defined in Graphics.X11.Xlib.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Screen -> c Screen # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Screen # toConstr :: Screen -> Constr # dataTypeOf :: Screen -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Screen) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Screen) # gmapT :: (forall b. Data b => b -> b) -> Screen -> Screen # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Screen -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Screen -> r # gmapQ :: (forall d. Data d => d -> u) -> Screen -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Screen -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Screen -> m Screen # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Screen -> m Screen # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Screen -> m Screen # | |
Show Screen | |
Eq Screen | |
Ord Screen | |
PPrint Screen Source # | |
pointer to an X11 Display
structure
Instances
Data Display | |
Defined in Graphics.X11.Xlib.Types gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Display -> c Display # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Display # toConstr :: Display -> Constr # dataTypeOf :: Display -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Display) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Display) # gmapT :: (forall b. Data b => b -> b) -> Display -> Display # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Display -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Display -> r # gmapQ :: (forall d. Data d => d -> u) -> Display -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Display -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Display -> m Display # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Display -> m Display # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Display -> m Display # | |
Show Display | |
Eq Display | |
Ord Display | |
screenNumberOfScreen :: Screen -> ScreenNumber #
interface to the X11 library function XScreenNumberOfScreen()
.
planesOfScreen :: Screen -> CInt #
interface to the X11 library function XPlanesOfScreen()
.
heightMMOfScreen :: Screen -> Dimension #
interface to the X11 library function XHeightMMOfScreen()
.
heightOfScreen :: Screen -> Dimension #
interface to the X11 library function XHeightOfScreen()
.
widthMMOfScreen :: Screen -> Dimension #
interface to the X11 library function XWidthMMOfScreen()
.
widthOfScreen :: Screen -> Dimension #
interface to the X11 library function XWidthOfScreen()
.
rootWindowOfScreen :: Screen -> Window #
interface to the X11 library function XRootWindowOfScreen()
.
maxCmapsOfScreen :: Screen -> CInt #
interface to the X11 library function XMaxCmapsOfScreen()
.
minCmapsOfScreen :: Screen -> CInt #
interface to the X11 library function XMinCmapsOfScreen()
.
eventMaskOfScreen :: Screen -> EventMask #
interface to the X11 library function XEventMaskOfScreen()
.
Event mask at connection setup time - not current event mask!
displayOfScreen :: Screen -> Display #
interface to the X11 library function XDisplayOfScreen()
.
doesSaveUnders :: Screen -> Bool #
interface to the X11 library function XDoesSaveUnders()
.
doesBackingStore :: Screen -> Bool #
interface to the X11 library function XDoesBackingStore()
.
defaultVisualOfScreen :: Screen -> Visual #
interface to the X11 library function XDefaultVisualOfScreen()
.
defaultGCOfScreen :: Screen -> GC #
interface to the X11 library function XDefaultGCOfScreen()
.
defaultDepthOfScreen :: Screen -> CInt #
interface to the X11 library function XDefaultDepthOfScreen()
.
defaultColormapOfScreen :: Screen -> Colormap #
interface to the X11 library function XDefaultColormapOfScreen()
.
cellsOfScreen :: Screen -> CInt #
interface to the X11 library function XCellsOfScreen()
.
whitePixelOfScreen :: Screen -> Pixel #
interface to the X11 library function XWhitePixelOfScreen()
.
blackPixelOfScreen :: Screen -> Pixel #
interface to the X11 library function XBlackPixelOfScreen()
.
type RectInRegionResult = CInt #
Instances
Data Region | |
Defined in Graphics.X11.Xlib.Region gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Region -> c Region # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Region # toConstr :: Region -> Constr # dataTypeOf :: Region -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Region) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Region) # gmapT :: (forall b. Data b => b -> b) -> Region -> Region # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Region -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Region -> r # gmapQ :: (forall d. Data d => d -> u) -> Region -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Region -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Region -> m Region # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Region -> m Region # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Region -> m Region # | |
Show Region | |
Eq Region | |
Ord Region | |
createRegion :: IO Region #
interface to the X11 library function XCreateRegion()
.
polygonRegion :: [Point] -> FillRule -> IO Region #
interface to the X11 library function XPolygonRegion()
.
intersectRegion :: Region -> Region -> Region -> IO CInt #
interface to the X11 library function XIntersectRegion()
.
subtractRegion :: Region -> Region -> Region -> IO CInt #
interface to the X11 library function XSubtractRegion()
.
unionRectWithRegion :: Rectangle -> Region -> Region -> IO CInt #
interface to the X11 library function XUnionRectWithRegion()
.
unionRegion :: Region -> Region -> Region -> IO CInt #
interface to the X11 library function XUnionRegion()
.
xorRegion :: Region -> Region -> Region -> IO CInt #
interface to the X11 library function XXorRegion()
.
emptyRegion :: Region -> IO Bool #
interface to the X11 library function XEmptyRegion()
.
pointInRegion :: Region -> Point -> IO Bool #
interface to the X11 library function XPointInRegion()
.
rectInRegion :: Region -> Rectangle -> IO RectInRegionResult #
interface to the X11 library function XRectInRegion()
.
setRegion :: Display -> GC -> Region -> IO CInt #
interface to the X11 library function XSetRegion()
.
destroyImage :: Image -> IO () #
interface to the X11 library function XDestroyImage()
.
putImage :: Display -> Drawable -> GC -> Image -> Position -> Position -> Position -> Position -> Dimension -> Dimension -> IO () #
interface to the X11 library function XPutImage()
.
createImage :: Display -> Visual -> CInt -> ImageFormat -> CInt -> Ptr CChar -> Dimension -> Dimension -> CInt -> CInt -> IO Image #
interface to the X11 library function XCreateImage()
.
getImage :: Display -> Drawable -> CInt -> CInt -> CUInt -> CUInt -> CULong -> ImageFormat -> IO Image #
interface to the X11 library function XGetImage()
.
data FontStruct #
pointer to an X11 XFontStruct
structure
Instances
freeFont :: Display -> FontStruct -> IO () #
interface to the X11 library function XFreeFont()
.
loadQueryFont :: Display -> String -> IO FontStruct #
interface to the X11 library function XLoadQueryFont()
.
fontFromFontStruct :: FontStruct -> Font #
ascentFromFontStruct :: FontStruct -> Int32 #
textExtents :: FontStruct -> String -> (FontDirection, Int32, Int32, CharStruct) #
interface to the X11 library function XTextExtents()
.
textWidth :: FontStruct -> String -> Int32 #
interface to the X11 library function XTextWidth()
.
xC_X_cursor :: Glyph #
xC_bogosity :: Glyph #
xC_bottom_side :: Glyph #
xC_bottom_tee :: Glyph #
xC_box_spiral :: Glyph #
xC_center_ptr :: Glyph #
xC_coffee_mug :: Glyph #
xC_crosshair :: Glyph #
xC_draft_large :: Glyph #
xC_draft_small :: Glyph #
xC_draped_box :: Glyph #
xC_exchange :: Glyph #
xC_gobbler :: Glyph #
xC_iron_cross :: Glyph #
xC_left_ptr :: Glyph #
xC_left_side :: Glyph #
xC_left_tee :: Glyph #
xC_leftbutton :: Glyph #
xC_ll_angle :: Glyph #
xC_lr_angle :: Glyph #
xC_right_ptr :: Glyph #
xC_right_side :: Glyph #
xC_right_tee :: Glyph #
xC_rightbutton :: Glyph #
xC_rtl_logo :: Glyph #
xC_sailboat :: Glyph #
xC_sb_up_arrow :: Glyph #
xC_shuttle :: Glyph #
xC_spraycan :: Glyph #
xC_top_side :: Glyph #
xC_top_tee :: Glyph #
xC_ul_angle :: Glyph #
xC_umbrella :: Glyph #
xC_ur_angle :: Glyph #
closeDisplay :: Display -> IO () #
interface to the X11 library function XCloseDisplay()
.
rootWindow :: Display -> ScreenNumber -> IO Window #
interface to the X11 library function XRootWindow()
.
defaultRootWindow :: Display -> Window #
interface to the X11 library function XDefaultRootWindow()
.
screenOfDisplay :: Display -> ScreenNumber -> Screen #
interface to the X11 library function XScreenOfDisplay()
.
displayPlanes :: Display -> ScreenNumber -> CInt #
interface to the X11 library function XDisplayPlanes()
.
displayCells :: Display -> ScreenNumber -> CInt #
interface to the X11 library function XDisplayCells()
.
defaultVisual :: Display -> ScreenNumber -> Visual #
interface to the X11 library function XDefaultVisual()
.
screenCount :: Display -> CInt #
interface to the X11 library function XScreenCount()
.
protocolVersion :: Display -> CInt #
interface to the X11 library function XProtocolVersion()
.
protocolRevision :: Display -> CInt #
interface to the X11 library function XProtocolRevision()
.
imageByteOrder :: Display -> CInt #
interface to the X11 library function XImageByteOrder()
.
displayMotionBufferSize :: Display -> CInt #
interface to the X11 library function XDisplayMotionBufferSize()
.
maxRequestSize :: Display -> CInt #
interface to the X11 library function XMaxRequestSize()
.
displayWidthMM :: Display -> ScreenNumber -> CInt #
interface to the X11 library function XDisplayWidthMM()
.
displayWidth :: Display -> ScreenNumber -> CInt #
interface to the X11 library function XDisplayWidth()
.
displayHeightMM :: Display -> ScreenNumber -> CInt #
interface to the X11 library function XDisplayHeightMM()
.
displayHeight :: Display -> ScreenNumber -> CInt #
interface to the X11 library function XDisplayHeight()
.
defaultScreenOfDisplay :: Display -> Screen #
interface to the X11 library function XDefaultScreenOfDisplay()
.
defaultScreen :: Display -> ScreenNumber #
interface to the X11 library function XDefaultScreen()
.
defaultDepth :: Display -> ScreenNumber -> CInt #
interface to the X11 library function XDefaultDepth()
.
defaultGC :: Display -> ScreenNumber -> GC #
interface to the X11 library function XDefaultGC()
.
defaultColormap :: Display -> ScreenNumber -> Colormap #
interface to the X11 library function XDefaultColormap()
.
connectionNumber :: Display -> CInt #
interface to the X11 library function XConnectionNumber()
.
whitePixel :: Display -> ScreenNumber -> Pixel #
interface to the X11 library function XWhitePixel()
.
blackPixel :: Display -> ScreenNumber -> Pixel #
interface to the X11 library function XBlackPixel()
.
allPlanes_aux :: Pixel #
interface to the X11 library function XAllPlanes()
.
resourceManagerString :: Display -> String #
interface to the X11 library function XResourceManagerString()
.
screenResourceString :: Screen -> String #
interface to the X11 library function XScreenResourceString()
.
displayString :: Display -> String #
interface to the X11 library function XDisplayString()
.
serverVendor :: Display -> String #
interface to the X11 library function XServerVendor()
.
openDisplay :: String -> IO Display #
interface to the X11 library function XOpenDisplay()
.
type XMappingEvent = (MappingRequest, KeyCode, CInt) #
type XKeyEventPtr = Ptr XKeyEvent #
Instances
Data XEvent | |
Defined in Graphics.X11.Xlib.Event gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> XEvent -> c XEvent # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c XEvent # toConstr :: XEvent -> Constr # dataTypeOf :: XEvent -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c XEvent) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c XEvent) # gmapT :: (forall b. Data b => b -> b) -> XEvent -> XEvent # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> XEvent -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> XEvent -> r # gmapQ :: (forall d. Data d => d -> u) -> XEvent -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> XEvent -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> XEvent -> m XEvent # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> XEvent -> m XEvent # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> XEvent -> m XEvent # | |
Show XEvent | |
Eq XEvent | |
Ord XEvent | |
type QueuedMode = CInt #
putBackEvent :: Display -> XEventPtr -> IO () #
interface to the X11 library function XPutBackEvent()
.
checkTypedWindowEvent :: Display -> Window -> EventType -> XEventPtr -> IO Bool #
interface to the X11 library function XCheckTypedWindowEvent()
.
checkTypedEvent :: Display -> EventType -> XEventPtr -> IO Bool #
interface to the X11 library function XCheckTypedEvent()
.
checkMaskEvent :: Display -> EventMask -> XEventPtr -> IO Bool #
interface to the X11 library function XCheckMaskEvent()
.
maskEvent :: Display -> EventMask -> XEventPtr -> IO () #
interface to the X11 library function XMaskEvent()
.
checkWindowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO Bool #
interface to the X11 library function XCheckWindowEvent()
.
windowEvent :: Display -> Window -> EventMask -> XEventPtr -> IO () #
interface to the X11 library function XWindowEvent()
.
selectInput :: Display -> Window -> EventMask -> IO () #
interface to the X11 library function XSelectInput()
.
allowEvents :: Display -> AllowEvents -> Time -> IO () #
interface to the X11 library function XAllowEvents()
.
eventsQueued :: Display -> QueuedMode -> IO CInt #
interface to the X11 library function XEventsQueued()
.
allocaXEvent :: (XEventPtr -> IO a) -> IO a #
get_EventType :: XEventPtr -> IO EventType #
get_Window :: XEventPtr -> IO Window #
get_KeyEvent :: XEventPtr -> IO XKeyEvent #
asKeyEvent :: XEventPtr -> XKeyEventPtr #
get_ButtonEvent :: XEventPtr -> IO XButtonEvent #
get_MotionEvent :: XEventPtr -> IO XMotionEvent #
get_ExposeEvent :: XEventPtr -> IO XExposeEvent #
waitForEvent :: Display -> Word32 -> IO Bool #
Reads an event with a timeout (in microseconds). Returns True if timeout occurs.
gettimeofday_in_milliseconds :: IO Integer #
This function is somewhat compatible with Win32's TimeGetTime()
sendEvent :: Display -> Window -> Bool -> EventMask -> XEventPtr -> IO () #
interface to the X11 library function XSendEvent()
.
refreshKeyboardMapping :: Event -> IO () #
refreshKeyboardMapping. TODO Remove this binding when the fix has been commited to X11
gContextFromGC :: GC -> GContext #
interface to the X11 library function XGContextFromGC()
.
setTSOrigin :: Display -> GC -> Position -> Position -> IO () #
interface to the X11 library function XSetTSOrigin()
.
setSubwindowMode :: Display -> GC -> SubWindowMode -> IO () #
interface to the X11 library function XSetSubwindowMode()
.
setStipple :: Display -> GC -> Pixmap -> IO () #
interface to the X11 library function XSetStipple()
.
setState :: Display -> GC -> Pixel -> Pixel -> GXFunction -> Pixel -> IO () #
interface to the X11 library function XSetState()
.
setPlaneMask :: Display -> GC -> Pixel -> IO () #
interface to the X11 library function XSetPlaneMask()
.
setLineAttributes :: Display -> GC -> CInt -> LineStyle -> CapStyle -> JoinStyle -> IO () #
interface to the X11 library function XSetLineAttributes()
.
setFillStyle :: Display -> GC -> FillStyle -> IO () #
interface to the X11 library function XSetFillStyle()
.
setFillRule :: Display -> GC -> FillRule -> IO () #
interface to the X11 library function XSetFillRule()
.
setClipOrigin :: Display -> GC -> Position -> Position -> IO () #
interface to the X11 library function XSetClipOrigin()
.
setClipMask :: Display -> GC -> Pixmap -> IO () #
interface to the X11 library function XSetClipMask()
.
setGraphicsExposures :: Display -> GC -> Bool -> IO () #
interface to the X11 library function XSetGraphicsExposures()
.
setFunction :: Display -> GC -> GXFunction -> IO () #
interface to the X11 library function XSetFunction()
.
setForeground :: Display -> GC -> Pixel -> IO () #
interface to the X11 library function XSetForeground()
.
setBackground :: Display -> GC -> Pixel -> IO () #
interface to the X11 library function XSetBackground()
.
setArcMode :: Display -> GC -> ArcMode -> IO () #
interface to the X11 library function XSetArcMode()
.
setDashes :: Display -> GC -> CInt -> String -> CInt -> IO () #
interface to the X11 library function XSetDashes()
.
createGC :: Display -> Drawable -> IO GC #
partial interface to the X11 library function XCreateGC()
.
freeColormap :: Display -> Colormap -> IO () #
interface to the X11 library function XFreeColormap()
.
createColormap :: Display -> Window -> Visual -> ColormapAlloc -> IO Colormap #
interface to the X11 library function XCreateColormap()
.
copyColormapAndFree :: Display -> Colormap -> IO Colormap #
interface to the X11 library function XCopyColormapAndFree()
.
uninstallColormap :: Display -> Colormap -> IO () #
interface to the X11 library function XUninstallColormap()
.
installColormap :: Display -> Colormap -> IO () #
interface to the X11 library function XInstallColormap()
.
lookupColor :: Display -> Colormap -> String -> IO (Color, Color) #
interface to the X11 library function XLookupColor()
.
allocNamedColor :: Display -> Colormap -> String -> IO (Color, Color) #
interface to the X11 library function XAllocNamedColor()
.
allocColor :: Display -> Colormap -> Color -> IO Color #
interface to the X11 library function XAllocColor()
.
parseColor :: Display -> Colormap -> String -> IO Color #
interface to the X11 library function XParseColor()
.
freeColors :: Display -> Colormap -> [Pixel] -> Pixel -> IO () #
interface to the X11 library function XFreeColors()
.
storeColor :: Display -> Colormap -> Color -> IO () #
interface to the X11 library function XStoreColor()
.
queryColor :: Display -> Colormap -> Color -> IO Color #
interface to the X11 library function XQueryColor()
.
queryColors :: Display -> Colormap -> [Color] -> IO [Color] #
interface to the X11 library function XQueryColors()
.
internAtom :: Display -> String -> Bool -> IO Atom #
interface to the X11 library function XInternAtom()
.
cUT_BUFFER0 :: Atom #
cUT_BUFFER1 :: Atom #
cUT_BUFFER2 :: Atom #
cUT_BUFFER3 :: Atom #
cUT_BUFFER4 :: Atom #
cUT_BUFFER5 :: Atom #
cUT_BUFFER6 :: Atom #
cUT_BUFFER7 :: Atom #
rGB_COLOR_MAP :: Atom #
rGB_BEST_MAP :: Atom #
rGB_BLUE_MAP :: Atom #
rGB_DEFAULT_MAP :: Atom #
rGB_GRAY_MAP :: Atom #
rGB_GREEN_MAP :: Atom #
rGB_RED_MAP :: Atom #