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;
config = {
Label = "swap-keys";
Program = /usr/bin/hidutil;
ProgramArguments = [
"property" "--set" ''
[{
"HIDKeyboardModifierMappingSrc":0x7000000e7,
"HIDKeyboardModifierMappingDst":0x7000000e1,
}, {
"HIDKeyboardModifierMappingSrc":0x7000000e5,
"HIDKeyboardModifierMappingDst":0x7000000e6,
}, {
"HIDKeyboardModifierMappingSrc":0x7000000e6,
"HIDKeyboardModifierMappingDst":0x7000000e3,
}]
"/usr/bin/hidutil" "property" "--set" ''
{"UserKeyMapping":
[
{
"HIDKeyboardModifierMappingSrc":0x7000000e7,
"HIDKeyboardModifierMappingDst":0x7000000e1
}, {
"HIDKeyboardModifierMappingSrc":0x7000000e5,
"HIDKeyboardModifierMappingDst":0x7000000e6
}, {
"HIDKeyboardModifierMappingSrc":0x7000000e6,
"HIDKeyboardModifierMappingDst":0x7000000e3
}
]
}
''
];
RunAtLoad = true;
};
};
}