Git Product home page Git Product logo

karabiner-complex-rules-generator's Introduction

Forks Stargazers Issues


Karabiner Complex Rules Generator

View Demo · Report Bug · Request Feature · Send a Pull Request

Table of Contents

About The Project

Product Name Screen Shot

An open-source web app to help make and configure karabiner complex modification files!

Built With

  • ReactJS
  • Material UI

Getting Started

Prerequisites

  • yarn
npm install yarn -g

Installation

  1. Clone the project
git clone https://github.com/genesy/karabiner-complex-rules-generator.git
  1. Install NPM packages
yarn install

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are extremely appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GNUv3 License. See LICENSE for more information.

Contact

Gene Sy - @GeneSy - [email protected]

Project Link: https://github.com/genesy/karabiner-complex-rules-generator/

Acknowledgements

karabiner-complex-rules-generator's People

Contributors

chris-slade avatar genesy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

karabiner-complex-rules-generator's Issues

Crashes when clearing input

Entire application crashes and all information is lost when removing input text for key_code or mandatory/optional modifiers, and hitting backspace until all the text is cleared.

F13 to F24 doesn't exist

We can only use F1 to F12.
But sometimes we need f13~f24.

Even though pasting after editing in text editor, it doesn't work.

missing page_up and page_down from Key Codes

As per title, page_up and page_down keys missing from key code list.
I wanted to remap command+page_down to shift+command+4
The tool got me 99% of the way there (thanks!) but needed to edit json manually to assign to page_down:
"description": "ctrl-pagedown to printscreen",
"manipulators": [
{
"from": {
"key_code": "page_down",
"modifiers": {
"mandatory": [
"left_control"
...

device_if identifier entry error

device_if and similar conditions seem to fail because any identifiers are recorded as strings when entered through the interface instead of as numbers.

Pasting existing modifications crashes app

Pasting an existing & valid JSON file content into the "Paste existing modifications here to edit" text field currently doesn't seem to do anything immediately after pasting.
After clicking somewhere on the background (because I couldn't find any "Load" or sim. button) the app crashed (completely blank page).

This is the working JSON file I pasted:

{
  "title": "Home and End",
  "rules": [
    {
      "description": "Home to Command Left",
      "manipulators": [
        {
          "type": "basic",
          "from": {
              "key_code": "home"
            },
          "to": [
            {
            "key_code": "left_arrow",
            "modifiers": "command"
            }
          ]
        }
      ]
    },
    {
      "description": "End to Command Right",
      "manipulators": [
        {
          "type": "basic",
          "from": {
              "key_code": "end"
            },
          "to": [
            {
            "key_code": "right_arrow",
            "modifiers": "command"
            }
          ]
        }
      ]
    }
  ]
}

remove keycode causes app crash

see this gif:
画面収録 2020-09-21 11 02 01 mov

Reproduced at

  • Safari 14.0 with macOS Catalina 10.15.6
  • Firefox Nightly 82.0a1 (2020-09-19) with macOS Catalina 10.15.6

multitouch_extension_finger_count_total seems to put value in quotation marks

Hello, I am not a programmer so without your generator, I wouldn't have been able to successfully make any complex rules. For that, thank you very much!

Here is what happened:

MacOS version: 10.15.4
Karabiner-Elements version: 12.9.0
Mac Hardware: MacBook Pro (Retina, 13-inch, Early 2015)
Mac Keyboard Hardware: built-in keyboard

Desired Rule: Remap left_arrow to right_control if Emacs is the active app AND there are no fingers on the trackpad.

Issue: Complex Rules Generator puts double quotes around the value for the variable "multitouch_extension_finger_count_total".

Solved: Installed the rule anyway then edited my karabiner.json file to remove the double quotes.

Generator output attached
left_arrow_to_control_in_emacs_unless_touching_trackpad.pdf

Is this website still maintained?

It's a cool website, but I'm wondering if it's still maintained? I ran into a bug and see some PR's people have made that haven't been merged in.

Please Respond

Hi Gene. This is Draco, from the ACNH.Guide discord server. I can't seem to find any other way to reach you. Please respond so we can talk.

Device Identifier properties generated as strings instead of numbers

Nice tool!

As in the title- the resulting JSON has the vendor ID, product ID, and location ID wrapped in quotes to be strings. The rules with "type": "device_if" made by karabiner-complex-rules-generator were ignored by Karabiner on my machine. After manually editing my imported rules to remove the quotes, the rules started to work

Actual:

{
    "type": "device_if",
    "identifiers": [
        {
            "vendor_id": "5426",
            "product_id": "83"
        }
    ]
}

Expected:

{
    "type": "device_if",
    "identifiers": [
        {
            "vendor_id": 5426,
            "product_id": 83
        }
    ]
}

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.