Giter Site home page Giter Site logo

zawataki / ke-complex_modifications Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pqrs-org/ke-complex_modifications

0.0 1.0 0.0 17.49 MB

Karabiner-Elements complex_modifications rules

Home Page: https://pqrs.org/osx/karabiner/complex_modifications/

License: The Unlicense

Makefile 0.08% Ruby 19.51% HTML 77.23% Shell 0.32% Vue 2.76% JavaScript 0.09%

ke-complex_modifications's Introduction

Build Status

KE-complex_modifications

complex_modifications for Karabiner-Elements.

https://pqrs.org/osx/karabiner/complex_modifications/

Add rules

  1. Put a .rb (or .erb) template file into src/json. (Or put a .json file into docs/json directly.)

  2. (Optional) Put extra description file into docs/extra_descriptions.

  3. Add the following json into docs/groups.json > files.

    {
      "path": "json/your_awesome_configuration.json", // required
      "extra_description_path": "extra_descriptions/your_awesome_configuration.html" // optional
    },
  4. Run make command on Terminal.
    If you've put .rb (or .erb) source file into src/json, formatted json file will be auto generated in the docs/json/your_awesome_configuration.json.

    make

complex_modifications documents

https://pqrs.org/osx/karabiner/json.html

Testing complex_modifications webpage on local server

docs/index.html does not work properly if you open it via file://....
Launch a local web server by make server in terminal and open http://localhost:8000.
(You can quit the local web server by the control-c shortcut in terminal.)
Before run make server, make sure you've run make command to auto generate docs/dist.json file.

Karabiner-Elements cannot import the json from the local web server due to the no https connection between local web server.
Please import the json via file copy. (See Test your own rules.)

Testing your own rules

  1. Copy a json file to ~/.config/karabiner/assets/complex_modifications.
    cp docs/json/your_awesome_configuration.json ~/.config/karabiner/assets/complex_modifications
  2. Import rules from Karabiner-Elements Preferences.
    Karabiner-Elements Preferences > Complex Modifications > Rules > Add rule

How to publish your own rules

If you want to publish your own rules into complex_modification repository, follow this step.

  1. Fork this repository to your github account.

  2. Update or add new rules by following Add rules section. Don't forget to run make

  3. Stage modified files (git add) and commit it (git commit)

    NOTE : The make command will auto generate docs/dist.json file. But do not stage docs/dist.json file.
    (docs/dist.json file is already ignored by .gitignore)

  4. Push to your forked repository.

  5. Click "New Pull Request" button, then the maintainer will review your commit.


Karabiner-Elements Usage

Import file from another site

  1. Put a json file to your site.
  2. Make a link karabiner://karabiner/assets/complex_modifications/import?url=<JSON_URL>.
  3. Open the link from web browser.

Updating the web application

Note: You don't need to update the web application if you just want to add new json.

If you want to modify the web application, the source code is in src/vuejs. Follow the instruction in src/vuejs/README.md.

ke-complex_modifications's People

Contributors

tekezo avatar apm1467 avatar suliveevil avatar kamykaze avatar jeebak avatar yqrashawn avatar bingocaller avatar jgosmann avatar alisonatwork avatar vinceau avatar riangray avatar tct2k avatar casamia918 avatar brunocbr avatar paragbaxi avatar alexeypopov avatar drazcmd avatar yonatanahituv avatar kamerat avatar jthedwalker avatar geoffreybooth avatar adamfeuer avatar ryuheechul avatar tockrock avatar megos avatar sshymko avatar nhblock avatar holymonson avatar mingaldrichgan avatar marcoamarelo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.