From 0b53209219635ae553d9d5d3c97d3ec7af17312b Mon Sep 17 00:00:00 2001 From: larstvei Date: Sat, 5 Aug 2023 13:37:39 +0200 Subject: [PATCH] Add karabiner complex modification (with home-manager) --- modules/home.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/modules/home.nix b/modules/home.nix index c6b0c0d..31e83f1 100644 --- a/modules/home.nix +++ b/modules/home.nix @@ -93,6 +93,33 @@ }; }; + home.file.karabiner = { + target = ".config/karabiner/assets/complex_modifications/df_escape.json"; + text = builtins.toJSON { + title = "Simultaneously press f + d to escape"; + rules = [{ + description = "Simultaneously press f + d to escape"; + manipulators = [ + { + type = "basic"; + from = { + modifiers = { + optional = [ "any" ]; + }; + simultaneous = [ + { key_code = "f"; } + { key_code = "d"; } + ]; + }; + to = [ + { key_code = "escape"; } + ]; + } + ]; + }]; + }; + }; + programs = { fzf = { enable = true;