7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

karabiner-Elementsを使ってshift + caps_lockで caps_lockを実現する方法 how to assign "shift + caps lock" to caps lock with karabiner-elements

Last updated at Posted at 2018-04-09

Windowsのように、shift押しながらcaps_lockを押さないと効かないようにしたかったので
このようにしました。
自分の場合、まずcaps_lockに左commandを割り当てていますので、その前提でお読みください。

I want to assign "shift + caps lock" to caps lock like windows.
In my case, I assigned casp_lock to left_command.
This article is written based on it.

スクリーンショット 2018-04-09 12.48.48.png

以下のディレクトリに任意の名前でファイルを作成
In Karabiner-elements, you can put your config file in this directory.
at first, create json file in this directory.

/Users/[ユーザー名]/.config/karabiner/assets/complex_modifications

以下の内容をコピペ
create a file and copy and paste below.

{
  "title": "caps lock",
  "rules": [
    {
      "manipulators": [
        {
          "description": "caps lock with shift + caps lock",
          "type": "basic",
          "from": {
            "key_code": "left_command",
            "modifiers": {
              "mandatory": [ "left_shift" ],
              "optional": [ "any" ]
            }
          },
          "to": [
            {
              "key_code": "caps_lock"
            }
          ]
        }
      ]
    }
  ]
}

Complex-modifications -> rulesにて、Add ruleクリックすると、先ほど作成したファイル名で設定した項目が出てくるので、「Enable」を押下
The item that you set appears in Complex Modification.
After clicking "Enable", the setting will be active.
スクリーンショット 2018-04-09 12.46.18.png

2021/10/06追記
スクリプトが動かなくなっていたので、修正しました。

参考:
Karabiner-Elementsの設定項目をまとめました @s-show
Karabiner-Elementの設定例について @s-show

7
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?