Second, your two lines work together if you append the 'lazy' modifier as in: The lazy modifier does not send own key events until another key is pressed together. 'repeat' is true by default and only can be changed to false (for 1 key / the last in a sequence). I want to map the keybinds differently so they resemble the windows keys. Open the file and put the following content into the file to define the remapping. First, you do not need to write 'repeat': true. However I am used to the keybinds in Windows. Open Karabiner Elements again, and follow the instructions under 'Simple Modifications' to create a remap file at /.config/karabiner/karabiner.json. If there was an update, install it, then restart your Mac again. Open Karabiner Elements, go to the 'Misc' tab, and click 'Check for updates' (this is important-if you don't have the latest version, the remapping probably won't work correctly and you'll end up with no escape key! I had to update to 0.90.39 as of this writing). Karabiner Elements 12.1.0 Free Download For Mac DownloadĮxpand the image, and run the installer. So here's how I set up Karabiner Elements to remap the key. For my purposes, I can live without the blazing-fast key repeat rate (right now it's slower than I'm used to, but faster than you can set via the System Preferences configuration), but I can't live without my Caps Lock-as-Escape remapping (muscle memory + Vim mean the teensy tiny Esc key is out of the question!). Unfortunately, these extensions are not yet working in macOS Sierra, but the people behind the project have crafted a simple utility for the interim, which doesn't yet have a UI and isn't in Homebrew's Caskroom (so I can't automate the setup), but it at least allows key remapping via a JSON configuration file. One of the most important tweaks I use is the combination of and to remap a few keys and to increase the key repeat rate. For the past three years, I've used the to automatically configure all my Macs, so they have the same applications, utilities, and preferences at all times. Make single and double quotes non-dead (typed with one keystroke) on the US International - PC keyboard layout. Remap PC-Keyboard Alt/Cmd to Ctrl/Alt in RDP sessions. Make tilde and backticks work with one keystroke on French PC key layout. For 'Caps Lock (⇪) Key', choose '⎋ Escape'. Change capslock to dual keys, escape and leftcontrol. Click on 'Modifier Keys.' Karabiner Elements 12.1.0 Free Download For Mac Karabiner Elements 12.1.0 Free Download For Mac Os Open System Preferences and click on 'Keyboard'. If you do it this way, key repeats will work in XQuartz windows without needing to run xset r #.Update: As of macOS Sierra 10.12.1, the Caps Lock - Escape remapping can be done natively in the Keyboard System Preferences pane! To remap without any 3rd party software, do the following. Then run the key repeat commands: defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)ĭefaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms) hold down the a key and you are presented with a bubble containing alternate 'a' characters with various umlauts, accents, etc.: defaults write -g ApplePressAndHoldEnabled -bool false I read that you have to run this command every time you run XQuartz anew, but when I put it in my login script, it caused the system to hang on shutdown (until I killed the hung xset commands) and on startup, so I discovered that a better way to change the key repeat setting is to first disable the little bubble menu that appears above a typed character upon press & hold, e.g. Leaving off the last 2 arguments will reset the system defaults. To work around the issue, I initially ran this in the terminal: xset r rate Answer is great for native apps, but for whatever reason, it appears to have messed up key repeat for me in XQuartz windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |