Fix swap-keys for mac
This commit is contained in:
parent
0ddfd25c7b
commit
8c8a378aed
28
home/mac.nix
28
home/mac.nix
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user