feat: keyd
This commit is contained in:
parent
31c4d62a82
commit
ea7e267dcf
3 changed files with 31 additions and 0 deletions
|
|
@ -5,5 +5,6 @@
|
||||||
./gpu/nvidia.nix
|
./gpu/nvidia.nix
|
||||||
./wifi.nix
|
./wifi.nix
|
||||||
./fingerprint.nix
|
./fingerprint.nix
|
||||||
|
./keyd.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
29
modules/hardware/keyd.nix
Normal file
29
modules/hardware/keyd.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
cfg = config.horseman.hardware.keyd;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
horseman.hardware.keyd = {
|
||||||
|
enable = mkEnableOption "Kanata, the key remapper";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.keyd = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
keyboards.main = {
|
||||||
|
ids = ["*"];
|
||||||
|
settings = {
|
||||||
|
main = {
|
||||||
|
capslock = "overload(control, esc)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -44,6 +44,7 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
horseman.apps.visual.safeeyes.enable = true;
|
horseman.apps.visual.safeeyes.enable = true;
|
||||||
|
horseman.hardware.keyd.enable = true;
|
||||||
|
|
||||||
horseman.wm.hyprland.config = {
|
horseman.wm.hyprland.config = {
|
||||||
execOnce = [
|
execOnce = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue