Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/go-xkg/xkg

User level X Keyboard Grabber
https://github.com/go-xkg/xkg

Last synced: 14 days ago
JSON representation

User level X Keyboard Grabber

Awesome Lists containing this project

README

        

xkg - X Keyboard Grabber
========================

[![GoDoc](https://godoc.org/github.com/go-xkg/xkg?status.png)](https://godoc.org/github.com/go-xkg/xkg)

## Installation

go get gopkg.in/xkg.v0

## Usage example:

```go
package main

import (
"fmt"
"gopkg.in/xkg.v0"
)

func main() {
var keys = make(chan int, 100)

go xkg.StartXGrabber(keys)

for {
keycode := <-keys

if key, ok := xkg.KeyMap[keycode]; ok {
fmt.Printf("[%s]", key)
}
}
}
```

## License

The license of the project is [The MIT License (MIT)](https://github.com/henriquemenezes/xkg/blob/master/LICENSE).