Fix swap-keys for mac

This commit is contained in:
xenia 2023-11-14 22:23:43 +01:00
parent 0ddfd25c7b
commit 8c8a378aed

View File

@ -5,21 +5,25 @@
enable = true; enable = true;
config = { config = {
Label = "swap-keys"; Label = "swap-keys";
Program = /usr/bin/hidutil;
ProgramArguments = [ ProgramArguments = [
"property" "--set" '' "/usr/bin/hidutil" "property" "--set" ''
[{ {"UserKeyMapping":
[
{
"HIDKeyboardModifierMappingSrc":0x7000000e7, "HIDKeyboardModifierMappingSrc":0x7000000e7,
"HIDKeyboardModifierMappingDst":0x7000000e1, "HIDKeyboardModifierMappingDst":0x7000000e1
}, { }, {
"HIDKeyboardModifierMappingSrc":0x7000000e5, "HIDKeyboardModifierMappingSrc":0x7000000e5,
"HIDKeyboardModifierMappingDst":0x7000000e6, "HIDKeyboardModifierMappingDst":0x7000000e6
}, { }, {
"HIDKeyboardModifierMappingSrc":0x7000000e6, "HIDKeyboardModifierMappingSrc":0x7000000e6,
"HIDKeyboardModifierMappingDst":0x7000000e3, "HIDKeyboardModifierMappingDst":0x7000000e3
}] }
]
}
'' ''
]; ];
RunAtLoad = true;
}; };
}; };
} }