https://github.com/samccone/count-yourself
https://github.com/samccone/count-yourself
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/samccone/count-yourself
- Owner: samccone
- Created: 2012-03-14T19:31:40.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-18T17:35:54.000Z (over 14 years ago)
- Last Synced: 2024-04-15T12:21:59.327Z (about 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 188 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Overview
=========
Finds a keyboard device and monitors for ACCESS events
When access events are fired, the user's MAC address with a keyboard ACCESS count is piped through `netcat`
CLIENT For Linux:
-----------
Will need su access (or `sudo`) to monitor the `/dev/input/event*`
Additionally, the `inotify-tools` package needs to be installed
sudo apt-get install inotify-tools
CLIENT For OS X:
-----------
sudo osx_logger_bin
If you need to recompile from the `osx_logger.c` file, compile with the following command
gcc -Wall -o osx_logger osx_logger.c -framework ApplicationServices
SERVER:
-----------
The "server" should be running `nc -lk `
It will receive an event from a client at most every 5 seconds. If the client does not have any events to report, no message is sent. Otherwise, the format of the message is:
|
* TODO Get this working on Apple OS X
* http://danielbeard.wordpress.com/2010/10/29/listening-for-global-keypresses-in-osx/
* modify osx_logger.c to accept an input param that contains the MAC address. then client.sh can call it with the MAC
* TODO Decode key pressed, and send character combination instead
* TODO Weigh keys distance from the home row and send value along with character
* TODO Record mouse clicks
* TODO Rewrite this key capture as editor specific plugin (ViM, Emacs, Gedit, ST2, etc)