Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregsadetsky/34e4c50152d7c9150fa3db8466293542 to your computer and use it in GitHub Desktop.
Save gregsadetsky/34e4c50152d7c9150fa3db8466293542 to your computer and use it in GitHub Desktop.
  1. install karabiner-elements
  2. give karabiner all necessary security permissions
  3. create a file named ~/.config/karabiner/assets/complex_modifications/1683568839.json
  4. paste the json content below into this file
  5. in karabiner, navigate to complex modifications, click '+ Add rule' -- you should see 4 rules. click Enable All to add them
  6. you should be able to type right-command-key + T to open the terminal, + C to open chrome, + S to open sublime and + F to open the Finder
  7. edit the json file if necessary. delete and re-add the rule so that it refreshes (is this necessary?)

{
    "title": "right command TFCU Terminal Finder Chrome Sublime",
    "rules":
    [
        {
            "description": "right command t to terminal",
            "manipulators":
            [
                {
                    "type": "basic",
                    "from":
                    {
                        "modifiers":
                        {
                            "mandatory":
                            [
                                "right_gui"
                            ]
                        },
                        "key_code": "t"
                    },
                    "to":
                    [
                        {
                            "shell_command": "open -a Terminal"
                        }
                    ]
                }
            ]
        },
        {
            "description": "right command c to chrome",
            "manipulators":
            [
                {
                    "type": "basic",
                    "from":
                    {
                        "modifiers":
                        {
                            "mandatory":
                            [
                                "right_gui"
                            ]
                        },
                        "key_code": "c"
                    },
                    "to":
                    [
                        {
                            "shell_command": "open -a 'Google Chrome'"
                        }
                    ]
                }
            ]
        },
        {
            "description": "right command s to sublime",
            "manipulators":
            [
                {
                    "type": "basic",
                    "from":
                    {
                        "modifiers":
                        {
                            "mandatory":
                            [
                                "right_gui"
                            ]
                        },
                        "key_code": "s"
                    },
                    "to":
                    [
                        {
                            "shell_command": "open -a 'Sublime Text'"
                        }
                    ]
                }
            ]
        },
        {
            "description": "right command f to finder",
            "manipulators":
            [
                {
                    "type": "basic",
                    "from":
                    {
                        "modifiers":
                        {
                            "mandatory":
                            [
                                "right_gui"
                            ]
                        },
                        "key_code": "f"
                    },
                    "to":
                    [
                        {
                            "shell_command": "open -a Finder"
                        }
                    ]
                }
            ]
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment