dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 7fdbf90dac5825b2fd0116116f780215efdeeeef
parent 834ad0864a0a438137238eede2e4bb15b4a0975a
Author: Chris Bracken <chris@bracken.jp>
Date:   Thu,  1 Aug 2019 15:02:36 -0700

Add Karabiner JIS keyboard config

Adds support for reconfiguring Japanese PC keyboards to behave well on
macOS.

* Disables the hankaku/zenkaku key
* Remaps muhenkan to eisuu behaviour
* Remaps henkan to kana behaviour
* Remaps hiragana/katakana to kana behaviour

TODOs:
* Find a way to remap the PC backslash/underscore key to
  backslash/underscore rather than having underscore-only behaviour
  as on the Apple Japanese keyboard.
* Find a way to remap the PC yen/pipe key to yen/pipe rather than
  backslash/pipe behaviour. Interestingly, option-y also produces a
  backslash rather than a yen sign.

Diffstat:
A.config/karabiner/karabiner.json | 164+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.gitignore | 2++
2 files changed, 166 insertions(+), 0 deletions(-)

diff --git a/.config/karabiner/karabiner.json b/.config/karabiner/karabiner.json @@ -0,0 +1,163 @@ +{ + "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": [] + }, + "devices": [], + "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": { + "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": { + "consumer_key_code": "rewind" + } + }, + { + "from": { + "key_code": "f8" + }, + "to": { + "consumer_key_code": "play_or_pause" + } + }, + { + "from": { + "key_code": "f9" + }, + "to": { + "consumer_key_code": "fastforward" + } + }, + { + "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": "japanese_pc_katakana" + }, + "to": { + "key_code": "japanese_kana" + } + }, + { + "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": "grave_accent_and_tilde" + }, + "to": { + "key_code": "vk_none" + } + } + ], + "virtual_hid_keyboard": { + "country_code": 0, + "mouse_key_xy_scale": 100 + } + } + ] +} +\ No newline at end of file diff --git a/.gitignore b/.gitignore @@ -0,0 +1,2 @@ +# Ignore Karabiner backups +.config/karabiner/automatic_backups/