Documentation ¶
Index ¶
- Constants
- Variables
- func ByteToString(k *Keyboard, b1 byte, b2 byte) string
- func DefaultHandle(k *Keys) error
- func DefaultLoader(k *Keys) error
- func DefaultLogger(k *Keys) error
- func DefaultSettings(k *Keys) error
- func GrabKeyChecked(c *xgb.Conn, win xproto.Window, mods uint16, key xproto.Keycode) error
- func Krror(err string) *keysError
- func MouseGrabChecked(c *xgb.Conn, win xproto.Window, mods uint16, button xproto.Button) error
- func MouseUngrabChecked(c *xgb.Conn, win xproto.Window, mods uint16, button xproto.Button)
- func ParseKeyInput(k *Keyboard, s string) (uint16, []xproto.Keycode, error)
- func ParseMouseInput(s string) (uint16, xproto.Button, error)
- func UngrabKeyChecked(c *xgb.Conn, win xproto.Window, mods uint16, key xproto.Keycode)
- type Activitable
- type Call
- type Chain
- type Chainable
- type Cmd
- type Commandable
- type Config
- type ConfigFn
- type Configuration
- type Detailable
- type Handle
- type KeyStore
- type Keyable
- type Keyboard
- type Keys
- type Loader
- type Settings
Constants ¶
Variables ¶
View Source
var ButtonParseError = Krror("Could not find a valid mouse button in the string '%s'. Button binding failed.").Out
View Source
var IgnoreMods []uint16 = []uint16{ 0, xproto.ModMaskLock, xproto.ModMask2, xproto.ModMaskLock | xproto.ModMask2, }
View Source
var KeyParseError = Krror("Could not find a valid keycode in the string '%s'. Key binding failed.").Out
View Source
var MalformedOrder = Krror("malformed order:\n%+v\n, must contain both keys & action").Out
View Source
var NoKey = Krror("there is no corresponding key for %+v").Out
View Source
var NotaSequence = Krror("is not a %s sequence: %s").Out
View Source
var ParseError = Krror("error parsing configuration: %s").Out
View Source
var UnMappable = Krror("could not get %s mapping: %v, unrecoverable.").Out
Functions ¶
func DefaultHandle ¶
func DefaultLoader ¶
func DefaultLogger ¶
func DefaultSettings ¶
func GrabKeyChecked ¶
func MouseGrabChecked ¶
func MouseUngrabChecked ¶
Types ¶
type Activitable ¶
type Chain ¶
type Chain interface { Detailable Commandable Activitable Keyable Chainable }
type Commandable ¶
type Config ¶
func DefaultConfig ¶
type Configuration ¶
type Detailable ¶
type KeyStore ¶
type KeyStore interface { Keyboard() *Keyboard Caller() x.Call Put(Call, Keyable) Get(x.Event) ([]Keyable, string, error) }
func NewKeyStore ¶
type Keys ¶
type Keys struct { Configuration *log.Logger *Settings Loader Handle // contains filtered or unexported fields }
func (*Keys) ConfigureChains ¶
func (*Keys) SignalHandler ¶
Click to show internal directories.
Click to hide internal directories.