kmonad-0.4.1: Advanced keyboard remapping utility

Copyright(c) David Janssen 2019
LicenseMIT
Maintainerjanssen.dhj@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

KMonad.Keyboard.IO.Linux.DeviceSource

Description

 
Synopsis

Documentation

deviceSource Source #

Arguments

:: HasLogFunc e 
=> KeyEventParser

The method by which to read and decode events

-> FilePath

The filepath to the device file

-> RIO e (Acquire KeySource) 

Open a device file

deviceSource64 Source #

Arguments

:: HasLogFunc e 
=> FilePath

The filepath to the device file

-> RIO e (Acquire KeySource) 

Open a device file on a standard linux 64 bit architecture

data KeyEventParser Source #

A KeyEventParser describes how to read and parse LinuxKeyEvents from the binary data-stream provided by the device-file.

decode64 :: ByteString -> Either String LinuxKeyEvent Source #

The KeyEventParser that works on my 64-bit Linux environment