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:
parent
ef257da52a
commit
6576167e6b
7 changed files with 248 additions and 0 deletions
|
|
@ -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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue