GithubHelp home page GithubHelp logo

amarsyla / hidutil-key-remapping-generator Goto Github PK

View Code? Open in Web Editor NEW
237.0 237.0 18.0 3.36 MB

Simple tool to generate HIDUTIL key remapping configurations for MacOS

Home Page: https://hidutil-generator.netlify.app/

HTML 4.25% CSS 8.97% JavaScript 86.78%

hidutil-key-remapping-generator's People

Contributors

amarsyla avatar c4talyst avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hidutil-key-remapping-generator's Issues

Error or weird keybindings

Hello, I am currently trying out the new macOS Ventura beta 2, and seems like some of the keybindings have changed, or I may be insane. I am on Macbook Pro 2021 16 inch, and I put the key remapper plist in the launchctl so that it can be automatically launched upon rebooting. The problem occurred that, now the keybindings that I have set is all over the place as I upgraded to macOS Ventura beta. I tried to reset using

hidutil property --set '{"UserKeyMapping":[]}'

but both of my command keys are disfunctional and my globa/fn key is the command key. I feel like the problem is that

  1. macOS Ventura has different key binding from macOS Monterey
  2. The default key binding of my Macbook is messed up due to the os update

Is there a way to factory reset all the keybindings without going through big trouble?

Here's what I've found in terms of the swapped keys:

  1. globe/fn key is now right command
  2. right command is now fn
  3. left command does not function, even though the system recognizes that its being pressed
  4. rest of the functions that I've set(right shift as delete, right option as fn) works properly

Please send help, I will do my best to help you provide information of my macbook's settings.

Thank you in advance!

Device Specific Mapping

Hi @amarsyla,

Would you be interested if I created a PR to add support for only applying this configuration to a specific device? You basically just add --matching '{"ProductID":<USB PID>}' in the command. I'm willing to do this, just want to know if you'd be interesting in merging it.

Adding combinaison of keys

Is there a way to map the fact that I click on 'AltGr $' to a sign that isn't on the keyboard normally ?

I do not know if it's possible with hidutil, that's why I am opening this issue.

Stops working randomly, needs a restart

Hey, firstly, thanks for this amazing utility! I'm remapping caps lock to esc and esc to fn, and my ~/Library/LaunchAgents/com.local.KeyRemapping.plist looks thus (verbatim copied from you website):

> cat ~/Library/LaunchAgents/com.local.KeyRemapping.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.local.KeyRemapping</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/bin/hidutil</string>
        <string>property</string>
        <string>--set</string>
        <string>{"UserKeyMapping":[
            {
              "HIDKeyboardModifierMappingSrc": 0x700000039,
              "HIDKeyboardModifierMappingDst": 0x700000029
            },
            {
              "HIDKeyboardModifierMappingSrc": 0x700000029,
              "HIDKeyboardModifierMappingDst": 0xFF00000003
            }
        ]}</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
</dict>
</plist>

After using my Mac for a while, the remaps stop working; the keys themselves don't do anything (as if they weren't mapped to anything). A restart solves it. Any idea what might be causing it?

System info: MacOS 11 (latest beta), mid 2014 15" retina MBP.

Add key code for home button

First, thank you for making this repo!

Can you the home button to the list of keys in the list?
The key code is 0x0C00000223 -- I've tested this with hidutil and it works.

Use case:

Many made-for-iOS/Android Bluetooth keyboards have a home button where the escape key should be, which makes them very annoying to use with a computer because there is no escape key! So I'd like to make the button where the escape key should be to actually be an escape key.

I was able to figure out the key code thanks to code in this repo: dnicolson/BluetoothKeyboardEnhancer. I gave a little more context here: dnicolson/Bluetooth-Keyboard-Enhancer#5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.