From 23238c577e48279ac96774ced46124258ac99490 Mon Sep 17 00:00:00 2001 From: buffet Date: Fri, 21 Jul 2023 09:34:06 +0200 Subject: [PATCH] feat: swap backslash and return on alice to emulate iso --- alice/default.nix | 10 ++++++---- common.nix | 1 + programs/keyd.nix | 9 +++++++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 programs/keyd.nix diff --git a/alice/default.nix b/alice/default.nix index f09ea51..3a73adb 100644 --- a/alice/default.nix +++ b/alice/default.nix @@ -20,11 +20,11 @@ in { enable = true; settings = { - START_CHARGE_THRESH_BAT0 = 75; - STOP_CHARGE_THRESH_BAT0 = 80; + START_CHARGE_THRESH_BAT0 = 40; + STOP_CHARGE_THRESH_BAT0 = 60; - START_CHARGE_THRESH_BAT1 = 75; - STOP_CHARGE_THRESH_BAT1 = 80; + START_CHARGE_THRESH_BAT1 = 40; + STOP_CHARGE_THRESH_BAT1 = 60; }; }; @@ -33,6 +33,8 @@ in { settings = { main = { "102nd" = "layer(shift)"; # < as shift + "enter" = "\\"; + "\\" = "enter"; }; }; }; diff --git a/common.nix b/common.nix index 79278ea..c78b878 100644 --- a/common.nix +++ b/common.nix @@ -8,6 +8,7 @@ ./programs/git.nix ./programs/gpg.nix ./programs/ime.nix + ./programs/keyd.nix ./programs/lsd.nix ./programs/mako.nix ./programs/newsboat.nix diff --git a/programs/keyd.nix b/programs/keyd.nix new file mode 100644 index 0000000..485932f --- /dev/null +++ b/programs/keyd.nix @@ -0,0 +1,9 @@ +_: { + services.keyd = { + enable = true; + settings = { + capslock = "overload(control, esc)"; + esc = "capslock"; + }; + }; +}