Karabiner-Elements

์‚ฌ์šฉ์ž ์ •์˜ ๊ทœ์น™ ์ถ”๊ฐ€

json ํ™•์žฅ์ž์˜ ํŒŒ์ผ๋กœ Rule ์„ค์ •์„ ์ž‘์„ฑํ•˜์—ฌ Karabiner-Elements์— ์‚ฌ์šฉ์ž ์ •์˜ ๊ทœ์น™์„ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ๋‹ค.

  • ๋””๋ ‰ํ† ๋ฆฌ: ~/.config/karabiner/assets/complex_modifications

  • ํ™œ์„ฑํ™”: Complex Modifications > Rules ์„ค์ •์—์„œ Add rule์„ ํ†ตํ•ด ํ™œ์„ฑํ™”

์„ค์ •

  • ๋ณ€๊ฒฝ ํ‚ค

    • from: ๋ณ€๊ฒฝ ์ „ ํ‚ค ์„ค์ •

    • to: ๋ณ€๊ฒฝ ํ›„ ํ‚ค ์„ค์ •

  • ์ž…๋ ฅ ์†Œ์Šค ์กฐ๊ฑด

    • input_source_if: ํŠน์ • ์ž…๋ ฅ ์†Œ์Šค(์–ธ์–ด)์ผ ๋•Œ๋งŒ ๊ทœ์น™์ด ์ ์šฉ๋˜๋„๋ก ์„ค์ •

  • ํ™œ์„ฑํ™” ๊ทœ์น™

    • frontmost_application_if: ํŠน์ • ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์ด ํ™œ์„ฑํ™”๋˜์–ด ์žˆ์„ ๋•Œ๋งŒ ๊ทœ์น™์ด ์ ์šฉ๋˜๋„๋ก ์„ค์ •

์˜ˆ์‹œ

// ํ•œ๊ธ€ ์ž…๋ ฅ ์‹œ ์›ํ™”(`โ‚ฉ`) ๊ธฐํ˜ธ๋ฅผ Grave Accent(\`)๋กœ ๋ณ€๊ฒฝ
{
  "title": "Change Won (โ‚ฉ) to grave accent (`) in IntelliJ",
  "rules": [
    {
      "description": "Change Won (โ‚ฉ) to grave accent (`) in Korean layout for IntelliJ.",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "grave_accent_and_tilde",
            "modifiers": {
              "optional": [
                "any"
              ]
            }
          },
          "to": [
            {
              "key_code": "grave_accent_and_tilde",
              "modifiers": [
                "option"
              ]
            }
          ],
          "conditions": [
            {
              "type": "frontmost_application_if",
              "bundle_identifiers": [
                "^com\\.jetbrains\\.intellij$"
              ]
            },
            {
              "type": "input_source_if",
              "input_sources": [
                {
                  "language": "ko"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

// ์‹ค์ˆ˜๋กœ ๋ˆ„๋ฅด๊ธฐ ์‰ฌ์šด ์‹œ์Šคํ…œ ๋‹จ์ถ•ํ‚ค๋ฅผ ๋น„ํ™œ์„ฑํ™”ํ•˜์—ฌ ์›์น˜ ์•Š๋Š” ๋™์ž‘ ๋ฐฉ์ง€
{
  "title": "Disable Unwanted Command-Shortcuts",
  "rules": [
    {
      "description": "Disable COMMAND-H (Hide Window)",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "h",
            "modifiers": {
              "mandatory": [
                "command"
              ]
            }
          }
        }
      ]
    },
    {
      "description": "Disable COMMAND-M (Minimize)",
      "manipulators": [
        {
          "type": "basic",
          "from": {
            "key_code": "m",
            "modifiers": {
              "mandatory": [
                "command"
              ]
            }
          }
        }
      ]
    }
  ]
}

Last updated