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...

ความคิดเห็น • 8

  • @linkarzu
    @linkarzu  26 วันที่ผ่านมา

    Code that you nee to use can be found here
    github.com/linkarzu/dotfiles-latest/blob/a3fb233d0d7d697bb1f46a72966edf08b5ffec98/karabiner/mxstbr/karabiner.json#L109-L177

    • @linkarzu
      @linkarzu  26 วันที่ผ่านมา

      {
      "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"
      }
      ]
      }

    • @linkarzu
      @linkarzu  26 วันที่ผ่านมา

      {
      "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"
      }
      ]
      }

    • @linkarzu
      @linkarzu  26 วันที่ผ่านมา

      {
      "description": "left_option + delete_forward -> enter",
      "manipulators": [
      {
      "from": {
      "key_code": "spacebar",
      "modifiers": { "mandatory": ["left_option"] }
      },
      "to": [{ "key_code": "return_or_enter" }],
      "type": "basic"
      }
      ]
      }

  • @yuxiang4218
    @yuxiang4218 26 วันที่ผ่านมา

    changed my setting right away. never thought I could use cmd alone. 🤯 thanks for sharing!

    • @linkarzu
      @linkarzu  26 วันที่ผ่านมา

      @@yuxiang4218 yep, copy and paste is something most uf us do several times a day, so it should be simpler.

  •  11 วันที่ผ่านมา

    It works. thank you. 😃

    • @linkarzu
      @linkarzu  11 วันที่ผ่านมา

      Glad to hear it works! You're welcome!