Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "__INSTALL_URL__": "karabiner://karabiner/assets/complex_modifications/import?url=https://pastebin.com/raw/MSpDNh4p",
- "title": "Karabiner Rules",
- "rules": [
- {
- "description": "Shift + Esc to ~",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "escape",
- "modifiers": {
- "mandatory": [
- "shift"
- ]
- }
- },
- "to": [
- {
- "repeat": true,
- "key_code": "grave_accent_and_tilde",
- "modifiers": [
- "left_shift"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "Control + Esc to `",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "escape",
- "modifiers": {
- "mandatory": [
- "control"
- ]
- }
- },
- "to": [
- {
- "key_code": "grave_accent_and_tilde",
- "modifiers": []
- }
- ]
- }
- ]
- },
- {
- "description": "Finder: Delete as Move to Trash",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "delete_forward",
- "modifiers": {
- "optional": ["any"]
- }
- },
- "to": [
- {
- "key_code": "delete_or_backspace",
- "modifiers": ["left_alt"]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^com.apple.finder"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "iTerm2: Fix Delete to forward delete",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "delete_forward",
- "modifiers": {
- "optional": ["any"]
- }
- },
- "to": [
- {
- "key_code": "delete_forward",
- "modifiers": ["left_control"]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^com.googlecode.iterm2",
- "^org.virtualbox.app.VirtualBoxVM"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "VirtualBox: Fix Delete to forward delete",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "delete_forward",
- "modifiers": {
- "optional": ["any"]
- }
- },
- "to": [
- {
- "key_code": "d",
- "modifiers": ["left_control"]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^com.googlecode.iterm2",
- "^org.virtualbox.app.VirtualBoxVM"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "IDE: Fix fucntion keys",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "f1"
- },
- "to": [
- {
- "key_code": "f1",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f2"
- },
- "to": [
- {
- "key_code": "f2",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f3"
- },
- "to": [
- {
- "key_code": "f3",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f4"
- },
- "to": [
- {
- "key_code": "f4",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f5"
- },
- "to": [
- {
- "key_code": "f5",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f6"
- },
- "to": [
- {
- "key_code": "f6",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f7"
- },
- "to": [
- {
- "key_code": "f7",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f8"
- },
- "to": [
- {
- "key_code": "f8",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f9"
- },
- "to": [
- {
- "key_code": "f9",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f10"
- },
- "to": [
- {
- "key_code": "f10",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f11"
- },
- "to": [
- {
- "key_code": "f11",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "key_code": "f12"
- },
- "to": [
- {
- "key_code": "f12",
- "modifiers": [
- "fn"
- ]
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_if",
- "bundle_identifiers": [
- "^org.qt-project.qtcreator",
- "^com.sublimetext.3"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "Home key to the beginning of the line (Control + a)",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "home",
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "a",
- "modifiers": [
- "left_control"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "End key to the end of the line (Control + e)",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "end",
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "e",
- "modifiers": [
- "left_control"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "Home key to the beginning of the sentence (Command + Left). Doesnt work in terminal",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "home",
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "left_arrow",
- "modifiers": [
- "left_alt"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "End key to the end of the sentence (Command + Right). Doesnt work in terminal",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "end",
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "right_arrow",
- "modifiers": [
- "left_alt"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "Control+Shift+Esc Opens Activity Monitor",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "escape",
- "modifiers": {
- "mandatory": [
- "control",
- "shift"
- ]
- }
- },
- "to": [
- {
- "shell_command": "open -a 'Activity Monitor.app'"
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_unless",
- "bundle_identifiers": [
- "^com.microsoft.rdc$",
- "^com.microsoft.rdc.mac$",
- "^com.microsoft.rdc.macos$",
- "^com.microsoft.rdc.osx.beta$",
- "^net.sf.cord$",
- "^com.thinomenon.RemoteDesktopConnection$",
- "^com.itap-mobile.qmote$",
- "^com.nulana.remotixmac$",
- "^com.p5sys.jump.mac.viewer$",
- "^com.p5sys.jump.mac.viewer.web$",
- "^com.teamviewer.TeamViewer$",
- "^com.vmware.horizon$",
- "^com.2X.Client.Mac$",
- "^com.vmware.fusion$",
- "^com.vmware.horizon$",
- "^com.vmware.view$",
- "^com.parallels.desktop$",
- "^com.parallels.vm$",
- "^com.parallels.desktop.console$",
- "^org.virtualbox.app.VirtualBoxVM$",
- "^com.vmware.proxyApp.",
- "^com.parallels.winapp."
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "Print key to printscreen",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "key_code": "print_screen",
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "5",
- "modifiers": [
- "left_alt",
- "left_shift"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "Open App Exposé with mouse 1/2 buttons",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "simultaneous": [
- {
- "pointing_button": "button1"
- },
- {
- "pointing_button": "button2"
- }
- ],
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "down_arrow",
- "modifiers": [
- "left_control"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "Open Launchpad with mouse 3 button",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "pointing_button": "button3",
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "launchpad"
- }
- ],
- "conditions": [
- {
- "type": "frontmost_application_unless",
- "bundle_identifiers": [
- "^com.googlecode.iterm2",
- "^com.apple.Terminal",
- "com.lemonmojo.RoyalTSX.App"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "Open Mission Control with mouse 4/5 buttons",
- "manipulators": [
- {
- "type": "basic",
- "parameters": {
- "basic.simultaneous_threshold_milliseconds": 1000
- },
- "from": {
- "simultaneous": [
- {
- "pointing_button": "button4"
- },
- {
- "pointing_button": "button5"
- }
- ],
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "mission_control"
- }
- ]
- }
- ]
- },
- {
- "description": "Move to left space with mouse 4 button",
- "manipulators": [
- {
- "type": "basic",
- "parameters": {
- "basic.simultaneous_threshold_milliseconds": 1000
- },
- "from": {
- "pointing_button": "button4",
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "left_arrow",
- "modifiers": [
- "left_control"
- ]
- }
- ]
- }
- ]
- },
- {
- "description": "Move to right space with mouse 5 button",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "pointing_button": "button5",
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "right_arrow",
- "modifiers": [
- "left_control"
- ]
- }
- ]
- }
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement