Set up interception-tools on NixOS
parent
3c385724d0
commit
29a8484d1e
|
|
@ -7,6 +7,7 @@
|
||||||
./hard.nix
|
./hard.nix
|
||||||
./disk.nix
|
./disk.nix
|
||||||
../../modules/bootloader.nix
|
../../modules/bootloader.nix
|
||||||
|
../../modules/keyboard
|
||||||
../../modules/networking.nix
|
../../modules/networking.nix
|
||||||
../../modules/users.nix
|
../../modules/users.nix
|
||||||
../../modules/audio.nix
|
../../modules/audio.nix
|
||||||
|
|
|
||||||
|
|
@ -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]
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue