1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00

macos-remap-keys: add (#6605)

A module to remap keys using macos native tool (hidutil)
This commit is contained in:
Stanislav Alekseev 2025-03-13 16:02:04 +02:00 committed by GitHub
parent ef257da52a
commit 6576167e6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 248 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{
services.macos-remap-keys = {
enable = true;
keyboard = { Capslock = "Backspace"; };
};
nmt.script = ''
launchAgent=LaunchAgents/org.nix-community.home.remap-keys.plist
assertFileExists "$launchAgent"
assertFileContent "$launchAgent" ${./basic-agent.plist}
'';
}