/universal_mx_keys_remap

Re-Mapping Universal Logitech Mx Keys Keyboard on MacOS

Primary LanguageShell

universal_mx_keys_remap

Re-Mapping Universal Logitech Mx Keys Keyboard on MacOS

If you bought a Logitech MX Keys Keyboard (Universal Generation) and you use Windows and MacOS both, you have to read this guide. If you use the normal keyboard mapping of this keyboard with MacOS, you should have noticed that the AltGr key is very inconvenient to use. With this guide you can re-map this key.

Bluetooth Mode

If you want use bluetooth connection you must use "remapkeys_bluetooth.sh" file to remap this key. (If you want use bluetooth and you have to unlock the FileVault when you start the Mac, you won't be able to because the keyboard does not natively allow it)

Steps:

  • Save this file on your home directory "remapkeys_bluetooth.sh"
  • Run this command "chmod +x remapkeys_bluetooth.sh"
  • Run this command "sudo defaults write com.apple.loginwindow LoginHook /Users/[user]/remapkeys_bluetooth.sh"

    (change user word with your account username)

  • Reboot Mac

Unifying Mode

If you want to use Logitech Unifying Connector, you need to fix the mapping in Windows mode before (use a PC or a VM).

Steps:

  • Install "Logi Options" on Mac
  • Remove in "Logi Options" settings the check to use always the MacOS mapping
  • Install "Logi Options" on the PC
  • Check the box to use always the Windows mapping
  • Go back to Mac

  • Save this file on your home directory "remapkeys.sh". If you've an italian keyboard and a Logitech Master MX 3, you must use "remapkeys_MX3.sh" (so rename this in "remapkeys.sh").
  • Run this command "chmod +x remapkeys.sh"
  • Run this command "sudo defaults write com.apple.loginwindow LoginHook /Users/[user]/remapkeys.sh"

    (change user word with your account username)

  • Reboot Mac

Remap Keypad Comma to Dot

If you need to remap comma in keypad, you must insert "DefaultKeyBinding.dict" file in "/Users/[user]/Library/KeyBindings/".

(change user word with your account username)

Enjoy!