From 93f79c080fd43c293880eabd0278ccf1adf6e4d3 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Wed, 1 Nov 2023 16:02:49 +0100 Subject: [PATCH] bind caps lock to escape closes #26 --- home-manager/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/home-manager/default.nix b/home-manager/default.nix index 115780f..259faee 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -1,4 +1,4 @@ -{ pkgs, config, ... }: +{ pkgs, lib, config, ... }: { imports = [ @@ -69,4 +69,11 @@ }; fonts.fontconfig.enable = true; + + dconf.settings = with lib.hm.gvariant; { + "org/gnome/desktop/input-sources" = { + sources = [ (mkTuple [ "xkb" "us" ]) ]; + xkb-options = [ "terminate:ctrl_alt_bksp" "caps:escape" ]; + }; + }; }