Git Product home page Git Product logo

Comments (6)

materliu avatar materliu commented on June 19, 2024

ping !

from gokurakujoudo.

yqrashawn avatar yqrashawn commented on June 19, 2024

Same problem for conditions in simlayer.

{
    :applications {:iterm  ["^com\\.googlecode\\.iterm2$"]}
    :simlayers {:o_layer {:key :o}}
    :main [
        {:des "testing" :rules [:o_layer
            [:t :a :iterm]
            [:t :b :!iterm]
        ]}
    ]
}

the "bundle_identifiers" : [ "^com\\.googlecode\\.iterm2$" ] should be in both sim rules.

{
          "type" : "basic",
          "parameters" : {
            "basic.simultaneous_threshold_milliseconds" : 250
          },
          "to" : [ {
            "set_variable" : {
              "name" : "o_layer",
              "value" : 1
            }
          }, {
            "key_code" : "a"
          } ],
          "from" : {
            "simultaneous" : [ {
              "key_code" : "o"
            }, {
              "key_code" : "t"
            } ],
            "simultaneous_options" : {
              "detect_key_down_uninterruptedly" : true,
              "key_down_order" : "strict",
              "key_up_order" : "strict_inverse",
              "key_up_when" : "any",
              "to_after_key_up" : [ {
                "set_variable" : {
                  "name" : "o_layer",
                  "value" : 0
                }
              } ]
            }
          }
        }
{
          "from" : {
            "key_code" : "t"
          },
          "to" : [ {
            "key_code" : "a"
          } ],
          "conditions" : [ {
            "name" : "o_layer",
            "value" : 1,
            "type" : "variable_if"
          }, {
            "bundle_identifiers" : [ "^com\\.googlecode\\.iterm2$" ],
            "type" : "frontmost_application_if"
          } ],
          "type" : "basic"
        },

from gokurakujoudo.

lrusnac avatar lrusnac commented on June 19, 2024

@yqrashawn Can I ask why there are 2 sim rules?
I somehow expected it to be only the latest one

from gokurakujoudo.

yqrashawn avatar yqrashawn commented on June 19, 2024

The simlayer is a layer that with a simultaneous trigger.
Say we define a simlayer named o_layer and map t to a in it.

To karabiner that means two rules.

  1. a rule to set o_layer to 1 and insert a if pressed ot.
  2. a rule to insert a if already in o_layer and t pressed.

from gokurakujoudo.

seeM avatar seeM commented on June 19, 2024

With current behaviour, you have to press ot twice in a non-iterm application for it to register as b, the first time registers as a. Is that also due to the bug in this comment?

I'm using the :same_wind_app idea from your dotfiles, and you have to press the app launch key twice when inside the app to switch between windows.

from gokurakujoudo.

yqrashawn avatar yqrashawn commented on June 19, 2024

fixed in v0.3.0

from gokurakujoudo.

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.