Sha256: 3b6e656ea887c39a5aeb94fe91d3a573036dbe4ad36a5b16c535d4e83e7806e2
Contents?: true
Size: 1.67 KB
Versions: 1
Compression:
Stored size: 1.67 KB
Contents
# Dotremap Lightweight configuration DSL for [KeyRemap4MacBook](https://pqrs.org/osx/karabiner/index.html) ## Installation ````bash $ gem install dotremap ``` ## Usage ### 1. Create ~/.remap ```rb # ~/.remap item "Control+PNBF to Up/Down/Left/Right", not: "TERMINAL" do remap "C-p", to: "Up" remap "C-n", to: "Down" remap "C-b", to: "Left" remap "C-f", to: "Right" end ``` ### 2. Execute dotremap command ```bash $ dotremap ``` It will replace KeyRemap4MacBook's private.xml with compiled ~/.remap: ```xml <?xml version="1.0"?> <root> <item> <name>Control+PNBF to Up/Down/Left/Right</name> <identifier>remap.control_pnbf_to_up_down_left_right</identifier> <not>TERMINAL</not> <autogen>__KeyToKey__ KeyCode::P, VK_CONTROL, KeyCode::CURSOR_UP</autogen> <autogen>__KeyToKey__ KeyCode::N, VK_CONTROL, KeyCode::CURSOR_DOWN</autogen> <autogen>__KeyToKey__ KeyCode::B, VK_CONTROL, KeyCode::CURSOR_LEFT</autogen> <autogen>__KeyToKey__ KeyCode::F, VK_CONTROL, KeyCode::CURSOR_RIGHT</autogen> </item> </root> ``` ### 3. Reload private.xml and update config You have to reload private.xml to activate compiled configurations.  ## Example I'm sorry but currently this software is not well documented. Please see [example.rb](https://github.com/k0kubun/dotremap/blob/master/example.rb) to learn how to use. ## Contributing 1. Fork it ( https://github.com/k0kubun/dotremap/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dotremap-0.0.1 | README.md |