kmonad-0.4.1: Advanced keyboard remapping utility

Copyright(c) David Janssen 2019
LicenseMIT
Maintainerjanssen.dhj@gmail.com
Stabilityexperimental
Portabilitynon-portable (MPTC with FD, FFI to Linux-only c-code)
Safe HaskellNone
LanguageHaskell2010

KMonad.Args.Types

Contents

Description

 
Synopsis

$bsc

type Parser = Parsec Void Text Source #

Parser's operate on Text and carry no state

newtype PErrors Source #

The type of errors returned by the Megaparsec parsers

$cfg

data CfgToken Source #

The CfgToken contains all the data needed to construct an AppCfg.

Constructors

CfgToken 

Fields

$but

data DefButton Source #

Button ADT

Constructors

KRef Text

Reference a named button

KEmit Keycode

Emit a keycode

KLayerToggle Text

Toggle to a layer when held

KLayerSwitch Text

Switch base-layer when pressed

KLayerAdd Text

Add a layer when pressed

KLayerRem Text

Remove top instance of a layer when pressed

KTapNext DefButton DefButton

Do 2 things based on behavior

KTapHold Int DefButton DefButton

Do 2 things based on behavior and delay

KTapHoldNext Int DefButton DefButton

Mixture between KTapNext and KTapHold

KTapNextRelease DefButton DefButton

Do 2 things based on behavior

KTapHoldNextRelease Int DefButton DefButton

Like KTapNextRelease but with a timeout

KAroundNext DefButton

Surround a future button

KMultiTap [(Int, DefButton)] DefButton

Do things depending on tap-count

KAround DefButton DefButton

Wrap 1 button around another

KTapMacro [DefButton]

Sequence of buttons to tap

KComposeSeq [DefButton]

Compose-key sequence

KPause Milliseconds

Pause for a period of time

KLayerDelay Int LayerTag

Switch to a layer for a period of time

KLayerNext LayerTag

Perform next button in different layer

KCommand Text

Execute a shell command

KTrans

Transparent button that does nothing

KBlock

Button that catches event

Instances
Show DefButton Source # 
Instance details

Defined in KMonad.Args.Types

$tls

type DefSettings = [DefSetting] Source #

A list of different DefSetting values

type DefAlias = [(Text, DefButton)] Source #

A mapping from names to button tokens

data DefLayer Source #

A layer of buttons

Constructors

DefLayer 

Fields

Instances
Show DefLayer Source # 
Instance details

Defined in KMonad.Args.Types

type DefSrc = [Keycode] Source #

A list of keycodes describing the ordering of all the other layers

$defio

data IToken Source #

All different input-tokens KMonad can take

Instances
Show IToken Source # 
Instance details

Defined in KMonad.Args.Types

data OToken Source #

All different output-tokens KMonad can take

Instances
Show OToken Source # 
Instance details

Defined in KMonad.Args.Types

$lenses

Reexports