Last active
March 19, 2021 10:51
-
-
Save GINK03/7d646e1da20af7e51b30759f1b46d441 to your computer and use it in GitHub Desktop.
karabiner-element settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 50, | |
"basic.to_delayed_action_delay_milliseconds": 500, | |
"basic.to_if_alone_timeout_milliseconds": 1000, | |
"basic.to_if_held_down_threshold_milliseconds": 500, | |
"mouse_motion_to_scroll.speed": 100 | |
}, | |
"rules": [ | |
{ | |
"description": "gimpei kobayashi made.", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "i", | |
"modifiers": { | |
"mandatory": [ | |
"left_option" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"pointing_button": "button1" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "h", | |
"modifiers": { | |
"mandatory": [ | |
"left_option" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"mouse_key": { | |
"x": -3000 | |
} | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "l", | |
"modifiers": { | |
"mandatory": [ | |
"left_option" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"mouse_key": { | |
"x": 3000 | |
} | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "j", | |
"modifiers": { | |
"mandatory": [ | |
"left_option" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"mouse_key": { | |
"y": 3000 | |
} | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "k", | |
"modifiers": { | |
"mandatory": [ | |
"left_option" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"mouse_key": { | |
"y": -3000 | |
} | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "a", | |
"modifiers": { | |
"mandatory": [ | |
"left_control", | |
"left_option" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open '/System/Applications/Utilities/Activity Monitor.app'" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "s" | |
}, | |
{ | |
"key_code": "1" | |
} | |
], | |
"simultaneous_options": { | |
"key_up_order": "strict" | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 900 | |
}, | |
"to": [ | |
{ | |
"shell_command": "/opt/homebrew/bin/BluetoothConnector --connect 38-ec-0d-c0-66-16; /opt/homebrew/bin/SwitchAudioSource -s \"銀兵’s AirPods Pro\"; say \"スイッチ\"" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "s" | |
}, | |
{ | |
"key_code": "2" | |
} | |
], | |
"simultaneous_options": { | |
"key_up_order": "strict" | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 900 | |
}, | |
"to": [ | |
{ | |
"shell_command": "/opt/homebrew/bin/SwitchAudioSource -s \"LG Ultra HD\"; say \"スイッチ\"" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
}, | |
"simultaneous": [ | |
{ | |
"key_code": "s" | |
}, | |
{ | |
"key_code": "3" | |
} | |
], | |
"simultaneous_options": { | |
"key_up_order": "strict" | |
} | |
}, | |
"parameters": { | |
"basic.simultaneous_threshold_milliseconds": 900 | |
}, | |
"to": [ | |
{ | |
"shell_command": "/opt/homebrew/bin/BluetoothConnector --connect b8-f1-2a-e9-5e-68;/opt/homebrew/bin/SwitchAudioSource -s \"銀兵のAirPods\"; say \"スイッチ\"" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"option" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "osascript ~/.bin/launch_chrome_window.scpt" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "t", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"option" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "osascript ~/.bin/launch_iterm2_window.scpt" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "z", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"option" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "/opt/homebrew/bin/zzz" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "f", | |
"modifiers": { | |
"mandatory": [ | |
"left_control", | |
"left_option" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open ~" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "s", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"option" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open '/Applications/Safari.app'" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "t", | |
"modifiers": { | |
"mandatory": [ | |
"control", | |
"option" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open '/Applications/iTerm.app'" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
}, | |
"devices": [ | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 33, | |
"vendor_id": 1278 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": false, | |
"simple_modifications": [] | |
} | |
], | |
"fn_function_keys": [ | |
{ | |
"from": { | |
"key_code": "f1" | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "display_brightness_decrement" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f2" | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "display_brightness_increment" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f3" | |
}, | |
"to": [ | |
{ | |
"apple_vendor_keyboard_key_code": "mission_control" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f4" | |
}, | |
"to": [ | |
{ | |
"apple_vendor_keyboard_key_code": "spotlight" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f5" | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "dictation" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f6" | |
}, | |
"to": [ | |
{ | |
"key_code": "f6" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f7" | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "rewind" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f8" | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "play_or_pause" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f9" | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "fast_forward" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f10" | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "mute" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f11" | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "volume_decrement" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "f12" | |
}, | |
"to": [ | |
{ | |
"consumer_key_code": "volume_increment" | |
} | |
] | |
} | |
], | |
"name": "Default profile", | |
"parameters": { | |
"delay_milliseconds_before_open_device": 1000 | |
}, | |
"selected": true, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "caps_lock" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control" | |
} | |
] | |
} | |
], | |
"virtual_hid_keyboard": { | |
"country_code": 0, | |
"indicate_sticky_modifier_keys_state": true, | |
"mouse_key_xy_scale": 100 | |
} | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "/Applications/Google Chrome.app" | |
make new window | |
activate | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "iTerm2" | |
set newWindow to (create window with default profile) | |
tell current session of newWindow | |
write text "env " | |
end tell | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cdir = $(shell pwd) | |
karabiner_config = $${HOME}/.config/karabiner/karabiner.json | |
all: | |
@echo "this is insall script" | |
@ln -s ./karabiner.json $(karabiner_config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment