Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
2
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

@masato1230

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

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": [
    {
      "description": "caps lock with shift + caps lock",
      "manipulators": [
        { "type": "basic",
          "from": {
            "key_code": "left_command",
            "modifiers": {
              "mandatory": [ "left_shift" ],
              "optional": [ "any" ]
            }
          },
          "to": [
            {
              "key_code": "caps_lock"
            }
          ]
        }
      ]
    }
  ]
}

設定した項目が出てくるので、「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

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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
2
Help us understand the problem. What are the problem?