about summary refs log tree commit diff
path: root/modules/keyd-qol.nix
blob: e163286cf0a4a6f0b3845791f08a666b4e5cf2b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ config, pkgs, unstable, unstable-small, nixpkgs-2211, lib, ... }:

{
  options.services.keyd-qol.enable = lib.mkEnableOption "keyd service for quality-of-life improvements";

  config = lib.mkIf config.services.keyd-qol.enable {
    services.keyd.enable = true;

    services.keyd.keyboards = {
      default = {
        ids = [ "*" ];
        settings = {
          main = {
            capslock = "overload(control, esc)";

            insert = "S-insert";
          };
        };
      };

      sun = {
        ids = [
          # HHKB Hybrid
          "04fe:0021"
        ];
        settings = {
          main = {
            control = "overload(control, esc)";

            insert = "S-insert";
          };
        };
      };
    };
  };
}