add key terminal

This commit is contained in:
2026-04-02 09:48:54 +09:00
parent 7dd0d5d27f
commit 4b90037313
2 changed files with 281 additions and 0 deletions

View File

@@ -0,0 +1,280 @@
{
"profiles": [
{
"complex_modifications": {
"parameters": {
"basic.simultaneous_threshold_milliseconds": 25,
"basic.to_delayed_action_delay_milliseconds": 205,
"basic.to_if_alone_timeout_milliseconds": 710,
"basic.to_if_held_down_threshold_milliseconds": 205,
"mouse_motion_to_scroll.speed": 51
},
"rules": [
{
"description": "Cmd+1 open Finder",
"manipulators": [
{
"from": {
"key_code": "1",
"modifiers": {
"mandatory": ["command"],
"optional": ["any"]
}
},
"to": [{ "shell_command": "open -a 'finder'" }],
"type": "basic"
}
]
},
{
"description": "Cmd+Shift+z open Terminal",
"manipulators": [
{
"from": {
"key_code": "z",
"modifiers": {
"mandatory": ["command", "shift"],
"optional": ["any"]
}
},
"to": [{ "shell_command": "open -a 'terminal'" }],
"type": "basic"
}
]
},
{
"description": "ESC to disable IME",
"manipulators": [
{
"from": { "key_code": "escape" },
"to": [
{ "key_code": "escape" },
{ "key_code": "japanese_eisuu" }
],
"type": "basic"
}
]
},
{
"description": "C-j pass through + disable IME",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
},
"to": [
{ "key_code": "j", "modifiers": ["control"] },
{ "key_code": "japanese_eisuu" }
],
"type": "basic"
}
]
},
{
"description": "Cmd+Ctrl+g open Firefox",
"manipulators": [
{
"from": {
"key_code": "g",
"modifiers": {
"mandatory": ["command", "control"],
"optional": ["any"]
}
},
"to": [{ "shell_command": "open -a 'Firefox'" }],
"type": "basic"
}
]
},
{
"description": "Cmd+Ctrl+k open Passwords",
"manipulators": [
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["command", "control"],
"optional": ["any"]
}
},
"to": [{ "shell_command": "open -a passwords" }],
"type": "basic"
}
]
},
{
"description": "Shift+Enter to backslash+Enter (Terminal)",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.apple\\.Terminal$"
],
"type": "frontmost_application_if"
}
],
"from": {
"key_code": "return_or_enter",
"modifiers": {
"mandatory": ["shift"]
}
},
"to": [
{ "key_code": "international3" },
{ "key_code": "return_or_enter" }
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"identifiers": {
"is_keyboard": true,
"product_id": 656,
"vendor_id": 1452
},
"manipulate_caps_lock_led": false,
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "left_control" }]
},
{
"from": { "key_code": "right_command" },
"to": [{ "key_code": "japanese_eisuu" }]
},
{
"from": { "key_code": "right_option" },
"to": [{ "key_code": "japanese_kana" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"is_pointing_device": true,
"product_id": 45072,
"vendor_id": 1133
},
"manipulate_caps_lock_led": false
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 50455,
"vendor_id": 1133
},
"manipulate_caps_lock_led": false
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 45890,
"vendor_id": 1133
},
"manipulate_caps_lock_led": false,
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "left_control" }]
},
{
"from": { "key_code": "japanese_pc_nfer" },
"to": [{ "key_code": "japanese_eisuu" }]
},
{
"from": { "key_code": "japanese_pc_xfer" },
"to": [{ "key_code": "japanese_kana" }]
},
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_option" }]
},
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_command" }]
}
]
},
{
"identifiers": {
"is_keyboard": true,
"product_id": 641,
"vendor_id": 1452
},
"simple_modifications": [
{
"from": { "key_code": "caps_lock" },
"to": [{ "key_code": "left_control" }]
}
]
}
],
"fn_function_keys": [
{
"from": { "key_code": "f1" },
"to": [{ "key_code": "display_brightness_decrement" }]
},
{
"from": { "key_code": "f2" },
"to": [{ "key_code": "display_brightness_increment" }]
},
{
"from": { "key_code": "f3" },
"to": [{ "key_code": "mission_control" }]
},
{
"from": { "key_code": "f4" },
"to": [{ "key_code": "launchpad" }]
},
{
"from": { "key_code": "f5" },
"to": [{ "key_code": "illumination_decrement" }]
},
{
"from": { "key_code": "f6" },
"to": [{ "key_code": "illumination_increment" }]
},
{
"from": { "key_code": "f7" },
"to": [{ "key_code": "rewind" }]
},
{
"from": { "key_code": "f8" },
"to": [{ "key_code": "play_or_pause" }]
},
{
"from": { "key_code": "f9" },
"to": [{ "key_code": "fastforward" }]
},
{
"from": { "key_code": "f10" },
"to": [{ "key_code": "mute" }]
},
{
"from": { "key_code": "f11" },
"to": [{ "key_code": "volume_decrement" }]
},
{
"from": { "key_code": "f12" },
"to": [{ "key_code": "volume_increment" }]
}
],
"name": "New profile",
"selected": true,
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"keyboard_type": "jis",
"keyboard_type_v2": "jis"
}
}
]
}

1
.vimrc
View File

@@ -29,6 +29,7 @@ set undofile
set undodir=~/.vim/undo set undodir=~/.vim/undo
let g:autosave = 1 let g:autosave = 1
inoremap <C-j> <Esc>
nnoremap Q :q!<CR> nnoremap Q :q!<CR>
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')