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;
|
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,
|
[
|
||||||
"HIDKeyboardModifierMappingDst":0x7000000e1,
|
{
|
||||||
}, {
|
"HIDKeyboardModifierMappingSrc":0x7000000e7,
|
||||||
"HIDKeyboardModifierMappingSrc":0x7000000e5,
|
"HIDKeyboardModifierMappingDst":0x7000000e1
|
||||||
"HIDKeyboardModifierMappingDst":0x7000000e6,
|
}, {
|
||||||
}, {
|
"HIDKeyboardModifierMappingSrc":0x7000000e5,
|
||||||
"HIDKeyboardModifierMappingSrc":0x7000000e6,
|
"HIDKeyboardModifierMappingDst":0x7000000e6
|
||||||
"HIDKeyboardModifierMappingDst":0x7000000e3,
|
}, {
|
||||||
}]
|
"HIDKeyboardModifierMappingSrc":0x7000000e6,
|
||||||
|
"HIDKeyboardModifierMappingDst":0x7000000e3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
''
|
''
|
||||||
];
|
];
|
||||||
|
RunAtLoad = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user