2023-10-12 22:51:18 +02:00
|
|
|
{ pkgs, xdg-runtime-dir, emacs, ... }:
|
2023-10-19 20:24:49 +02:00
|
|
|
{
|
2023-10-12 22:51:18 +02:00
|
|
|
# Swap right keys (command, shift and alt) at login
|
|
|
|
launchd.agents.swap-keys = {
|
|
|
|
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,
|
|
|
|
}]
|
|
|
|
''
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|