From d0c6a1b4b49128dd20d4919c98616f0061cbc2ed Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 22 Aug 2023 22:45:57 +0900 Subject: chore!: use keyd to manage key remaps --- modules/keyd-qol.nix | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 modules/keyd-qol.nix (limited to 'modules') diff --git a/modules/keyd-qol.nix b/modules/keyd-qol.nix new file mode 100644 index 0000000..e163286 --- /dev/null +++ b/modules/keyd-qol.nix @@ -0,0 +1,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"; + }; + }; + }; + }; + }; +} -- cgit 1.4.1