是否可以仅针对特定的键盘布局(karabiner)启用规则? [英] Is it possible to enable rules only for specific keyboard layout (karabiner)?

查看:151
本文介绍了是否可以仅针对特定的键盘布局(karabiner)启用规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Karabiner的复杂修改设置下启用了多个规则,例如Emacs key bindings.

On Karabiner I am enabling multiples rules under its complex modifications setup, such as Emacs key bindings.

我想知道是否有可能仅针对特定键盘布局(例如U.S.)使用这些启用规则,并在我切换到其他键盘布局时自动禁用这些规则.

I was wondering is it possible to use those enables rules only for a specific keyboard layout such as U.S. and automatically disable those rules when I switch to an another keyboard layout.

推荐答案

无法将现有导入的规则转换为特定于设备的规则.但是,如果您制定或修改这些规则,则可以.

It's not possible to turn existing imported rules to be device specific. However if you make or modify those rules you can.

https://pqrs.org/osx/karabiner/json .html#condition-definition-device

如何制定自己的规则的要点是在内部制作一个json文件

The gist of how to make your own rules is making a json file inside

~/.config/karabiner/assets/complex_modifications/

您可以根据需要命名json文件.您甚至可以根据需要从其他地方进行符号链接.

You can name the json file whatever you want. you can even symlink it from another place if you prefer.

因此,如果您有特定于设备的规则,请将其复制粘贴到json文件中,然后将其从type: "basic"修改为type: "device_if",并填写设备ID等,您可以从Karabiner获得设备"标签下的EventViewer应用.

So if you have a rule you want to make device specific, copy paste it inside your json file and modify it from type: "basic" to to type: "device_if" and fill up your device id etc. which you can get from the Karabiner EventViewer app under devices tab.

这篇关于是否可以仅针对特定的键盘布局(karabiner)启用规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆