Copy and paste or execute macros using a key on your normal keyboard
ฝัง
- เผยแพร่เมื่อ 29 ก.ย. 2024
- With a single keypress on my regular keyboard I can execute cmd+c to copy and with another key I run cmd+v to paste, I also have a "macro" to hit enter with my left hand as well, in case I need to hit enter after pasting while holding my mouse
I do this with karabiner-elements on macos, here is the code shown in the video
TH-cam doesn't allow me to paste the code here in the video as some symbols aren't allowed, but I'll leave the code in the first video comment
07 - Configure Karabiner-Elements in macOS
• 07 - Configure Karabin...
Advanced BetterTouchTools shortcuts that execute a set of actions like scripts
• Advanced BetterTouchTo...
Code that you nee to use can be found here
github.com/linkarzu/dotfiles-latest/blob/a3fb233d0d7d697bb1f46a72966edf08b5ffec98/karabiner/mxstbr/karabiner.json#L109-L177
{
"description": "left_command -> Command+C if pressed alone",
"manipulators": [
{
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_command" }],
"to_if_alone": [
{
"key_code": "c",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
}
{
"description": "left_option -> Command+V if pressed alone",
"manipulators": [
{
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_option" }],
"to_if_alone": [
{
"key_code": "v",
"modifiers": ["command"]
}
],
"type": "basic"
}
]
}
{
"description": "left_option + delete_forward -> enter",
"manipulators": [
{
"from": {
"key_code": "spacebar",
"modifiers": { "mandatory": ["left_option"] }
},
"to": [{ "key_code": "return_or_enter" }],
"type": "basic"
}
]
}
changed my setting right away. never thought I could use cmd alone. 🤯 thanks for sharing!
@@yuxiang4218 yep, copy and paste is something most uf us do several times a day, so it should be simpler.
It works. thank you. 😃
Glad to hear it works! You're welcome!