Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/go-xkg/xkg
- Owner: go-xkg
- License: mit
- Created: 2015-01-05T01:04:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-08T04:01:03.000Z (almost 10 years ago)
- Last Synced: 2024-10-25T05:24:10.130Z (15 days ago)
- Language: Go
- Homepage: https://godoc.org/github.com/go-xkg/xkg
- Size: 344 KB
- Stars: 56
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- zero-alloc-awesome-go - xkg - X Keyboard Grabber. (Miscellaneous / Uncategorized)
- awesome-go - xkg - User level X Keyboard Grabber - ★ 36 (Miscellaneous)
- awesome-go-extra - xkg - 01-05T01:04:43Z|2015-01-08T04:01:03Z| (Microsoft Office / Uncategorized)
- awesome-go-zh - xkg
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 mainimport (
"fmt"
"gopkg.in/xkg.v0"
)func main() {
var keys = make(chan int, 100)go xkg.StartXGrabber(keys)
for {
keycode := <-keysif 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).