Skip to content

Instantly share code, notes, and snippets.

@atu4403
Last active December 7, 2020 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atu4403/683f580f8464a0b9f8eefd1e13300604 to your computer and use it in GitHub Desktop.
Save atu4403/683f580f8464a0b9f8eefd1e13300604 to your computer and use it in GitHub Desktop.
Karabiner-Elements 設定項目

hyper_plugin_atu4403

注意: CapsLock to Hyper/Escapeが有効になっていないと使用できませんので先に入れて下さい。

karabiner-elements-complex_modifications

Karabiner-Elementsの設定方法

  1. 右のDownload ZIPからダウンロード
  2. Karabiner-Elementsを開くと設定画面が出るのでMiscタブを開き、右下のOpen config folderを押す
  3. finderが開くので1のjsonファイルをassets/complex_modifications/に配置する
  4. 2の設定画面に戻り、Profilesタブを開きテスト用プロファイルを作る。selectを押して選択
  5. Complex modificationsタブを開きadd ruleから追加する

機能紹介

Hyper Navigation

vimのhjklではなくjiklに移動と選択をアサインします。

移動例: capslock+i 上移動

選択例: capslock+左shift+i 上選択

Hyper Control

ctrl+actrl+eだけcapslock+acapslock+eにアサインしています。

Hyper ScreenShot

capslock+3で全画面スクリーンショット、capslock+4で選択範囲スクリーンショットを取ります。 保存ではなくクリップボードにコピーされますので、そのままqiitaやtwitterの投稿画面でpasteできます。

{
"title": "Capslock Enhancement Plugin by atu4403",
"author": "atu4403",
"rules": [
{
"description": "Hyper Navigation atu4403 edition",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_shift",
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_shift",
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "down_arrow",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"left_shift",
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "up_arrow",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_shift",
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Hyper Control atu4403 edition",
"manipulators": [
{
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "e",
"modifiers": [
"left_control"
]
}
],
"type": "basic"
}
]
},
{
"description": "Hyper ScreenShot atu4403 edition",
"manipulators": [
{
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "3",
"modifiers": [
"left_control",
"left_shift",
"left_command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"right_command",
"right_control",
"right_shift",
"right_option"
]
}
},
"to": [
{
"key_code": "4",
"modifiers": [
"left_control",
"left_shift",
"left_command"
]
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment