https://github.com/kui/rbindkeys
  
  
    key remap with ruby 
    https://github.com/kui/rbindkeys
  
        Last synced: 6 months ago 
        JSON representation
    
key remap with ruby
- Host: GitHub
- URL: https://github.com/kui/rbindkeys
- Owner: kui
- License: mit
- Created: 2012-04-21T21:44:36.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-03-09T14:36:44.000Z (over 9 years ago)
- Last Synced: 2024-08-04T02:11:03.830Z (about 1 year ago)
- Language: Ruby
- Size: 120 KB
- Stars: 30
- Watchers: 4
- Forks: 5
- Open Issues: 5
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
README
          # rbindkeys
a key remapper, which is configurable in ruby, for Linux and X Window System
## Installation
Add this line to your application's Gemfile:
	gem 'rbindkeys'
And then execute:
	$ bundle
Or install it yourself as:
	$ gem install rbindkeys
## Usage
1. `rbindkeys -e > ~/.rbindkeys.rb`
2. edit `~/.rbindkeys.rb`
3. select a keyboard device (see `sudo rbindkeys --evdev-list`)
4. `sudo rbindkeys /dev/input/event2` if you selected "/dev/input/event2"
   as a target keyboard
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
## TODO
* write documents and publish on rubygem.org
* a daemonize script
* remove @two_storoke and add PrefixBindResolver class
* change BindResolver on input method system
* simplify config file (e.g. `bind_key [:ctrl, :m], :enter`, `bind_key "ctrl+m", "enter"` )
* integrate ibus controller (e.g. `bind_key "alt-grave", "toggle_ibus"` )
* notification when active a prefix key, changing ibus status, etc..
* the LED manipulation does not work for bluetooth devices
* fix bug
	* the enter key cannot be release when `rbindkey` is executed
## Other Configurable Key Remappers For Linux
* [x11keymacs](http://yashiromann.sakura.ne.jp/x11keymacs/index-en.html)
* [xfumble](http://endoh-namazu.tierra.ne.jp/xfumble/)
* [私家版 窓使いの憂鬱 Linux & Mac (Darwin) 対応版](http://www42.tok2.com/home/negidakude/)