Giter Site home page Giter Site logo

Comments (6)

Rubenstein29 avatar Rubenstein29 commented on June 17, 2024

Up please

from ke-complex_modifications.

yqrashawn avatar yqrashawn commented on June 17, 2024

the

 "modifiers": {
              "optional": [
                "caps_lock"
              ]
            }

in from means this modification works when caps_lock pressed as well, just remove these lines.

from ke-complex_modifications.

Rubenstein29 avatar Rubenstein29 commented on June 17, 2024

Thanks for your answer but I deleted it but didn't work or I'm a complete newbie and I missed something. Here is the code :

  "title": "Bite bite bite",
  "rules": [
    {
      "description": "Exchange numbers and symbols (1234567890 and !@#$%^&*())",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "1"
          },
          "to": [
            {
              "key_code": "1",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "2"
          },
          "to": [
            {
              "key_code": "2",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "3"
          },
          "to": [
            {
              "key_code": "3",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "4"
          },
          "to": [
            {
              "key_code": "4",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "5"
          },
          "to": [
            {
              "key_code": "5",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "6"
          },
          "to": [
            {
              "key_code": "6",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "7"
          },
          "to": [
            {
              "key_code": "7",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "8"
          },
          "to": [
            {
              "key_code": "8",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "9"
          },
          "to": [
            {
              "key_code": "9",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "0"
          },
          "to": [
            {
              "key_code": "0",
              "modifiers": [
                "left_shift"
              ]
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "1",
            "modifiers": {
              "mandatory": [
                "shift"
              ],
              "optional": [
                "caps_lock"
              ]
            }
          },
          "to": [
            {
              "key_code": "1"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "2",
            "modifiers": {
              "mandatory": [
                "shift"
              ],
              "optional": [
                "caps_lock"
              ]
            }
          },
          "to": [
            {
              "key_code": "2"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "3",
            "modifiers": {
              "mandatory": [
                "shift"
              ],
              "optional": [
                "caps_lock"
              ]
            }
          },
          "to": [
            {
              "key_code": "3"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "4",
            "modifiers": {
              "mandatory": [
                "shift"
              ],
              "optional": [
                "caps_lock"
              ]
            }
          },
          "to": [
            {
              "key_code": "4"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "5",
            "modifiers": {
              "mandatory": [
                "shift"
              ],
              "optional": [
                "caps_lock"
              ]
            }
          },
          "to": [
            {
              "key_code": "5"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "6",
            "modifiers": {
              "mandatory": [
                "shift"
              ],
              "optional": [
                "caps_lock"
              ]
            }
          },
          "to": [
            {
              "key_code": "6"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "7",
            "modifiers": {
              "mandatory": [
                "shift"
              ],
              "optional": [
                "caps_lock"
              ]
            }
          },
          "to": [
            {
              "key_code": "7"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "8",
            "modifiers": {
              "mandatory": [
                "shift"
              ],
              "optional": [
                "caps_lock"
              ]
            }
          },
          "to": [
            {
              "key_code": "8"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "9",
            "modifiers": {
              "mandatory": [
                "shift"
              ],
              "optional": [
                "caps_lock"
              ]
            }
          },
          "to": [
            {
              "key_code": "9"
            }
          ]
        },
        {
          "type": "basic",
          "from": {
            "key_code": "0",
            "modifiers": {
              "mandatory": [
                "shift"
              ],
              "optional": [
                "caps_lock"
              ]
            }
          },
          "to": [
            {
              "key_code": "0"
            }
          ]
        }
      ]
    }
  ]
}

  

from ke-complex_modifications.

yqrashawn avatar yqrashawn commented on June 17, 2024

try this, you need to put this in rules.

                    {
                      "description": "Exchange numbers and symbols (1234567890 and !@#$%^&*())",
                      "manipulators": [
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "1"
                          },
                          "to": [
                            {
                              "key_code": "1",
                              "modifiers": [
                                "left_shift"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "2"
                          },
                          "to": [
                            {
                              "key_code": "2",
                              "modifiers": [
                                "left_shift"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "3"
                          },
                          "to": [
                            {
                              "key_code": "3",
                              "modifiers": [
                                "left_shift"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "4"
                          },
                          "to": [
                            {
                              "key_code": "4",
                              "modifiers": [
                                "left_shift"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "5"
                          },
                          "to": [
                            {
                              "key_code": "5",
                              "modifiers": [
                                "left_shift"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "6"
                          },
                          "to": [
                            {
                              "key_code": "6",
                              "modifiers": [
                                "left_shift"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "7"
                          },
                          "to": [
                            {
                              "key_code": "7",
                              "modifiers": [
                                "left_shift"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "8"
                          },
                          "to": [
                            {
                              "key_code": "8",
                              "modifiers": [
                                "left_shift"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "9"
                          },
                          "to": [
                            {
                              "key_code": "9",
                              "modifiers": [
                                "left_shift"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "0"
                          },
                          "to": [
                            {
                              "key_code": "0",
                              "modifiers": [
                                "left_shift"
                              ]
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "1",
                            "modifiers": {
                              "mandatory": [
                                "shift"
                              ]
                            }
                          },
                          "to": [
                            {
                              "key_code": "1"
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "2",
                            "modifiers": {
                              "mandatory": [
                                "shift"
                              ]
                            }
                          },
                          "to": [
                            {
                              "key_code": "2"
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "3",
                            "modifiers": {
                              "mandatory": [
                                "shift"
                              ]
                            }
                          },
                          "to": [
                            {
                              "key_code": "3"
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "4",
                            "modifiers": {
                              "mandatory": [
                                "shift"
                              ]
                            }
                          },
                          "to": [
                            {
                              "key_code": "4"
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "5",
                            "modifiers": {
                              "mandatory": [
                                "shift"
                              ]
                            }
                          },
                          "to": [
                            {
                              "key_code": "5"
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "6",
                            "modifiers": {
                              "mandatory": [
                                "shift"
                              ]
                            }
                          },
                          "to": [
                            {
                              "key_code": "6"
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "7",
                            "modifiers": {
                              "mandatory": [
                                "shift"
                              ]
                            }
                          },
                          "to": [
                            {
                              "key_code": "7"
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "8",
                            "modifiers": {
                              "mandatory": [
                                "shift"
                              ]
                            }
                          },
                          "to": [
                            {
                              "key_code": "8"
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "9",
                            "modifiers": {
                              "mandatory": [
                                "shift"
                              ]
                            }
                          },
                          "to": [
                            {
                              "key_code": "9"
                            }
                          ]
                        },
                        {
                          "type": "basic",
                          "from": {
                            "key_code": "0",
                            "modifiers": {
                              "mandatory": [
                                "shift"
                              ]
                            }
                          },
                          "to": [
                            {
                              "key_code": "0"
                            }
                          ]
                        }
                      ]
                   }

from ke-complex_modifications.

Rubenstein29 avatar Rubenstein29 commented on June 17, 2024

Really weird I tried it but doesn't work neither...

from ke-complex_modifications.

stale avatar stale commented on June 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from ke-complex_modifications.

Related Issues (20)

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.