forked from extern/nix-config
nix: Simplify
This commit is contained in:
parent
a2886940f4
commit
9692307bd9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user