amarsyla / hidutil-key-remapping-generator Goto Github PK
View Code? Open in Web Editor NEWSimple tool to generate HIDUTIL key remapping configurations for MacOS
Home Page: https://hidutil-generator.netlify.app/
Simple tool to generate HIDUTIL key remapping configurations for MacOS
Home Page: https://hidutil-generator.netlify.app/
The code is: 0xc00000040
From the IOHIDUsageTable:
kHIDUsage_Csmr_Menu = 0x40, /* On/Off Control */
Karabiner names it: consumer_key_code "menu"
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
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:
Please send help, I will do my best to help you provide information of my macbook's settings.
Thank you in advance!
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.
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.
Can hdiutil
map FN
to shift+ctrl+alt+cmd
(the hyper key)?
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.