wild-bind-task-x11-0.2.0.3: Task to install and export everything you need to use WildBind in X11
MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellNone
LanguageHaskell2010

WildBind.Task.X11

Description

This module exports everything you probably need to use WildBind in X11 environments.

Synopsis

Execution

wildNumPad :: (NumPadPosition i, XKeyInput i, Describable i, Ord i, Enum i, Bounded i) => Binding ActiveWindow i -> IO () Source #

A convenient function to create an executable action with X11 FrontEnd and Indicator for a number pad.

main :: IO ()
main = wildNumPad $ binds $ do
  on NumCenter `run` putStrLn "You pushed center."

Note that the executable must be compiled by ghc with -threaded option enabled.

With this function, the "/" (divide) key on the numpad is bound to toggling the Indicator, ignoring the binding you provide.

For the input type i, you can use NumPadUnlocked or NumPadLocked.

wildNumPad' :: (NumPadPosition i, XKeyInput i, Describable i, Ord i, Enum i, Bounded i) => (Indicator ActiveWindow i -> Binding ActiveWindow i) -> IO () Source #

A more flexible version of wildNumPad. It passes you an Indicator, and uses the Binding you return as-is.

Re-exports

From basic modules

data Text #

A space efficient, packed, unboxed Unicode text type.

Instances

Instances details
Hashable Text 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSalt :: Int -> Text -> Int #

hash :: Text -> Int #

IsGValue (Maybe Text) 
Instance details

Defined in Data.GI.Base.GValue

type Item Text 
Instance details

Defined in Data.Text

type Item Text = Char

From WindBind.X11

data Window #

Instances

Instances details
Eq Window 
Instance details

Defined in WildBind.X11.Internal.Window

Methods

(==) :: Window -> Window -> Bool #

(/=) :: Window -> Window -> Bool #

Ord Window 
Instance details

Defined in WildBind.X11.Internal.Window

Show Window 
Instance details

Defined in WildBind.X11.Internal.Window

From WildBind.Indicator

data Indicator s i #

class NumPadPosition a where #

Methods

toNumPad :: a -> NumPadLocked #

Instances

Instances details
NumPadPosition NumPadLocked 
Instance details

Defined in WildBind.Indicator

Methods

toNumPad :: NumPadLocked -> NumPadLocked #

NumPadPosition NumPadUnlocked 
Instance details

Defined in WildBind.Indicator

Methods

toNumPad :: NumPadUnlocked -> NumPadLocked #

updateDescription :: Indicator s i -> i -> ActionDescription -> IO () #

setPresence :: Indicator s i -> Bool -> IO () #

quit :: Indicator s i -> IO () #