MAC에서 karabiner-elements 사용 방법 - 4

|
반응형

이전의 글에서 매크로 만들기에 성공해서 

이번에는 파이널컷프로(Final Cut Pro)에서 단축키를 사용할 수 있도록

매크로를 만들어 보았다.(파이널컷프로 단축키 매크로)

이전 글의 동일한 폴더에

FinalCut.json이라는 이름으로 파일을 만들었다.

(처음 사용시에 num lock를 꺼둔 상태로 해주세요. 켜놓은 상태에서는 삑삑 소리가 납니다.)

{
    "title": "Final Cut Pro Macro Keyboard",
    "rules": [
         {
            "description": "0 to space at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_0",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "spacebar"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "enter to backspace at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_enter",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "delete_or_backspace"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "period to delete at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_period",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "delete_forward"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "1 to J at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_1",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "j"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "2 to K at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_2",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "k"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "3 to L at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_3",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "l"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "4 to A at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_4",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "a"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "5 to B at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_5",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "b"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "6 to H at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_6",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "h"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "7 to zoom fit at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_7",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "z",
                            "modifiers": [
                                "left_shift"
                            ]
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "8 to zoom out at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_8",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "hyphen",
                            "modifiers": [
                                "left_control"
                            ]
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "9 to zoom in at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_9",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "equal_sign",
                            "modifiers": [
                                "left_control"
                            ]
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "slash to home at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_slash",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "home"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "asterisk to end at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_asterisk",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "end"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "hyphen to I at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_hyphen",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "i"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        },
        {
            "description": "plus to O at keyboard 2",
            "manipulators": [
                {
                    "from": {
                        "key_code": "keypad_plus",
                        "modifiers": {
                          "optional": ["any"]                          
                        }
                    },
                    "to": [
                        {
                            "key_code": "o"
                        }
                    ],
		    "conditions": [
        		{
            			"type": "device_if",
            			"identifiers": [
                			{
                    			"vendor_id": 5050,
					            "product_id": 1,
					            "description": "KEYPAD"
                			}
            	    		]
                }
		    ],
                    "type": "basic"
                }
            ]
        }
    ]
}

내 기준 가장 많이 쓰는 단축키들로 설정해 주었다.

0 - space

1 - J

2 - K

3 - L

4 - A

5 - B

6 - H

7 - shift-z

8 - cmd--

9 - cmd-+

/ - home

* - end

- - I

+ - o

enter - backspace

. - del

 

 

설정 파일에 따라 분리해서 여러개의 단축키 매크로를 바꿔가면서 쓸 수 있다.

Profiles메뉴에서 Edit메뉴를 눌러 이름을 바꿔준다.

그리고 Add new profile 을 누른 다음 새로운 단축키 매크로를 만들어주면 된다.

사용할 때는

이 메뉴에서 단축키에 따른 프로필을 골라서 사용하면 된다.

 

karabiner-elements 사용 방법 설명 끝.

 

 

반응형
And
prev | 1 | 2 | 3 | 4 | 5 | 6 | 7 | ··· | 61 | next