Comments (6)
ping !
from gokurakujoudo.
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.
@yqrashawn Can I ask why there are 2 sim rules?
I somehow expected it to be only the latest one
from gokurakujoudo.
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.
- a rule to set
o_layer
to 1 and inserta
if pressedot
. - a rule to insert
a
if already ino_layer
andt
pressed.
from gokurakujoudo.
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.
fixed in v0.3.0
from gokurakujoudo.
Related Issues (20)
- Typo in tutorial "Command a to Control 1" example: missing ":rules" and "[]" HOT 1
- Broken links in tutorial: from and to section
- zsh: bad CPU type in executable: goku HOT 1
- setrlimit to increase file descriptor limit failed, errno 22
- [Feature Request] Leader Key to have much more shortcuts near homerow
- Allow a..z ranges in similar rules
- Hold l for hyphen HOT 1
- Send key_up immediately
- ## not working with custom tos: {}
- How to overwrite goku.log file each time goku command executes?
- Force up_key events to occur after the modifier has been pressed?
- Yabai - function with arguments HOT 2
- How can I add multiple key presses after running a shell script?
- Perf issue caused by sim rule
- device specific rules and misc issues HOT 1
- Using `pointer_button` as a `from` causes `NullPointerException`
- I want to say that...
- Generating `karabiner.json` from scratch?
- Goku not working HOT 2
- Working in conjunction with tap danced keys
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gokurakujoudo.