refactor: simplify keyboard module
This commit is contained in:
@@ -1,13 +1,16 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
with pkgs;
|
||||||
|
let
|
||||||
|
tools = interception-tools;
|
||||||
|
caps2esc = interception-tools-plugins.caps2esc;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
services.interception-tools = {
|
services.interception-tools = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = [ caps2esc ];
|
||||||
pkgs.interception-tools-plugins.caps2esc
|
|
||||||
];
|
|
||||||
udevmonConfig = ''
|
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
|
- JOB: ${tools}/bin/intercept -g $DEVNODE | ${caps2esc}/bin/caps2esc -m 1 | ${tools}/bin/uinput -d $DEVNODE
|
||||||
DEVICE:
|
DEVICE:
|
||||||
EVENTS:
|
EVENTS:
|
||||||
EV_KEY: [KEY_CAPSLOCK]
|
EV_KEY: [KEY_CAPSLOCK]
|
||||||
|
|||||||
Reference in New Issue
Block a user