Set up interception-tools on NixOS
This commit is contained in:
16
modules/keyboard/default.nix
Normal file
16
modules/keyboard/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.interception-tools = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
pkgs.interception-tools-plugins.caps2esc
|
||||
];
|
||||
udevmonConfig = ''
|
||||
- JOB: ${pkgs.interception-tools}/bin/intercept -g $DEVNODE | ${pkgs.interception-tools-plugins.caps2esc}/bin/caps2esc -m 1 | ${pkgs.interception-tools}/bin/uinput -d $DEVNODE
|
||||
DEVICE:
|
||||
EVENTS:
|
||||
EV_KEY: [KEY_CAPSLOCK]
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user