MTMR Preset for a TouchBar with digits, a dot, and square brackets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"type": "escape", | |
"width": 30, | |
"align": "left" | |
}, | |
{ | |
"title": "1", | |
"type": "staticButton", | |
"action": "keyPress", | |
"keycode": 83, // 0x53 | |
"width": 81 | |
}, | |
{ | |
"title": "2", | |
"type": "staticButton", | |
"action": "keyPress", | |
"keycode": 84, // 0x54 | |
"width": 81 | |
}, | |
{ | |
"title": "3", | |
"type": "staticButton", | |
"action": "keyPress", | |
"keycode": 85, // 0x55 | |
"width": 81 | |
}, | |
{ | |
"title": "4", | |
"type": "staticButton", | |
"action": "keyPress", | |
"keycode": 86, // 0x56 | |
"width": 81 | |
}, | |
{ | |
"title": "5", | |
"type": "staticButton", | |
"action": "keyPress", | |
"keycode": 87, // 0x57 | |
"width": 81 | |
}, | |
{ | |
"title": "6", | |
"type": "staticButton", | |
"action": "keyPress", | |
"keycode": 88, // 0x58 | |
"width": 81 | |
}, | |
{ | |
"title": "7", | |
"type": "staticButton", | |
"action": "keyPress", | |
"keycode": 89, // 0x59 | |
"width": 81 | |
}, | |
{ | |
"title": "8", | |
"type": "staticButton", | |
"action": "keyPress", | |
"keycode": 91, // 0x5b | |
"width": 81 | |
}, | |
{ | |
"title": "9", | |
"type": "staticButton", | |
"action": "keyPress", | |
"keycode": 92, // 0x5c | |
"width": 81 | |
}, | |
{ | |
"title": "0", | |
"type": "staticButton", | |
"action": "keyPress", | |
"keycode": 82, // 0x52 | |
"width": 81 | |
}, | |
{ | |
"title": ".", | |
"type": "staticButton", | |
"action": "appleScript", | |
"actionAppleScript": { | |
"inline": "tell application \"System Events\" to keystroke \";\" using {shift down}\r" | |
}, | |
"width": 60 | |
}, | |
{ | |
"title": "[", | |
"type": "staticButton", | |
"action": "appleScript", | |
"actionAppleScript": { | |
"inline": "tell application \"System Events\" to keystroke \"(\" using {option down, shift down}\r" | |
}, | |
"width": 81 | |
}, | |
{ | |
"title": "]", | |
"type": "staticButton", | |
"action": "appleScript", | |
"actionAppleScript": { | |
"inline": "tell application \"System Events\" to keystroke \")\" using {option down, shift down}\r" | |
}, | |
"width": 81 | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment