Merge branch 'master' of github.com:dustinswan/dotfiles

master
Dustin Swan 6 years ago
commit 83d9fd068f

@ -1,275 +1,311 @@
{ {
"global": { "global": {
"check_for_updates_on_startup": true, "check_for_updates_on_startup": true,
"show_in_menu_bar": true, "show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false "show_profile_name_in_menu_bar": false
}, },
"profiles": [ "profiles": [
{ {
"complex_modifications": { "complex_modifications": {
"parameters": { "parameters": {
"basic.to_delayed_action_delay_milliseconds": 500, "basic.to_delayed_action_delay_milliseconds": 500,
"basic.to_if_alone_timeout_milliseconds": 1000 "basic.to_if_alone_timeout_milliseconds": 1000
}, },
"rules": [ "rules": [
{ {
"manipulators": [ "manipulators": [
{ {
"conditions": [ "description": "map left shift to opening parenthesis",
{ "type": "basic",
"bundle_identifiers": [ "from": {
"^org\\.gnu\\.Emacs$", "key_code": "left_shift",
"^com\\.apple\\.Terminal$", "modifiers": {
"^org\\.vim\\.", "optional": ["any"]
"^com\\.vmware\\.fusion$", }
"^com\\.googlecode\\.iterm2$", },
"^co\\.zeit\\.hyperterm$", "to_if_alone": [{
"^co\\.zeit\\.hyper$", "key_code": "9",
"^com\\.microsoft\\.VSCode$", "modifiers": ["left_shift"]
"^org\\.x\\.X11$", }],
"^com\\.apple\\.x11$", "to": [{
"^org\\.macosforge\\.xquartz\\.X11$" "key_code": "left_shift",
], "modifiers": []
"type": "frontmost_application_unless" }]
} },
], {
"description": "^w should delete a word backwards", "description": "map right shift to closing parenthesis",
"from": { "type": "basic",
"key_code": "comma", "from": {
"modifiers": { "key_code": "right_shift",
"mandatory": [ "modifiers": {
"left_control" "optional": ["any"]
] }
} },
}, "to_if_alone": [{
"to": [ "key_code": "0",
{ "modifiers": ["right_shift"]
"key_code": "delete_or_backspace", }],
"modifiers": [ "to": [{
"option" "key_code": "right_shift",
] "modifiers": []
} }]
], },
"type": "basic" {
}, "conditions": [
{ {
"description": "Change caps_lock to control when used as modifier, escape when used alone", "bundle_identifiers": [
"from": { "^org\\.gnu\\.Emacs$",
"key_code": "caps_lock", "^com\\.apple\\.Terminal$",
"modifiers": { "^org\\.vim\\.",
"optional": [ "^com\\.vmware\\.fusion$",
"any" "^com\\.googlecode\\.iterm2$",
] "^co\\.zeit\\.hyperterm$",
} "^co\\.zeit\\.hyper$",
}, "^com\\.microsoft\\.VSCode$",
"to": [ "^org\\.x\\.X11$",
{ "^com\\.apple\\.x11$",
"key_code": "left_control" "^org\\.macosforge\\.xquartz\\.X11$"
} ],
], "type": "frontmost_application_unless"
"to_if_alone": [ }
{ ],
"key_code": "escape" "description": "^w should delete a word backwards",
} "from": {
], "key_code": "comma",
"type": "basic" "modifiers": {
} "mandatory": [
] "left_control"
} ]
] }
}, },
"devices": [ "to": [
{ {
"disable_built_in_keyboard_if_exists": false, "key_code": "delete_or_backspace",
"fn_function_keys": [], "modifiers": [
"identifiers": { "option"
"is_keyboard": true, ]
"is_pointing_device": false, }
"product_id": 1553, ],
"vendor_id": 3897 "type": "basic"
}, },
"ignore": false, {
"manipulate_caps_lock_led": false, "description": "Change caps_lock to control when used as modifier, escape when used alone",
"simple_modifications": [ "from": {
{ "key_code": "caps_lock",
"from": { "modifiers": {
"key_code": "escape" "optional": [
}, "any"
"to": { ]
"key_code": "grave_accent_and_tilde" }
} },
}, "to": [
{ {
"from": { "key_code": "left_control"
"key_code": "left_command" }
}, ],
"to": { "to_if_alone": [
"key_code": "left_option" {
} "key_code": "escape"
}, }
{ ],
"from": { "type": "basic"
"key_code": "left_option" }
}, ]
"to": { }
"key_code": "left_command" ]
} },
}, "devices": [
{ {
"from": { "disable_built_in_keyboard_if_exists": false,
"key_code": "right_option" "fn_function_keys": [],
}, "identifiers": {
"to": { "is_keyboard": true,
"key_code": "right_command" "is_pointing_device": false,
} "product_id": 1553,
} "vendor_id": 3897
] },
}, "ignore": false,
{ "manipulate_caps_lock_led": false,
"disable_built_in_keyboard_if_exists": false, "simple_modifications": [
"fn_function_keys": [], {
"identifiers": { "from": {
"is_keyboard": true, "key_code": "escape"
"is_pointing_device": false, },
"product_id": 601, "to": {
"vendor_id": 1452 "key_code": "grave_accent_and_tilde"
}, }
"ignore": false, },
"manipulate_caps_lock_led": true, {
"simple_modifications": [] "from": {
}, "key_code": "left_command"
{ },
"disable_built_in_keyboard_if_exists": false, "to": {
"fn_function_keys": [], "key_code": "left_option"
"identifiers": { }
"is_keyboard": true, },
"is_pointing_device": false, {
"product_id": 49970, "from": {
"vendor_id": 1133 "key_code": "left_option"
}, },
"ignore": true, "to": {
"manipulate_caps_lock_led": false, "key_code": "left_command"
"simple_modifications": [] }
}, },
{ {
"disable_built_in_keyboard_if_exists": false, "from": {
"fn_function_keys": [], "key_code": "right_option"
"identifiers": { },
"is_keyboard": false, "to": {
"is_pointing_device": true, "key_code": "right_command"
"product_id": 49970, }
"vendor_id": 1133 }
}, ]
"ignore": true, },
"manipulate_caps_lock_led": false, {
"simple_modifications": [] "disable_built_in_keyboard_if_exists": false,
} "fn_function_keys": [],
], "identifiers": {
"fn_function_keys": [ "is_keyboard": true,
{ "is_pointing_device": false,
"from": { "product_id": 601,
"key_code": "f1" "vendor_id": 1452
}, },
"to": { "ignore": false,
"key_code": "display_brightness_decrement" "manipulate_caps_lock_led": true,
} "simple_modifications": []
}, },
{ {
"from": { "disable_built_in_keyboard_if_exists": false,
"key_code": "f2" "fn_function_keys": [],
}, "identifiers": {
"to": { "is_keyboard": true,
"key_code": "display_brightness_increment" "is_pointing_device": false,
} "product_id": 49970,
}, "vendor_id": 1133
{ },
"from": { "ignore": true,
"key_code": "f3" "manipulate_caps_lock_led": false,
}, "simple_modifications": []
"to": { },
"key_code": "mission_control" {
} "disable_built_in_keyboard_if_exists": false,
}, "fn_function_keys": [],
{ "identifiers": {
"from": { "is_keyboard": false,
"key_code": "f4" "is_pointing_device": true,
}, "product_id": 49970,
"to": { "vendor_id": 1133
"key_code": "launchpad" },
} "ignore": true,
}, "manipulate_caps_lock_led": false,
{ "simple_modifications": []
"from": { }
"key_code": "f5" ],
}, "fn_function_keys": [
"to": { {
"key_code": "illumination_decrement" "from": {
} "key_code": "f1"
}, },
{ "to": {
"from": { "key_code": "display_brightness_decrement"
"key_code": "f6" }
}, },
"to": { {
"key_code": "illumination_increment" "from": {
} "key_code": "f2"
}, },
{ "to": {
"from": { "key_code": "display_brightness_increment"
"key_code": "f7" }
}, },
"to": { {
"key_code": "rewind" "from": {
} "key_code": "f3"
}, },
{ "to": {
"from": { "key_code": "mission_control"
"key_code": "f8" }
}, },
"to": { {
"key_code": "play_or_pause" "from": {
} "key_code": "f4"
}, },
{ "to": {
"from": { "key_code": "launchpad"
"key_code": "f9" }
}, },
"to": { {
"key_code": "fastforward" "from": {
} "key_code": "f5"
}, },
{ "to": {
"from": { "key_code": "illumination_decrement"
"key_code": "f10" }
}, },
"to": { {
"key_code": "mute" "from": {
} "key_code": "f6"
}, },
{ "to": {
"from": { "key_code": "illumination_increment"
"key_code": "f11" }
}, },
"to": { {
"key_code": "volume_decrement" "from": {
} "key_code": "f7"
}, },
{ "to": {
"from": { "key_code": "rewind"
"key_code": "f12" }
}, },
"to": { {
"key_code": "volume_increment" "from": {
} "key_code": "f8"
} },
], "to": {
"name": "Default", "key_code": "play_or_pause"
"selected": true, }
"simple_modifications": [], },
"virtual_hid_keyboard": { {
"caps_lock_delay_milliseconds": 0, "from": {
"keyboard_type": "ansi" "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": "Default",
"selected": true,
"simple_modifications": [],
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"keyboard_type": "ansi"
}
}
]
} }

@ -23,7 +23,7 @@ ln -sf ~/dotfiles/msmtprc ~/.msmtprc
ln -sf ~/dotfiles/muttrc ~/.muttrc ln -sf ~/dotfiles/muttrc ~/.muttrc
# Mac only # Mac only
# rm ~/.karabiner.d/configuration/karabiner.json; ln -s ~/dotfiles/karabiner.json ~/.karabiner.d/configuration/karabiner.json mkdir -p ~/.config/karabiner; ln -sf ~/dotfiles/karabiner.json ~/.config/karabiner/karabiner.json
touch ~/.hushlogin touch ~/.hushlogin
mkdir -p ~/Library/Application\ Support/glances; ln -sf ~/dotfiles/glances.conf ~/Library/Application\ Support/glances/glances.conf mkdir -p ~/Library/Application\ Support/glances; ln -sf ~/dotfiles/glances.conf ~/Library/Application\ Support/glances/glances.conf
mkdir -p ~/.qutebrowser; ln -sf ~/dotfiles/qutebrowser.py ~/.qutebrowser/config.py mkdir -p ~/.qutebrowser; ln -sf ~/dotfiles/qutebrowser.py ~/.qutebrowser/config.py

Loading…
Cancel
Save