xxxzc / xps15-9570-macos

macOS Monterey/Ventura on XPS15-9570 with OpenCore
194 stars 28 forks source link

How to: Switch windows and alt key #75

Closed toonvanstrijp closed 3 years ago

toonvanstrijp commented 3 years ago

Right now the windows key functions as the command key, I want the alt key to function as the command key. How do I change this?

toonvanstrijp commented 3 years ago

Found a solution!

Edit the SSDT-PS2K.dsl file like this:

// Remap PrntScr to disable touchpad
// Supported Voodoo PrntScr Key combinations:
// PrntScr            Enable/Disable touchpad
// Windows+PrntScr    Enable/Disable touchpad+keyboard
// Ctrl+Alt+PrntScr   Reset and enable touchpad
// Shift+PrntScr      Send SysRq scancode to the kernel
// Reference: https://github.com/acidanthera/VoodooPS2/blob/master/Docs/ACPI/SSDT-PrtSc-Remap.dsl

DefinitionBlock ("", "SSDT", 2, "ACDT", "ps2", 0)
{
    External (_SB_.PCI0.LPCB.PS2K, DeviceObj)

    Name(_SB.PCI0.LPCB.PS2K.RMCF, Package()
    {
        "Keyboard", Package()
        {
            "RemapPrntScr", ">y",
            "Swap command and option", ">y",
        },
    })
}
//EOF

And run: python3 update.py --acpi

xxxzc commented 3 years ago

No need to use SSDT, you can swap key function in system preference-keyboard-modifier keys