New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App specific settings possible? #808
Comments
Looking for this too. |
it seems supported now
|
@jixiuf Yes, looks like the |
You can copy this example into ~/.config/karabiner/assets/complex_modifications/windows-binding.json Got to karabiner preferences->complex Modifications->Add rule and press enable on it. You can modify it to your liking but make sure you run it through a json validator first.
|
Yupp, already done it and it works perfectly :-) |
This is awesome. Thank you. I have it running in Karibiner elements. Can you please tell me how I would tweak it so that it only works when typing from within Teamviewer? |
I was given a solution to switch the command and control keys only using team viewer. It is here: |
It looks like there is no way to define |
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. |
Could we possibly re-open this to address @Palisand's comment? It's a huge pain to copy the Even better, allow a top-level Even better, let the inner |
I agree a GUI window to modify this will be great. But IMO, I don't think this will be implemented soon as there a couple of serious bugs to be fixed. Meanwhile, you can use Ruby helper scripts [1], or Goku to simplify writing config. Ruby scripts are probably more beginner-friendly. Check [1] https://github.com/pqrs-org/KE-complex_modifications/tree/master/src/lib |
Oh no, I'm fine without a GUI. What I meant was to remove the need to have the same condition duplicated superfluously, i.e. {
"title": "My key combo with lots of duplicated code that isn't user friendly",
"rules": [
{
"description": "I'm not following the DRY principle :(",
"manipulators": [
{
"type": "basic",
"from": {},
"to": [],
"conditions": [
"duplicate_condition_objects"
]
},
{
"type": "basic",
"from": {},
"to": [],
"conditions": [
"duplicate_condition_objects"
]
}
]
}
]
} would be replaced with {
"title": "My key combo that is user friendly",
"rules": [
{
"description": "Yay, I'm following the DRY principle!",
"conditions": [
"unique_condition_objects"
],
"manipulators": [
{
"type": "basic",
"from": {},
"to": []
},
{
"type": "basic",
"from": {},
"to": []
}
]
}
]
} Even better, we could simultaneously replace the restrictive, non-extensible manipulator priority with one that is very extensible. (I imagine that to implement the first, this format would also have to be implemented, but they're basically the same thing when you think about it.) {
"title": "My key combo that is SUPER user friendly",
"conditions": [
"default conditions to apply to all rules"
],
"rules": [
{
"description": "Wow, this is both DRY and way easier to read!",
"manipulators": [
"manipulators without unnecessary code duplication"
]
},
{
"description": "Oh cool, I can keep the global rules that I want and delete the ones I don't!",
"conditions": [
"Conditions to only apply to this rule's manipulators.",
"Maintains global, root-level rules",
"or overrides them if applicable."
],
"manipulators": [
"yay I'm not duplicating the global rules",
"nor do I have to add a superfluous frontmost_application_unless",
"(or similar) conditions to every single entry I contain!",
{
"type": "Even my custom manipulator is easier to write",
"from": {},
"to": [],
"conditions": [
"Extra condition to add only for me.",
"Alternatively, override the global rule(s) I don't want",
"while keeping the rest of them.",
"Alternatively, override the rule-level rules",
"so the other rules don't have to add",
"_unless entries."
]
}
]
}
]
} This would be an incredibly better way to write rules/conditions, especially since the entries' contents have to be written manually. It also means that similar manipulators can be grouped into one rule instead of spreading their logic across multiple rules (e.g. |
That's nice! :-) pinging @tekezo. |
+100500 @dPowNextdoor |
FYI I just created this issue that would help solve the pain points we've been discussing. Feel free to comment/upvote to attract greater attention from the devs! |
Is there a way to implement App-specific settings to change keys?
Thanks
The text was updated successfully, but these errors were encountered: