diff --git a/modules/dual-function-keys/default.nix b/modules/dual-function-keys/default.nix index 180b69e..e9478fc 100644 --- a/modules/dual-function-keys/default.nix +++ b/modules/dual-function-keys/default.nix @@ -1,16 +1,17 @@ { pkgs, ... }: { services.interception-tools = { enable = true; - plugins = [ pkgs.interception-tools-plugins.dual-function-keys ]; - udevmonConfig = '' - - JOB: "${pkgs.interception-tools}/bin/intercept -g $DEVNODE | ${pkgs.interception-tools-plugins.dual-function-keys}/bin/dual-function-keys -c /etc/dual-function-keys.yaml | ${pkgs.interception-tools}/bin/uinput -d $DEVNODE" + plugins = with pkgs.interception-tools-plugins; [ dual-function-keys ]; + + udevmonConfig = with pkgs; /* yaml */ '' + - JOB: "${interception-tools}/bin/intercept -g $DEVNODE | ${interception-tools-plugins.dual-function-keys}/bin/dual-function-keys -c /etc/dual-function-keys.yaml | ${interception-tools}/bin/uinput -d $DEVNODE" DEVICE: EVENTS: EV_KEY: [KEY_CAPSLOCK, KEY_ESC] ''; }; - environment.etc."dual-function-keys.yaml".text = '' + environment.etc."dual-function-keys.yaml".text = /* yaml */ '' TIMING: - TAP_MILLISEC: 1000 - DOUBLE_TAP_MILLISEC: 0