From ea235409b8cf78f29b69c08b9ef6e4feba4e6b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Thu, 11 Jul 2024 01:29:33 -0300 Subject: [PATCH] keyboard: fix capslock backspace bind for some programs --- system/configuration.nix | 1 + system/keyboard.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 system/keyboard.nix diff --git a/system/configuration.nix b/system/configuration.nix index 6661e40..516a3ff 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -22,6 +22,7 @@ ./users.nix ./containers.nix ./network.nix + ./keyboard.nix ../settings ]; diff --git a/system/keyboard.nix b/system/keyboard.nix new file mode 100644 index 0000000..7691343 --- /dev/null +++ b/system/keyboard.nix @@ -0,0 +1,15 @@ +{ pkgs, lib, ... }: +{ + services.keyd = { + enable = true; + keyboards.default = { + ids = [ "*" ]; + settings = { + "main" = { + # Some programs don't respect colemaks capslock bind, so we force it here + "capslock" = "backspace"; + }; + }; + }; + }; +}