Add a caps to ctrl remapping config for OSX
This commit is contained in:
parent
3adb0f924a
commit
fc8f515059
12
osx/README.md
Normal file
12
osx/README.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# OSX
|
||||||
|
|
||||||
|
## Keyboard Remapping
|
||||||
|
|
||||||
|
* Remap caps lock to ctrl
|
||||||
|
* After running the install script, open the Karabiner-Elements app, then go to preferences->Simple
|
||||||
|
modifications and add a new item that maps `caps_lock` to `left_control`.
|
||||||
|
|
||||||
|
* Remap caps lock to esc on tap and ctrl on hold
|
||||||
|
* After running the install script, follow this guide starting at step 2: https://web.archive.org/web/20200513031048/https://medium.com/@pechyonkin/how-to-map-capslock-to-control-and-escape-on-mac-60523a64022b
|
||||||
|
* Note: I had some issues with vim sometimes losing the caps lock remap. I just went with the
|
||||||
|
simple caps->ctrl remap.
|
32
osx/capslock-to-ctrl-for-karabiner.json
Normal file
32
osx/capslock-to-ctrl-for-karabiner.json
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{
|
||||||
|
"title": "Change caps_lock to Esc and Control",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"description": "Post Esc if Caps is tapped, Control if held.",
|
||||||
|
"manipulators": [
|
||||||
|
{
|
||||||
|
"type": "basic",
|
||||||
|
"from": {
|
||||||
|
"key_code": "left_control",
|
||||||
|
"modifiers": {
|
||||||
|
"optional": [
|
||||||
|
"any"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [
|
||||||
|
{
|
||||||
|
"key_code": "left_control",
|
||||||
|
"lazy": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"to_if_alone": [
|
||||||
|
{
|
||||||
|
"key_code": "escape"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -13,6 +13,11 @@ setup_file $HOME/.dotfiles/osx/env.platform $HOME/.env.platform
|
||||||
printf "\n${BOLD}Installing Git customizations...${NORMAL}\n"
|
printf "\n${BOLD}Installing Git customizations...${NORMAL}\n"
|
||||||
setup_file $HOME/.dotfiles/osx/gitconfig.platform $HOME/.gitconfig.platform
|
setup_file $HOME/.dotfiles/osx/gitconfig.platform $HOME/.gitconfig.platform
|
||||||
|
|
||||||
|
printf "\n${BOLD}Installing key remap config...${NORMAL}\n"
|
||||||
|
key_dest=$HOME/.config/karabiner/assets/complex_modifications/
|
||||||
|
mkdir -p $key_dest
|
||||||
|
setup_file $HOME/.dotfiles/osx/capslock-to-ctrl-for-karabiner.json ${key_dest}/custom-capslock.json
|
||||||
|
|
||||||
#-----------------------------------
|
#-----------------------------------
|
||||||
# Homebrew packages
|
# Homebrew packages
|
||||||
#-----------------------------------
|
#-----------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user